source: git/omalloc/configure.in @ a90dc0

spielwiese
Last change on this file since a90dc0 was a90dc0, checked in by Hans Schönemann <hannes@…>, 23 years ago
* hannes: code cleanup wrt. *limits.h git-svn-id: file:///usr/local/Singular/svn/trunk@5594 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 16.3 KB
Line 
1dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
2dnl File: configure.in
3dnl Purpose: Process this file with autoconf to produce configure
4dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
5dnl Created: 11/99
6dnl Version: $Id: configure.in,v 1.15 2001-08-21 13:59:31 Singular Exp $
7dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
8
9AC_INIT(om_Alloc.c)
10
11VERSION=0.9.5
12AC_SUBST(VERSION)
13
14dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
15dnl help for configure
16dnl
17AC_ARG_WITH(
18  external-config_h,
19  [ --with-external-config_h=HEADER_FILE
20                    use HEADER_FILE for external configuration])
21AC_ARG_WITH(
22  external-config_c,
23  [ --with-external-config_c=C_FILE
24                    use C_FILE for external implementations])
25AC_ARG_WITH(
26  malloc,
27  [ --with-malloc=system|dlmalloc|gmalloc|pmalloc|external
28                    which malloc to use, default: dlmalloc ])
29AC_ARG_WITH(
30  external-malloc_h,
31  [ --with-external-malloc-h=HEADER_FILE
32                    use HEADER_FILE for external malloc declaration])
33AC_ARG_WITH(
34  external-malloc_c,
35  [ --with-external-malloc-c=C_FILE
36                    use C_FILE for external malloc implementation])
37AC_ARG_WITH(
38  valloc,
39  [ --with-valloc=mmap|malloc|emulate
40                    how to get page-aligned memory, default: use first possible])
41AC_ARG_WITH(
42  provide-malloc,
43  [ --with-provide-malloc=yes|debug|malloc
44                    provide normal|debug|underlying malloc ANSI-C conforming
45                    versions of malloc|calloc|realloc|free])
46AC_ARG_WITH(
47  emulate-omalloc,
48  [ --with-emulate-omalloc
49                    provide only omallocs interface, but do not use its features])
50AC_ARG_WITH(
51  align,
52  [ --with-align=8|sloppy|strict
53                    how memory is aligned,
54                    default: if possible sloppy, else strict])
55AC_ARG_WITH(
56  dense-bins,
57  [ --with-dense-bins  use dense bin distribution])
58AC_ARG_WITH(
59  inline,
60  [ --without-inline   do not inline])
61AC_ARG_WITH(
62  debug,
63  [ --without-debug    disable all debugging facilities])
64AC_ARG_WITH(
65  track,
66  [ --without-track    disable debug tracking functionality])
67AC_ARG_WITH(
68  track-fl,
69  [ --with-track-fl    track file and line numbers])
70AC_ARG_WITH(
71  track-return,
72  [ --with-track-return track return addresses])
73AC_ARG_WITH(
74  track-backtrace,
75  [ --with-track-backtrace track stack backtraces])
76AC_ARG_WITH(
77  track-custom,
78  [ --with-track-custom track custom values])
79AC_ARG_WITH(
80  internal_debug,
81  [ --with-internal-debug
82                       turn on internal debugging])
83dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
84dnl compiler/make  config
85dnl
86dnl I'm not sure why I did this
87dnl if test "${CFLAGS+set}" != set; then
88dnl  CFLAGS="-O"
89dnl  ac_cflags_set=no
90dnl fi
91
92AC_PROG_MAKE_SET
93AC_PROG_CC
94AC_PROG_CPP
95AC_PROG_RANLIB
96AC_PROG_LN_S
97AC_PROG_INSTALL
98AC_C_CONST
99AC_C_INLINE
100
101dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
102dnl check for programs
103dnl
104AC_CHECK_PROG(AR, ar, ar, :)
105if test "$ac_cv_prog_AR" != ar; then
106  AC_MSG_ERROR(*** ar program not found)
107fi
108AC_CHECK_PROGS(PERL, perl, "no")
109if test "$ac_cv_prog_PERL" = no; then
110  AC_MSG_ERROR(*** perl program not found)
111fi
112
113AC_CHECK_PROG(ADDR2LINE, addr2line, addr2line, no)
114if test "$ac_cv_prog_ADDR2LINE" = addr2line; then
115  AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE")
116fi
117
118dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
119dnl header file checks
120dnl
121AC_HEADER_STDC
122AC_CHECK_HEADERS(limits.h,,
123  AC_MSG_ERROR(Can not compile without limits.h))
124AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
125
126AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk random)
127
128dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
129dnl Find out more about particularity of the system
130dnl
131
132# sizes
133AC_CHECK_SIZEOF(long,4)
134AC_CHECK_SIZEOF(void*,4)
135AC_CHECK_SIZEOF(double, 8)
136AC_CHECK_SIZEOF(size_t, 4)
137
138if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
139  AC_MSG_ERROR(need equal sizes for long and void*)
140fi
141if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
142  AC_MSG_ERROR(need void* to be 4 or 8 bytes long)
143fi
144if test "$ac_cv_sizeof_double" != 4 && test "$ac_cv_sizeof_double" != 8; then
145  AC_MSG_ERROR(need double to be 4 or 8 bytes long)
146fi
147
148dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
149dnl figure out page size of the system
150dnl
151AC_MSG_CHECKING(size of system page)
152AC_CACHE_VAL(ac_cv_pagesize,
153AC_TRY_RUN([#include <stdio.h>
154#include "omGetPageSize.h"
155
156main()
157{
158  FILE *f=fopen("conftestval", "w");
159  if (!f) exit(1);
160  fprintf(f, "%d\n", omalloc_getpagesize);
161  exit(0);
162}], ac_cv_pagesize=`cat conftestval`, ac_cv_pagesize=0, ac_cv_pagesize=0))
163# can not really handle pagesizes which are greater -- there must be a
164# bug somewhere
165if test $ac_cv_pagesize -gt 8192; then
166  ac_cv_pagesize=8192
167fi
168AC_MSG_RESULT($ac_cv_pagesize)
169if test "$ac_cv_pagesize" = 4096 || test "$ac_cv_pagesize" = 8192; then
170  AC_DEFINE_UNQUOTED(SIZEOF_SYSTEM_PAGE, $ac_cv_pagesize)
171else
172AC_MSG_ERROR(need sytem page to be of size 4096 or 8192, but is $ac_cv_pagesize)
173fi
174
175dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
176dnl check whether mmap actually works
177dnl
178if test "$ac_cv_func_mmap" = yes; then
179AC_MSG_CHECKING(whether mmap works)
180AC_CACHE_VAL(ac_cv_working_mmap,
181AC_TRY_RUN([
182#include "omMmap.c"
183main()
184{
185  void* addr = omVallocMmap(128*${ac_cv_pagesize});
186  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
187    exit(1);
188  exit(omVfreeMmap(addr, 128*${ac_cv_pagesize}));
189}], ac_cv_working_mmap=yes, ac_cv_working_mmap=no, ac_cv_working_mmap=no))
190AC_MSG_RESULT($ac_cv_working_mmap)
191if test "$ac_cv_working_mmap" = yes; then
192  AC_DEFINE(HAVE_WORKING_MMAP)
193fi
194fi
195
196dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
197dnl for strict alignment
198dnl
199AC_CACHE_CHECK(whether alignment needs to be strict, ac_cv_align_need_strict,
200AC_TRY_RUN([
201main()
202{
203  void* ptr = (void*) malloc(12);
204  double* d_ptr;
205  if ((unsigned long) ptr % 8 == 0) ptr = ptr + 4;
206  d_ptr = (double*) ptr;
207  *d_ptr = (double) 1.1;
208  if (*d_ptr != (double) 1.1) exit(1);
209  else exit(0);
210}
211], ac_cv_align_need_strict=no, ac_cv_align_need_strict=yes, ac_cv_align_need_strict=yes))
212
213dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
214dnl external config files
215dnl
216AC_MSG_CHECKING(for external config files)
217if test "${with_external_config_h+set}" = set; then
218    AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_H)
219    EXTERNAL_CONFIG_HEADER=${with_external_config_h}
220    rm -f omExternalConfig.h
221    cp ${with_external_config_h} omExternalConfig.h
222fi
223if test "${with_external_config_c+set}" = set; then
224    AC_DEFINE(OM_HAVE_EXTERNAL_CONFIG_C)
225    EXTERNAL_CONFIG_SOURCE=${with_external_config_c}
226fi
227AC_SUBST(EXTERNAL_CONFIG_HEADER)
228AC_SUBST(EXTERNAL_CONFIG_SOURCE)
229if test "${EXTERNAL_CONFIG_HEADER+set}" = set || test "${EXTERNAL_CONFIG_SOURCE+set}" = set; then
230AC_MSG_RESULT(${EXTERNAL_CONFIG_HEADER} ${EXTERNAL_CONFIG_SOURCE})
231else
232AC_MSG_RESULT(none)
233fi
234
235dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
236dnl for malloc
237dnl
238AC_MSG_CHECKING(which malloc to use)
239if test "${with_malloc}" = system; then
240  OM_MALLOC_HEADER=omMallocSystem.h
241  AC_DEFINE(OMALLOC_USES_MALLOC)
242  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
243    AC_MSG_ERROR("can not provide malloc for --with-malloc=system")
244  fi
245elif test "${with_malloc}" = gmalloc; then
246  OM_MALLOC_HEADER=gmalloc.h
247  OM_MALLOC_SOURCE=gmalloc.c
248elif test "${with_malloc}" = pmalloc; then
249  OM_MALLOC_HEADER=pmalloc.h
250  OM_MALLOC_SOURCE=pmalloc.c
251elif test "${with_malloc}" = external; then
252  if test "${with_external_malloc_h+set}" != set; then
253    AC_MSG_ERROR(need --with_external_malloc_h for external malloc)
254  fi
255  if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then
256    AC_MSG_ERROR("can not provide malloc for --with_malloc=external")
257  fi
258  OM_MALLOC_HEADER=$with_external_malloc_h
259  OM_MALLOC_SOURCE=$with_external_malloc_c
260  AC_DEFINE(OMALLOC_USES_MALLOC)
261else
262  with_malloc=dlmalloc
263  OM_MALLOC_HEADER=dlmalloc.h
264  OM_MALLOC_SOURCE=dlmalloc.c
265fi
266AC_MSG_RESULT($with_malloc)
267
268AC_SUBST(OM_MALLOC_HEADER)
269AC_SUBST(OM_MALLOC_SOURCE)
270if test "${OM_MALLOC_SOURCE+set}" = set; then
271  AC_DEFINE(OM_HAVE_MALLOC_SOURCE)
272fi
273
274AC_MSG_CHECKING(whether malloc provides SizeOfAddr)
275if test "${ac_cv_malloc_sizeof_addr}" = no; then
276  AC_MSG_RESULT( (cached) no)
277elif test "${ac_cv_malloc_sizeof_addr}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
278   AC_MSG_RESULT( (cached) yes)
279else
280AC_TRY_RUN([
281#include "$OM_MALLOC_HEADER"
282#ifdef OM_HAVE_MALLOC_SOURCE
283#include "$OM_MALLOC_SOURCE"
284#endif
285
286main()
287{
288  void* addr = OM_MALLOC_MALLOC(512);
289  if (OM_MALLOC_SIZEOF_ADDR(addr) < 512)
290    exit(1);
291  exit(0);
292}
293], ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}", ac_cv_malloc_sizeof_addr=no, ac_cv_malloc_sizeof_addr=no)
294if test "${ac_cv_malloc_sizeof_addr}" = no; then
295AC_MSG_RESULT(no)
296else
297AC_MSG_RESULT(yes)
298fi
299fi
300if test "$ac_cv_malloc_sizeof_addr" != no; then
301AC_DEFINE(OM_MALLOC_PROVIDES_SIZEOF_ADDR)
302fi
303
304if test "${with_provide_malloc}" = malloc; then
305   AC_DEFINE(OM_PROVIDE_MALLOC, 3)
306elif test "${with_provide_malloc}" = debug; then
307   AC_DEFINE(OM_PROVIDE_MALLOC, 2)
308elif test "${with_provide_malloc}" = yes; then
309  AC_DEFINE(OM_PROVIDE_MALLOC, 1)
310else
311  AC_DEFINE(OM_PROVIDE_MALLOC, 0)
312fi
313
314dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
315dnl check whether valloc is provided and that it works
316dnl
317AC_MSG_CHECKING(whether working valloc exists)
318if test "${ac_cv_working_valloc}" = no; then
319  AC_MSG_RESULT( (cached) no)
320elif test "${ac_cv_working_valloc}" = "${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"; then
321  AC_MSG_RESULT( (cached) yes)
322else
323AC_TRY_RUN([
324#include "$OM_MALLOC_HEADER"
325#ifdef OM_HAVE_MALLOC_SOURCE
326#include "$OM_MALLOC_SOURCE"
327#endif
328
329main()
330{
331  void* addr = OM_MALLOC_VALLOC(128*${ac_cv_pagesize});
332  if (addr == 0 || ((unsigned long) addr % ${ac_cv_pagesize}))
333    exit(1);
334  OM_MALLOC_VFREE(addr, 128*${ac_cv_pagesize});
335  exit(0);
336}
337], ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}", ac_cv_working_valloc=no, ac_cv_working_valloc=no)
338if test "${ac_cv_working_valloc}" = no; then
339AC_MSG_RESULT(no)
340else
341AC_MSG_RESULT(yes)
342fi
343fi
344
345dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
346dnl for valloc
347dnl
348AC_MSG_CHECKING(which valloc to use)
349if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
350  if test "${ac_cv_working_mmap}" = yes; then
351    with_valloc=mmap
352    AC_DEFINE(OM_HAVE_VALLOC_MMAP)
353  else
354    with_valloc=malloc
355  fi
356fi
357if test "${with_valloc}" = malloc; then
358  if test "${ac_cv_working_valloc}" != no; then
359    AC_DEFINE(OM_HAVE_VALLOC_MALLOC)
360  else
361    with_valloc=emulate
362  fi
363fi
364AC_MSG_RESULT($with_valloc)
365
366dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
367dnl emulation
368dnl
369AC_MSG_CHECKING(whether to emulate omalloc)
370if test "${with_emulate_omalloc}" = yes; then
371  AC_DEFINE(OM_EMULATE_OMALLOC)
372  AC_MSG_RESULT(yes)
373else
374  AC_MSG_RESULT(no)
375fi
376
377dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
378dnl alignment
379dnl
380AC_MSG_CHECKING(how to align)
381if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
382  ac_cv_align=8
383  AC_DEFINE(OM_ALIGN_8)
384else
385if test "$ac_cv_align_need_strict" = "yes" || test "$with_align" = "strict"; then
386  AC_DEFINE(OM_ALIGNMENT_NEEDS_WORK)
387  ac_cv_align="strict"
388else
389  ac_cv_align="sloppy"
390fi
391fi
392AC_MSG_RESULT($ac_cv_align)
393
394dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
395dnl dense bins
396dnl
397AC_MSG_CHECKING(whether to use dense bins)
398if test "$with_dense_bins" = yes; then
399AC_MSG_RESULT(yes)
400AC_DEFINE(OM_HAVE_DENSE_BIN_DISTRIBUTION)
401else
402AC_MSG_RESULT(no)
403fi
404
405dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
406dnl debug and inline
407dnl
408AC_MSG_CHECKING(whether to disable debugging)
409if test "$with_debug" != no; then
410AC_MSG_RESULT(no)
411else
412AC_MSG_RESULT(yes)
413AC_DEFINE(OM_NDEBUG)
414with_track=no
415fi
416
417AC_MSG_CHECKING(whether to have tracking debug functionality)
418if test "$with_track" != no; then
419AC_MSG_RESULT(yes)
420AC_DEFINE(OM_HAVE_TRACK)
421else
422AC_MSG_RESULT(no)
423fi
424
425AC_MSG_CHECKING(whether to use internal debug)
426if test "$with_internal_debug" = yes; then
427AC_MSG_RESULT(yes)
428AC_DEFINE(OM_INTERNAL_DEBUG)
429with_inline=no
430else
431AC_MSG_RESULT(no)
432fi
433
434AC_MSG_CHECKING(whether to inline)
435if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
436  AC_DEFINE_UNQUOTED(OM_INLINE, static $ac_cv_c_inline)
437  AC_DEFINE_UNQUOTED(OM_INLINE_DECL, static $ac_cv_c_inline)
438  AC_DEFINE_UNQUOTED(OM_INLINE_IMPL, static $ac_cv_c_inline)
439  AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static $ac_cv_c_inline)
440  AC_MSG_RESULT(yes)
441else
442  AC_DEFINE_UNQUOTED(OM_INLINE_DECL, extern)
443  AC_DEFINE_UNQUOTED(OM_INLINE_IMPL,)
444  AC_DEFINE_UNQUOTED(OM_INLINE_LOCAL, static)
445  AC_MSG_RESULT(no)
446fi
447
448dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
449dnl backtrace business
450dnl
451AC_MSG_CHECKING(whether GET_RET_ADDR works)
452AC_CACHE_VAL(ac_cv_get_return_addr_works,
453AC_TRY_RUN([
454#include "omReturn.h"
455int test_return_addr()
456{
457  char* f;
458  GET_RET_ADDR(f);
459  return (int) f;
460}
461int main()
462{
463   exit(! test_return_addr());
464}
465], ac_cv_get_return_addr_works=yes,
466   ac_cv_get_return_addr_works=no,
467   ac_cv_get_return_addr_works=no))
468AC_MSG_RESULT($ac_cv_get_return_addr_works)
469if test "$ac_cv_get_return_addr_works" = yes; then
470AC_DEFINE(OM_GET_RETURN_ADDR_WORKS)
471fi
472
473AC_MSG_CHECKING(whether omGetBackTrace works)
474AC_CACHE_VAL(ac_cv_get_backtrace_works,
475AC_TRY_RUN([
476#include "omGetBackTrace.c"
477#include <stdio.h>
478int test_backtrace()
479{
480  void* bt;
481  int i = omGetBackTrace(&bt, 0, 10);
482  return i;
483}
484int main()
485{
486   int i;
487   omInitGetBackTrace();
488   i = test_backtrace();
489   if (i == 1) exit(0);
490   else exit(i+1);
491}
492], ac_cv_get_backtrace_works=yes,
493   ac_cv_get_backtrace_works=no,
494   ac_cv_get_backtrace_works=no))
495AC_MSG_RESULT($ac_cv_get_backtrace_works)
496if test "$ac_cv_get_backtrace_works" = yes; then
497AC_DEFINE(OM_GET_BACKTRACE_WORKS)
498fi
499
500AC_MSG_CHECKING(whether addr2line works)
501AC_CACHE_VAL(ac_cv_prog_addr2line_works,
502AC_TRY_RUN([
503#undef OM_GET_BACKTRACE_WORKS
504#include "omReturn.h"
505#include "omStructs.h"
506#include "omGetBackTrace.h"
507#include "omRet2Info.c"
508#include "omFindExec.c"
509
510
511int test_Ret_2_Info()
512{
513  void* bt;
514  int i;
515  struct omRetInfo_s info;
516
517  GET_RET_ADDR(bt);
518  i = omBackTrace_2_RetInfo(&bt, &info, 1);
519  return i;
520}
521
522int main(int argc, char** argv)
523{
524  int i;
525  omInitRet_2_Info(*argv);
526  i = test_Ret_2_Info();
527  if (i==1) exit(0);
528  else exit (i+10);
529}
530], ac_cv_prog_addr2line_works=yes,
531   ac_cv_prog_addr2line_works=no,
532   ac_cv_prog_addr2line_works=no))
533AC_MSG_RESULT($ac_cv_prog_addr2line_works)
534
535AC_MSG_CHECKING(whether to track return addresses)
536if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
537  with_track_return=no
538else
539  AC_DEFINE(OM_TRACK_RETURN)
540  with_track_return=yes
541fi
542AC_MSG_RESULT($with_track_return)
543
544AC_MSG_CHECKING(whether to track files and line numbers)
545if test "$with_track_fl" = no && test "$with_track_return" = no; then
546  with_track_fl=yes
547fi
548if test "${with_track_fl+set}" != set; then
549  if test "$with_track_return" = yes; then
550    with_track_fl=no
551  else
552    with_track_fl=yes
553  fi
554fi
555AC_MSG_RESULT($with_track_fl)
556if test "$with_track_fl" = yes; then
557  AC_DEFINE(OM_TRACK_FILE_LINE)
558fi
559
560AC_MSG_CHECKING(whether to track stack backtraces)
561if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
562  with_track_backtrace=yes
563  AC_DEFINE(OM_TRACK_BACKTRACE)
564else
565  with_track_backtrace=no
566fi
567AC_MSG_RESULT($with_track_backtrace)
568
569AC_MSG_CHECKING(whether to track custom values)
570if test "$with_track" != no && test "$with_track_custom" = yes; then
571  AC_DEFINE(OM_TRACK_CUSTOM)
572else
573  with_track_custom=no
574fi
575AC_MSG_RESULT($with_track_custom)
576
577dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
578dnl figure out the return type of sbrk
579dnl
580
581AC_MSG_CHECKING(return type of sbrk)
582AC_TRY_LINK(
583#define __USE_MISC
584#include <unistd.h>
585,
586void *sbrk();
587,
588AC_DEFINE(Void_t,void),
589AC_DEFINE(Void_t,char),
590)
591AC_MSG_RESULT(Void_t)
592
593
594
595dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
596dnl wrap it up
597dnl
598AC_CONFIG_HEADER(omConfig.h omlimits.h omMalloc.h:${OM_MALLOC_HEADER})
599
600AC_OUTPUT(Makefile, \
601 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi)
602
603
Note: See TracBrowser for help on using the repository browser.