Diff for /libaitio/configure between versions 1.31.2.1 and 1.31.2.2

version 1.31.2.1, 2013/01/17 12:06:48 version 1.31.2.2, 2013/03/13 14:31:51
Line 622  ac_includes_default="\ Line 622  ac_includes_default="\
 # include <unistd.h>  # include <unistd.h>
 #endif"  #endif"
   
   ac_header_list=
 ac_subst_vars='LTLIBOBJS  ac_subst_vars='LTLIBOBJS
 LIBOBJS  LIBOBJS
 EGREP  EGREP
Line 2045  $as_echo "$as_me: creating cache $cache_file" >&6;} Line 2046  $as_echo "$as_me: creating cache $cache_file" >&6;}
   >$cache_file    >$cache_file
 fi  fi
   
   as_fn_append ac_header_list " stdlib.h"
   as_fn_append ac_header_list " unistd.h"
   as_fn_append ac_header_list " sys/param.h"
 # Check that the precious variables saved in the cache have kept the same  # Check that the precious variables saved in the cache have kept the same
 # value.  # value.
 ac_cache_corrupted=false  ac_cache_corrupted=false
Line 3922  esac Line 3926  esac
   
   
 # Checks for library functions.  # Checks for library functions.
for ac_header in stdlib.h
 
 
   for ac_header in $ac_header_list
 do :  do :
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if test "x$ac_cv_header_stdlib_h" = xyes; then :ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 "
 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF    cat >>confdefs.h <<_ACEOF
#define HAVE_STDLIB_H 1#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF  _ACEOF
   
 fi  fi
   
 done  done
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5  
 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }  
 if ${ac_cv_func_malloc_0_nonnull+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   if test "$cross_compiling" = yes; then :  
   ac_cv_func_malloc_0_nonnull=no  
 else  
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext  
 /* end confdefs.h.  */  
 #if defined STDC_HEADERS || defined HAVE_STDLIB_H  
 # include <stdlib.h>  
 #else  
 char *malloc ();  
 #endif  
   
 int  
 main ()  
 {  
 return ! malloc (0);  
   ;  
   return 0;  
 }  
 _ACEOF  
 if ac_fn_c_try_run "$LINENO"; then :  
   ac_cv_func_malloc_0_nonnull=yes  
 else  
   ac_cv_func_malloc_0_nonnull=no  
 fi  
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  
   conftest.$ac_objext conftest.beam conftest.$ac_ext  
 fi  
   
 fi  
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5  
 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }  
 if test $ac_cv_func_malloc_0_nonnull = yes; then :  
   
 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h  
   
 else  
   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h  
   
    case " $LIBOBJS " in  
   *" malloc.$ac_objext "* ) ;;  
   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"  
  ;;  
 esac  
   
   
$as_echo "#define malloc rpl_malloc" >>confdefs.hfor ac_func in getpagesize
 
fi 
 
 
for ac_header in stdlib.h 
 do :  do :
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
if test "x$ac_cv_header_stdlib_h" = xyes; then :if test "x$ac_cv_func_getpagesize" = xyes; then :
   cat >>confdefs.h <<_ACEOF    cat >>confdefs.h <<_ACEOF
#define HAVE_STDLIB_H 1#define HAVE_GETPAGESIZE 1
 _ACEOF  _ACEOF
   
 fi  fi
   
 done  done
   
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }$as_echo_n "checking for working mmap... " >&6; }
if ${ac_cv_func_realloc_0_nonnull+:} false; then :if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
   $as_echo_n "(cached) " >&6    $as_echo_n "(cached) " >&6
 else  else
   if test "$cross_compiling" = yes; then :    if test "$cross_compiling" = yes; then :
  ac_cv_func_realloc_0_nonnull=no  ac_cv_func_mmap_fixed_mapped=no
 else  else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
