View | Details | Raw Unified | Return to ticket 1117 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure (-66 / +54 lines)
Lines 6188-6194 else Link Here
6188
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6188
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6189
    since some C++ compilers masquerading as C compilers
6189
    since some C++ compilers masquerading as C compilers
6190
    incorrectly reject 9223372036854775807.  */
6190
    incorrectly reject 9223372036854775807.  */
6191
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6191
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6192
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6192
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6193
		       && LARGE_OFF_T % 2147483647 == 1)
6193
		       && LARGE_OFF_T % 2147483647 == 1)
6194
		      ? 1 : -1];
6194
		      ? 1 : -1];
Lines 6234-6240 else Link Here
6234
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6234
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6235
    since some C++ compilers masquerading as C compilers
6235
    since some C++ compilers masquerading as C compilers
6236
    incorrectly reject 9223372036854775807.  */
6236
    incorrectly reject 9223372036854775807.  */
6237
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6237
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6238
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6238
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6239
		       && LARGE_OFF_T % 2147483647 == 1)
6239
		       && LARGE_OFF_T % 2147483647 == 1)
6240
		      ? 1 : -1];
6240
		      ? 1 : -1];
Lines 6258-6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Link Here
6258
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6258
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6259
    since some C++ compilers masquerading as C compilers
6259
    since some C++ compilers masquerading as C compilers
6260
    incorrectly reject 9223372036854775807.  */
6260
    incorrectly reject 9223372036854775807.  */
6261
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6261
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6262
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6262
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6263
		       && LARGE_OFF_T % 2147483647 == 1)
6263
		       && LARGE_OFF_T % 2147483647 == 1)
6264
		      ? 1 : -1];
6264
		      ? 1 : -1];
Lines 6303-6309 else Link Here
6303
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6303
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6304
    since some C++ compilers masquerading as C compilers
6304
    since some C++ compilers masquerading as C compilers
6305
    incorrectly reject 9223372036854775807.  */
6305
    incorrectly reject 9223372036854775807.  */
6306
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6306
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6307
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6307
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6308
		       && LARGE_OFF_T % 2147483647 == 1)
6308
		       && LARGE_OFF_T % 2147483647 == 1)
6309
		      ? 1 : -1];
6309
		      ? 1 : -1];
Lines 6327-6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext Link Here
6327
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6327
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6328
    since some C++ compilers masquerading as C compilers
6328
    since some C++ compilers masquerading as C compilers
6329
    incorrectly reject 9223372036854775807.  */
6329
    incorrectly reject 9223372036854775807.  */
6330
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6330
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6331
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6331
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6332
		       && LARGE_OFF_T % 2147483647 == 1)
6332
		       && LARGE_OFF_T % 2147483647 == 1)
6333
		      ? 1 : -1];
6333
		      ? 1 : -1];
Lines 8233-8240 else Link Here
8233
    ;;
8233
    ;;
8234
  *)
8234
  *)
8235
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8235
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8236
    if test -n "$lt_cv_sys_max_cmd_len" && \
8236
    if test -n "$lt_cv_sys_max_cmd_len"; then
8237
	test undefined != "$lt_cv_sys_max_cmd_len"; then
8238
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8237
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8239
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8238
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8240
    else
8239
    else
Lines 8635-8640 freebsd* | dragonfly*) Link Here
8635
  fi
8634
  fi
8636
  ;;
8635
  ;;
8637
8636
8637
gnu*)
8638
  lt_cv_deplibs_check_method=pass_all
8639
  ;;
8640
8638
haiku*)
8641
haiku*)
8639
  lt_cv_deplibs_check_method=pass_all
8642
  lt_cv_deplibs_check_method=pass_all
8640
  ;;
8643
  ;;
Lines 8673-8683 irix5* | irix6* | nonstopux*) Link Here
8673
  ;;
8676
  ;;
8674
8677
8675
# This must be glibc/ELF.
8678
# This must be glibc/ELF.
8676
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8679
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8677
  lt_cv_deplibs_check_method=pass_all
8680
  lt_cv_deplibs_check_method=pass_all
8678
  ;;
8681
  ;;
8679
8682
8680
netbsd* | netbsdelf*-gnu)
8683
netbsd*)
8681
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8684
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8682
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8685
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8683
  else
8686
  else
Lines 9754-9760 ia64-*-hpux*) Link Here
9754
  rm -rf conftest*
