diff options
| author | Paul Eggert | 2011-02-18 00:07:03 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-18 00:07:03 -0800 |
| commit | 942f733fd1251da4486cf1d72ec5569532dfd19d (patch) | |
| tree | 7c04854c15370219b6282c302ebcaed75a2f0eb8 /configure | |
| parent | 37b3d30244ad822e049b6b20c2eadf5946cb02cc (diff) | |
| download | emacs-942f733fd1251da4486cf1d72ec5569532dfd19d.tar.gz emacs-942f733fd1251da4486cf1d72ec5569532dfd19d.zip | |
Import crypto/md5 module from gnulib.
* Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
* admin/notes/copyright: Remove src/md5.c and src/md5.h as
special cases.
* src/Makefile.in (base_obj): Remove md5.o, since this file
is in lib now.
* src/deps.mk (md5.o): Remove.
* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
Regenerate.
* lib/md5.c: Regenerate. This renames the file from src/md5.c,
and adds some porting improvements from gnulib.
* lib/md5.h: Regenerate, likwise; rename from src/md5.h.
* m4/md5.m4: New file, from gnulib.
2011-02-18 Paul Eggert <eggert@cs.ucla.edu>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 329 |
1 files changed, 287 insertions, 42 deletions
| @@ -5881,6 +5881,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |||
| 5881 | 5881 | ||
| 5882 | # Code from module arg-nonnull: | 5882 | # Code from module arg-nonnull: |
| 5883 | # Code from module c++defs: | 5883 | # Code from module c++defs: |
| 5884 | # Code from module crypto/md5: | ||
| 5884 | # Code from module dtoastr: | 5885 | # Code from module dtoastr: |
| 5885 | # Code from module extensions: | 5886 | # Code from module extensions: |
| 5886 | 5887 | ||
| @@ -13201,6 +13202,274 @@ fi | |||
| 13201 | export LIBC_FATAL_STDERR_ | 13202 | export LIBC_FATAL_STDERR_ |
| 13202 | 13203 | ||
| 13203 | 13204 | ||
| 13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
| 13206 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
| 13207 | if ${ac_cv_c_bigendian+:} false; then : | ||
| 13208 | $as_echo_n "(cached) " >&6 | ||
| 13209 | else | ||
| 13210 | ac_cv_c_bigendian=unknown | ||
| 13211 | # See if we're dealing with a universal compiler. | ||
| 13212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13213 | /* end confdefs.h. */ | ||
| 13214 | #ifndef __APPLE_CC__ | ||
| 13215 | not a universal capable compiler | ||
| 13216 | #endif | ||
| 13217 | typedef int dummy; | ||
| 13218 | |||
| 13219 | _ACEOF | ||
| 13220 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13221 | |||
| 13222 | # Check for potential -arch flags. It is not universal unless | ||
| 13223 | # there are at least two -arch flags with different values. | ||
| 13224 | ac_arch= | ||
| 13225 | ac_prev= | ||
| 13226 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
| 13227 | if test -n "$ac_prev"; then | ||
| 13228 | case $ac_word in | ||
| 13229 | i?86 | x86_64 | ppc | ppc64) | ||
| 13230 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
| 13231 | ac_arch=$ac_word | ||
| 13232 | else | ||
| 13233 | ac_cv_c_bigendian=universal | ||
| 13234 | break | ||
| 13235 | fi | ||
| 13236 | ;; | ||
| 13237 | esac | ||
| 13238 | ac_prev= | ||
| 13239 | elif test "x$ac_word" = "x-arch"; then | ||
| 13240 | ac_prev=arch | ||
| 13241 | fi | ||
| 13242 | done | ||
| 13243 | fi | ||
| 13244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13245 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13246 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
| 13247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13248 | /* end confdefs.h. */ | ||
| 13249 | #include <sys/types.h> | ||
| 13250 | #include <sys/param.h> | ||
| 13251 | |||
| 13252 | int | ||
| 13253 | main () | ||
| 13254 | { | ||
| 13255 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
| 13256 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
| 13257 | && LITTLE_ENDIAN) | ||
| 13258 | bogus endian macros | ||
| 13259 | #endif | ||
| 13260 | |||
| 13261 | ; | ||
| 13262 | return 0; | ||
| 13263 | } | ||
| 13264 | _ACEOF | ||
| 13265 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13266 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
| 13267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13268 | /* end confdefs.h. */ | ||
| 13269 | #include <sys/types.h> | ||
| 13270 | #include <sys/param.h> | ||
| 13271 | |||
| 13272 | int | ||
| 13273 | main () | ||
| 13274 | { | ||
| 13275 | #if BYTE_ORDER != BIG_ENDIAN | ||
| 13276 | not big endian | ||
| 13277 | #endif | ||
| 13278 | |||
| 13279 | ; | ||
| 13280 | return 0; | ||
| 13281 | } | ||
| 13282 | _ACEOF | ||
| 13283 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13284 | ac_cv_c_bigendian=yes | ||
| 13285 | else | ||
| 13286 | ac_cv_c_bigendian=no | ||
| 13287 | fi | ||
| 13288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13289 | fi | ||
| 13290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13291 | fi | ||
| 13292 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13293 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
| 13294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13295 | /* end confdefs.h. */ | ||
| 13296 | #include <limits.h> | ||
| 13297 | |||
| 13298 | int | ||
| 13299 | main () | ||
| 13300 | { | ||
| 13301 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
| 13302 | bogus endian macros | ||
| 13303 | #endif | ||
| 13304 | |||
| 13305 | ; | ||
| 13306 | return 0; | ||
| 13307 | } | ||
| 13308 | _ACEOF | ||
| 13309 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13310 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
| 13311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13312 | /* end confdefs.h. */ | ||
| 13313 | #include <limits.h> | ||
| 13314 | |||
| 13315 | int | ||
| 13316 | main () | ||
| 13317 | { | ||
| 13318 | #ifndef _BIG_ENDIAN | ||
| 13319 | not big endian | ||
| 13320 | #endif | ||
| 13321 | |||
| 13322 | ; | ||
| 13323 | return 0; | ||
| 13324 | } | ||
| 13325 | _ACEOF | ||
| 13326 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13327 | ac_cv_c_bigendian=yes | ||
| 13328 | else | ||
| 13329 | ac_cv_c_bigendian=no | ||
| 13330 | fi | ||
| 13331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13332 | fi | ||
| 13333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13334 | fi | ||
| 13335 | if test $ac_cv_c_bigendian = unknown; then | ||
| 13336 | # Compile a test program. | ||
| 13337 | if test "$cross_compiling" = yes; then : | ||
| 13338 | # Try to guess by grepping values from an object file. | ||
| 13339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13340 | /* end confdefs.h. */ | ||
| 13341 | short int ascii_mm[] = | ||
| 13342 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
| 13343 | short int ascii_ii[] = | ||
| 13344 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
| 13345 | int use_ascii (int i) { | ||
| 13346 | return ascii_mm[i] + ascii_ii[i]; | ||
| 13347 | } | ||
| 13348 | short int ebcdic_ii[] = | ||
| 13349 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
| 13350 | short int ebcdic_mm[] = | ||
| 13351 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
| 13352 | int use_ebcdic (int i) { | ||
| 13353 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
| 13354 | } | ||
| 13355 | extern int foo; | ||
| 13356 | |||
| 13357 | int | ||
| 13358 | main () | ||
| 13359 | { | ||
| 13360 | return use_ascii (foo) == use_ebcdic (foo); | ||
| 13361 | ; | ||
| 13362 | return 0; | ||
| 13363 | } | ||
| 13364 | _ACEOF | ||
| 13365 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13366 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
| 13367 | ac_cv_c_bigendian=yes | ||
| 13368 | fi | ||
| 13369 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
| 13370 | if test "$ac_cv_c_bigendian" = unknown; then | ||
| 13371 | ac_cv_c_bigendian=no | ||
| 13372 | else | ||
| 13373 | # finding both strings is unlikely to happen, but who knows? | ||
| 13374 | ac_cv_c_bigendian=unknown | ||
| 13375 | fi | ||
| 13376 | fi | ||
| 13377 | fi | ||
| 13378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13379 | else | ||
| 13380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13381 | /* end confdefs.h. */ | ||
| 13382 | $ac_includes_default | ||
| 13383 | int | ||
| 13384 | main () | ||
| 13385 | { | ||
| 13386 | |||
| 13387 | /* Are we little or big endian? From Harbison&Steele. */ | ||
| 13388 | union | ||
| 13389 | { | ||
| 13390 | long int l; | ||
| 13391 | char c[sizeof (long int)]; | ||
| 13392 | } u; | ||
| 13393 | u.l = 1; | ||
| 13394 | return u.c[sizeof (long int) - 1] == 1; | ||
| 13395 | |||
| 13396 | ; | ||
| 13397 | return 0; | ||
| 13398 | } | ||
| 13399 | _ACEOF | ||
| 13400 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 13401 | ac_cv_c_bigendian=no | ||
| 13402 | else | ||
| 13403 | ac_cv_c_bigendian=yes | ||
| 13404 | fi | ||
| 13405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 13406 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 13407 | fi | ||
| 13408 | |||
| 13409 | fi | ||
| 13410 | fi | ||
| 13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
| 13412 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
| 13413 | case $ac_cv_c_bigendian in #( | ||
| 13414 | yes) | ||
| 13415 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
| 13416 | ;; #( | ||
| 13417 | no) | ||
| 13418 | ;; #( | ||
| 13419 | universal) | ||
| 13420 | |||
| 13421 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
| 13422 | |||
| 13423 | ;; #( | ||
| 13424 | *) | ||
| 13425 | as_fn_error $? "unknown endianness | ||
| 13426 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
| 13427 | esac | ||
| 13428 | |||
| 13429 | |||
| 13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
| 13431 | $as_echo_n "checking for inline... " >&6; } | ||
| 13432 | if ${ac_cv_c_inline+:} false; then : | ||
| 13433 | $as_echo_n "(cached) " >&6 | ||
| 13434 | else | ||
| 13435 | ac_cv_c_inline=no | ||
| 13436 | for ac_kw in inline __inline__ __inline; do | ||
| 13437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13438 | /* end confdefs.h. */ | ||
| 13439 | #ifndef __cplusplus | ||
| 13440 | typedef int foo_t; | ||
| 13441 | static $ac_kw foo_t static_foo () {return 0; } | ||
| 13442 | $ac_kw foo_t foo () {return 0; } | ||
| 13443 | #endif | ||
| 13444 | |||
| 13445 | _ACEOF | ||
| 13446 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13447 | ac_cv_c_inline=$ac_kw | ||
| 13448 | fi | ||
| 13449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13450 | test "$ac_cv_c_inline" != no && break | ||
| 13451 | done | ||
| 13452 | |||
| 13453 | fi | ||
| 13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
| 13455 | $as_echo "$ac_cv_c_inline" >&6; } | ||
| 13456 | |||
| 13457 | case $ac_cv_c_inline in | ||
| 13458 | inline | yes) ;; | ||
| 13459 | *) | ||
| 13460 | case $ac_cv_c_inline in | ||
| 13461 | no) ac_val=;; | ||
| 13462 | *) ac_val=$ac_cv_c_inline;; | ||
| 13463 | esac | ||
| 13464 | cat >>confdefs.h <<_ACEOF | ||
| 13465 | #ifndef __cplusplus | ||
| 13466 | #define inline $ac_val | ||
| 13467 | #endif | ||
| 13468 | _ACEOF | ||
| 13469 | ;; | ||
| 13470 | esac | ||
| 13471 | |||
| 13472 | |||
| 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 | 13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 |
| 13205 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } | 13474 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } |
| 13206 | if ${gl_cv_func_c99_strtold+:} false; then : | 13475 | if ${gl_cv_func_c99_strtold+:} false; then : |
| @@ -13964,48 +14233,6 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |||
| 13964 | fi | 14233 | fi |
| 13965 | 14234 | ||
| 13966 | 14235 | ||
| 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
| 13968 | $as_echo_n "checking for inline... " >&6; } | ||
| 13969 | if ${ac_cv_c_inline+:} false; then : | ||
| 13970 | $as_echo_n "(cached) " >&6 | ||
| 13971 | else | ||
| 13972 | ac_cv_c_inline=no | ||
| 13973 | for ac_kw in inline __inline__ __inline; do | ||
| 13974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 13975 | /* end confdefs.h. */ | ||
| 13976 | #ifndef __cplusplus | ||
| 13977 | typedef int foo_t; | ||
| 13978 | static $ac_kw foo_t static_foo () {return 0; } | ||
| 13979 | $ac_kw foo_t foo () {return 0; } | ||
| 13980 | #endif | ||
| 13981 | |||
| 13982 | _ACEOF | ||
| 13983 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 13984 | ac_cv_c_inline=$ac_kw | ||
| 13985 | fi | ||
| 13986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 13987 | test "$ac_cv_c_inline" != no && break | ||
| 13988 | done | ||
| 13989 | |||
| 13990 | fi | ||
| 13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
| 13992 | $as_echo "$ac_cv_c_inline" >&6; } | ||
| 13993 | |||
| 13994 | case $ac_cv_c_inline in | ||
| 13995 | inline | yes) ;; | ||
| 13996 | *) | ||
| 13997 | case $ac_cv_c_inline in | ||
| 13998 | no) ac_val=;; | ||
| 13999 | *) ac_val=$ac_cv_c_inline;; | ||
| 14000 | esac | ||
| 14001 | cat >>confdefs.h <<_ACEOF | ||
| 14002 | #ifndef __cplusplus | ||
| 14003 | #define inline $ac_val | ||
| 14004 | #endif | ||
| 14005 | _ACEOF | ||
| 14006 | ;; | ||
| 14007 | esac | ||
| 14008 | |||
| 14009 | 14236 | ||
| 14010 | GNULIB_MKTIME=0; | 14237 | GNULIB_MKTIME=0; |
| 14011 | GNULIB_NANOSLEEP=0; | 14238 | GNULIB_NANOSLEEP=0; |
| @@ -14460,6 +14687,23 @@ fi | |||
| 14460 | gl_source_base='lib' | 14687 | gl_source_base='lib' |
| 14461 | # Code from module arg-nonnull: | 14688 | # Code from module arg-nonnull: |
| 14462 | # Code from module c++defs: | 14689 | # Code from module c++defs: |
| 14690 | # Code from module crypto/md5: | ||
| 14691 | |||
| 14692 | |||
| 14693 | |||
| 14694 | |||
| 14695 | |||
| 14696 | |||
| 14697 | |||
| 14698 | |||
| 14699 | |||
| 14700 | gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext" | ||
| 14701 | |||
| 14702 | |||
| 14703 | |||
| 14704 | |||
| 14705 | : | ||
| 14706 | |||
| 14463 | # Code from module dtoastr: | 14707 | # Code from module dtoastr: |
| 14464 | 14708 | ||
| 14465 | # Code from module extensions: | 14709 | # Code from module extensions: |
| @@ -17861,6 +18105,7 @@ if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | |||
| 17861 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 18105 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 17862 | fi | 18106 | fi |
| 17863 | 18107 | ||
| 18108 | |||
| 17864 | gl_libobjs= | 18109 | gl_libobjs= |
| 17865 | gl_ltlibobjs= | 18110 | gl_ltlibobjs= |
| 17866 | if test -n "$gl_LIBOBJS"; then | 18111 | if test -n "$gl_LIBOBJS"; then |