#if defined STDC_HEADERS || defined HAVE_STDLIB_H$ac_includes_default
# include <stdlib.h>/* malloc might have been renamed as rpl_malloc. */
#else#undef malloc
char *realloc ();
 /* Thanks to Mike Haertel and Jim Avera for this test.
    Here is a matrix of mmap possibilities:
         mmap private not fixed
         mmap private fixed at somewhere currently unmapped
         mmap private fixed at somewhere already mapped
         mmap shared not fixed
         mmap shared fixed at somewhere currently unmapped
         mmap shared fixed at somewhere already mapped
    For private mappings, we should verify that changes cannot be read()
    back from the file, nor mmap's back from the file at a different
    address.  (There have been systems where private was not correctly
    implemented like the infamous i386 svr4.0, and systems where the
    VM page cache was not coherent with the file system buffer cache
    like early versions of FreeBSD and possibly contemporary NetBSD.)
    For shared mappings, we should conversely verify that changes get
    propagated back to all the places they're supposed to be.
 
    Grep wants private fixed already mapped.
    The main things grep needs to know about mmap are:
    * does it exist and is it safe to write into the mmap'd area
    * how to use it (BSD variants)  */
 
 #include <fcntl.h>
 #include <sys/mman.h>
 
 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 char *malloc ();
 #endif  #endif
   
   /* This mess was copied from the GNU getpagesize.h.  */
   #ifndef HAVE_GETPAGESIZE
   # ifdef _SC_PAGESIZE
   #  define getpagesize() sysconf(_SC_PAGESIZE)
   # else /* no _SC_PAGESIZE */
   #  ifdef HAVE_SYS_PARAM_H
   #   include <sys/param.h>
   #   ifdef EXEC_PAGESIZE
   #    define getpagesize() EXEC_PAGESIZE
   #   else /* no EXEC_PAGESIZE */
   #    ifdef NBPG
   #     define getpagesize() NBPG * CLSIZE
   #     ifndef CLSIZE
   #      define CLSIZE 1
   #     endif /* no CLSIZE */
   #    else /* no NBPG */
   #     ifdef NBPC
   #      define getpagesize() NBPC
   #     else /* no NBPC */
   #      ifdef PAGESIZE
   #       define getpagesize() PAGESIZE
   #      endif /* PAGESIZE */
   #     endif /* no NBPC */
   #    endif /* no NBPG */
   #   endif /* no EXEC_PAGESIZE */
   #  else /* no HAVE_SYS_PARAM_H */
   #   define getpagesize() 8192   /* punt totally */
   #  endif /* no HAVE_SYS_PARAM_H */
   # endif /* no _SC_PAGESIZE */
   
   #endif /* no HAVE_GETPAGESIZE */
   
 int  int
 main ()  main ()
 {  {
return ! realloc (0, 0);  char *data, *data2, *data3;
  ;  const char *cdata2;
   int i, pagesize;
   int fd, fd2;
 
   pagesize = getpagesize ();
 
   /* First, make a file with some known garbage in it. */
   data = (char *) malloc (pagesize);
   if (!data)
     return 1;
   for (i = 0; i < pagesize; ++i)
     *(data + i) = rand ();
   umask (0);
   fd = creat ("conftest.mmap", 0600);
   if (fd < 0)
     return 2;
   if (write (fd, data, pagesize) != pagesize)
     return 3;
   close (fd);
 
   /* Next, check that the tail of a page is zero-filled.  File must have
      non-zero length, otherwise we risk SIGBUS for entire page.  */
   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
   if (fd2 < 0)
     return 4;
   cdata2 = "";
   if (write (fd2, cdata2, 1) != 1)
     return 5;
   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
   if (data2 == MAP_FAILED)
     return 6;
   for (i = 0; i < pagesize; ++i)
     if (*(data2 + i))
       return 7;
   close (fd2);
   if (munmap (data2, pagesize))
     return 8;
 
   /* Next, try to mmap the file at a fixed address which already has
      something else allocated at it.  If we can, also make sure that
      we see the same garbage.  */
   fd = open ("conftest.mmap", O_RDWR);
   if (fd < 0)
     return 9;
   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
     return 10;
   for (i = 0; i < pagesize; ++i)
     if (*(data + i) != *(data2 + i))
       return 11;
 
   /* Finally, make sure that changes to the mapped area do not
      percolate back to the file as seen by read().  (This is a bug on
      some variants of i386 svr4.0.)  */
   for (i = 0; i < pagesize; ++i)
     *(data2 + i) = *(data2 + i) + 1;
   data3 = (char *) malloc (pagesize);
   if (!data3)
     return 12;
   if (read (fd, data3, pagesize) != pagesize)
     return 13;
   for (i = 0; i < pagesize; ++i)
     if (*(data + i) != *(data3 + i))
       return 14;
   close (fd);
   return 0;    return 0;
 }  }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_func_realloc_0_nonnull=yes  ac_cv_func_mmap_fixed_mapped=yes
 else  else
  ac_cv_func_realloc_0_nonnull=no  ac_cv_func_mmap_fixed_mapped=no
 fi  fi
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   conftest.$ac_objext conftest.beam conftest.$ac_ext    conftest.$ac_objext conftest.beam conftest.$ac_ext
 fi  fi
   
 fi  fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
if test $ac_cv_func_realloc_0_nonnull = yes; then :if test $ac_cv_func_mmap_fixed_mapped = yes; then
   
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h$as_echo "#define HAVE_MMAP 1" >>confdefs.h
   
elsefi
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.hrm -f conftest.mmap conftest.txt
   
   case " $LIBOBJS " infor ac_func in bzero memset munmap
  *" realloc.$ac_objext "* ) ;;do :
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ;;ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
esacif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 _ACEOF
   
   fi
   done
   
$as_echo "#define realloc rpl_realloc" >>confdefs.hfor ac_func in pthread_create pthread_exit
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 _ACEOF
   
 fi  fi
   done
   
for ac_func in shm_open shm_unlink
for ac_func in memset regcomp strchr strerror 
 do :  do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Line 4069  fi Line 4164  fi
 done  done
   
   
   # It's stupid, but not all platforms have union semun, even those that need it.
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for union semun in sys/sem.h" >&5
   $as_echo_n "checking looking for union semun in sys/sem.h... " >&6; }
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
                   #include <sys/types.h>
                   #include <sys/ipc.h>
                   #include <sys/sem.h>
   
   int
   main ()
   {
   
                   union semun arg;
                   semctl(0, 0, 0, arg);
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
   
   
   $as_echo "#define HAVE_UNION_SEMUN /**/" >>confdefs.h
   
                    msg=yes
   else
     msg=no
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
   $as_echo "$msg" >&6; }
   
 DEBUG=no  DEBUG=no
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
 $as_echo_n "checking Debug Build... " >&6; }  $as_echo_n "checking Debug Build... " >&6; }
Line 4109  fi Line 4238  fi
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5
 $as_echo "$AIO" >&6; }  $as_echo "$AIO" >&6; }
   
 #MPOOL=no  
 #AC_MSG_CHECKING(Use ELWIX MPOOL)  
 #AC_ARG_ENABLE(mpool,  
 #       [  --enable-mpool          Build library with MPOOL operations ],  
 #       [ MPOOL=$enableval  
 #               case "$enableval" in  
 #                       yes)  
 #                               AC_DEFINE(USE_MPOOL,, [Build library with MPOOL operations])  
 #                               ;;  
 #                       *)  
 #                               ;;  
 #               esac ],)  
 #AC_MSG_RESULT($MPOOL)  
   
 ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"  ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"
   

Removed from v.1.31.2.1  
changed lines
  Added in v.1.31.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>