9757
  rm -rf conftest*
9755
  ;;
9758
  ;;
9756
9759
9757
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9760
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9758
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9761
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9759
  # Find out which ABI we are using.
9762
  # Find out which ABI we are using.
9760
  echo 'int i;' > conftest.$ac_ext
9763
  echo 'int i;' > conftest.$ac_ext
Lines 9770-9788 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) Link Here
9770
	    LD="${LD-ld} -m elf_i386_fbsd"
9773
	    LD="${LD-ld} -m elf_i386_fbsd"
9771
	    ;;
9774
	    ;;
9772
	  x86_64-*linux*)
9775
	  x86_64-*linux*)
9773
	    case `/usr/bin/file conftest.o` in
9776
	    LD="${LD-ld} -m elf_i386"
9774
	      *x86-64*)
9775
		LD="${LD-ld} -m elf32_x86_64"
9776
		;;
9777
	      *)
9778
		LD="${LD-ld} -m elf_i386"
9779
		;;
9780
	    esac
9781
	    ;;
9782
	  powerpc64le-*)
9783
	    LD="${LD-ld} -m elf32lppclinux"
9784
	    ;;
9777
	    ;;
9785
	  powerpc64-*)
9778
	  ppc64-*linux*|powerpc64-*linux*)
9786
	    LD="${LD-ld} -m elf32ppclinux"
9779
	    LD="${LD-ld} -m elf32ppclinux"
9787
	    ;;
9780
	    ;;
9788
	  s390x-*linux*)
9781
	  s390x-*linux*)
Lines 9801-9810 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) Link Here
9801
	  x86_64-*linux*)
9794
	  x86_64-*linux*)
9802
	    LD="${LD-ld} -m elf_x86_64"
9795
	    LD="${LD-ld} -m elf_x86_64"
9803
	    ;;
9796
	    ;;
9804
	  powerpcle-*)
9797
	  ppc*-*linux*|powerpc*-*linux*)
9805
	    LD="${LD-ld} -m elf64lppc"
9806
	    ;;
9807
	  powerpc-*)
9808
	    LD="${LD-ld} -m elf64ppc"
9798
	    LD="${LD-ld} -m elf64ppc"
9809
	    ;;
9799
	    ;;
9810
	  s390*-*linux*|s390*-*tpf*)
9800
	  s390*-*linux*|s390*-*tpf*)
Lines 11355-11361 lt_prog_compiler_static= Link Here
11355
      lt_prog_compiler_static='-non_shared'
11345
      lt_prog_compiler_static='-non_shared'
11356
      ;;
11346
      ;;
11357
11347
11358
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11348
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11359
      case $cc_basename in
11349
      case $cc_basename in
11360
      # old Intel for x86_64 which still supported -KPIC.
11350
      # old Intel for x86_64 which still supported -KPIC.
11361
      ecc*)
11351
      ecc*)
Lines 11833-11841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie Link Here
11833
  openbsd*)
11823
  openbsd*)
11834
    with_gnu_ld=no
11824
    with_gnu_ld=no
11835
    ;;
11825
    ;;
11836
  linux* | k*bsd*-gnu | gnu*)
11837
    link_all_deplibs=no
11838
    ;;
11839
  esac
11826
  esac
11840
11827
11841
  ld_shlibs=yes
11828
  ld_shlibs=yes
Lines 12057-12063 _LT_EOF Link Here
12057
      fi
12044
      fi
12058
      ;;
12045
      ;;
12059
12046
12060
    netbsd* | netbsdelf*-gnu)
12047
    netbsd*)
12061
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12048
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12062
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12049
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12063
	wlarc=
12050
	wlarc=
Lines 12234-12240 _LT_EOF Link Here
12234
	if test "$aix_use_runtimelinking" = yes; then
12221
	if test "$aix_use_runtimelinking" = yes; then
12235
	  shared_flag="$shared_flag "'${wl}-G'
12222
	  shared_flag="$shared_flag "'${wl}-G'
12236
	fi
12223
	fi
12237
	link_all_deplibs=no
12238
      else
12224
      else
12239
	# not using gcc
12225
	# not using gcc
12240
	if test "$host_cpu" = ia64; then
12226
	if test "$host_cpu" = ia64; then
Lines 12688-12694 $as_echo "$lt_cv_irix_exported_symbol" >&6; } Link Here
12688
      link_all_deplibs=yes
12674
      link_all_deplibs=yes
12689
      ;;
12675
      ;;
12690
12676
12691
    netbsd* | netbsdelf*-gnu)
12677
    netbsd*)
12692
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12678
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12693
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12679
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12694
      else
12680
      else
Lines 13525-13530 freebsd* | dragonfly*) Link Here
13525
  esac
13511
  esac
13526
  ;;
13512
  ;;
13527
13513
13514
gnu*)
13515
  version_type=linux # correct to gnu/linux during the next big refactor
13516
  need_lib_prefix=no
13517
  need_version=no
13518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13519
  soname_spec='${libname}${release}${shared_ext}$major'
13520
  shlibpath_var=LD_LIBRARY_PATH
13521
  shlibpath_overrides_runpath=no
13522
  hardcode_into_libs=yes
13523
  ;;
13524
13528
haiku*)
13525
haiku*)
13529
  version_type=linux # correct to gnu/linux during the next big refactor
13526
  version_type=linux # correct to gnu/linux during the next big refactor
13530
  need_lib_prefix=no
13527
  need_lib_prefix=no
Lines 13641-13647 linux*oldld* | linux*aout* | linux*coff*) Link Here
13641
  ;;
13638
  ;;
13642
13639
13643
# This must be glibc/ELF.
13640
# This must be glibc/ELF.
13644
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13641
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13645
  version_type=linux # correct to gnu/linux during the next big refactor
13642
  version_type=linux # correct to gnu/linux during the next big refactor
13646
  need_lib_prefix=no
13643
  need_lib_prefix=no
13647
  need_version=no
13644
  need_version=no
Lines 13705-13722 fi Link Here
13705
  dynamic_linker='GNU/Linux ld.so'
13702
  dynamic_linker='GNU/Linux ld.so'
13706
  ;;
13703
  ;;
13707
13704
13708
netbsdelf*-gnu)
13709
  version_type=linux
13710
  need_lib_prefix=no
13711
  need_version=no
13712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13713
  soname_spec='${libname}${release}${shared_ext}$major'
13714
  shlibpath_var=LD_LIBRARY_PATH
13715
  shlibpath_overrides_runpath=no
13716
  hardcode_into_libs=yes
13717
  dynamic_linker='NetBSD ld.elf_so'
13718
  ;;
13719
13720
netbsd*)
13705
netbsd*)
13721
  version_type=sunos
13706
  version_type=sunos
13722
  need_lib_prefix=no
13707
  need_lib_prefix=no
Lines 15464-15469 fi Link Here
15464
        ld_shlibs_CXX=yes
15449
        ld_shlibs_CXX=yes
15465
        ;;
15450
        ;;
15466
15451
15452
      gnu*)
15453
        ;;
15454
15467
      haiku*)
15455
      haiku*)
15468
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15456
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15469
        link_all_deplibs_CXX=yes
15457
        link_all_deplibs_CXX=yes
Lines 15625-15631 fi Link Here
15625
        inherit_rpath_CXX=yes
15613
        inherit_rpath_CXX=yes
15626
        ;;
15614
        ;;
15627
15615
15628
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15616
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15629
        case $cc_basename in
15617
        case $cc_basename in
15630
          KCC*)
15618
          KCC*)
15631
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15619
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
Lines 16485-16491 lt_prog_compiler_static_CXX= Link Here
16485
	    ;;
16473
	    ;;
16486
	esac
16474
	esac
16487
	;;
16475
	;;
16488
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16476
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16489
	case $cc_basename in
16477
	case $cc_basename in
16490
	  KCC*)
16478
	  KCC*)
16491
	    # KAI C++ Compiler
16479
	    # KAI C++ Compiler
Lines 16549-16555 lt_prog_compiler_static_CXX= Link Here
16549
	    ;;
16537
	    ;;
16550
	esac
16538
	esac
16551
	;;
16539
	;;
16552
      netbsd* | netbsdelf*-gnu)
16540
      netbsd*)
16553
	;;
16541
	;;
16554
      *qnx* | *nto*)
16542
      *qnx* | *nto*)
16555
        # QNX uses GNU C++, but need to define -shared option too, otherwise
16543
        # QNX uses GNU C++, but need to define -shared option too, otherwise
Lines 16920-16928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie Link Here
16920
      ;;
16908
      ;;
16921
    esac
16909
    esac
16922
    ;;
16910
    ;;
16923
  linux* | k*bsd*-gnu | gnu*)
16924
    link_all_deplibs_CXX=no
16925
    ;;
16926
  *)
16911
  *)
16927
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16928
    ;;
16913
    ;;
Lines 17357-17362 freebsd* | dragonfly*) Link Here
17357
  esac
17342
  esac
17358
  ;;
17343
  ;;
17359
17344
17345
gnu*)
17346
  version_type=linux # correct to gnu/linux during the next big refactor
17347
  need_lib_prefix=no
17348
  need_version=no
17349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17350
  soname_spec='${libname}${release}${shared_ext}$major'
17351
  shlibpath_var=LD_LIBRARY_PATH
17352
  shlibpath_overrides_runpath=no
17353
  hardcode_into_libs=yes
17354
  ;;
17355
17360
haiku*)
17356
haiku*)
17361
  version_type=linux # correct to gnu/linux during the next big refactor
17357
  version_type=linux # correct to gnu/linux during the next big refactor
17362
  need_lib_prefix=no
17358
  need_lib_prefix=no
Lines 17473-17479 linux*oldld* | linux*aout* | linux*coff*) Link Here
17473
  ;;
17469
  ;;
17474
17470
17475
# This must be glibc/ELF.
17471
# This must be glibc/ELF.
17476
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17472
linux* | k*bsd*-gnu | kopensolaris*-gnu)
17477
  version_type=linux # correct to gnu/linux during the next big refactor
17473
  version_type=linux # correct to gnu/linux during the next big refactor
17478
  need_lib_prefix=no
17474
  need_lib_prefix=no
17479
  need_version=no
17475
  need_version=no
Lines 17537-17554 fi Link Here
17537
  dynamic_linker='GNU/Linux ld.so'
17533
  dynamic_linker='GNU/Linux ld.so'
17538
  ;;
17534
  ;;
17539
17535
17540
netbsdelf*-gnu)
17541
  version_type=linux
17542
  need_lib_prefix=no
17543
  need_version=no
17544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17545
  soname_spec='${libname}${release}${shared_ext}$major'
17546
  shlibpath_var=LD_LIBRARY_PATH
17547
  shlibpath_overrides_runpath=no
17548
  hardcode_into_libs=yes
17549
  dynamic_linker='NetBSD ld.elf_so'
17550
  ;;
17551
17552
netbsd*)
17536
netbsd*)
17553
  version_type=sunos
17537
  version_type=sunos
17554
  need_lib_prefix=no
17538
  need_lib_prefix=no
Lines 19509-19514 for ac_func in \ Link Here
19509
   sysctlbyname \
19493
   sysctlbyname \
19510
   cfmakeraw \
19494
   cfmakeraw \
19511
   setresuid \
19495
   setresuid \
19496
   get_current_dir_name \
19512
19497
19513
do :
19498
do :
19514
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19499
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lines 21311-21320 int Link Here
21311
main ()
21296
main ()
21312
{
21297
{
21313
  unsigned int major, minor, micro;
21298
  unsigned int major, minor, micro;
21299
  char *tmp_version;
21314
21300
21315
  fclose (fopen ("conf.glibtest", "w"));
21301
  fclose (fopen ("conf.glibtest", "w"));
21316
21302
21317
  if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
21303
  /* HP/UX 9 (%@#!) writes to sscanf strings */
21304
  tmp_version = g_strdup("$min_glib_version");
21305
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
21318
     printf("%s, bad version string\n", "$min_glib_version");
21306
     printf("%s, bad version string\n", "$min_glib_version");
21319
     exit(1);
21307
     exit(1);
21320
   }
21308
   }
(-)a/src/common/util-net.c (-1 / +2 lines)
Lines 399-405 extern char *make_full_path(char *rpath) Link Here
399
#ifdef HAVE_GET_CURRENT_DIR_NAME
399
#ifdef HAVE_GET_CURRENT_DIR_NAME
400
	cwd = get_current_dir_name();
400
	cwd = get_current_dir_name();
401
#else
401
#else
402
	cwd = getcwd(NULL, PATH_MAX);
402
	cwd = xmalloc(PATH_MAX);
403
	cwd = getcwd(cwd, PATH_MAX);
403
#endif
404
#endif
404
	/* 2 = / + 0
405
	/* 2 = / + 0
405
	 */
406
	 */

Return to ticket 1117