openpkg/rpm.patch.regen

Tue, 06 Jan 2009 23:48:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2009 23:48:04 +0100
changeset 18
9115bae56135
permissions
-rw-r--r--

Complete packaging logic and include fscanf(3) proxy to correct runtime.

michael@13 1 ##
michael@13 2 ## rpm.patch.regen -- Annotated OpenPKG RPM Patch file
michael@13 3 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@13 4 ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
michael@13 5 ##
michael@13 6 ## This file assembles changes to existing RPM source files between
michael@13 7 ## the original RedHat RPM and the OpenPKG RPM variant. It can be
michael@13 8 ## automatically applied to a vanilla RedHat RPM source tree with the
michael@13 9 ## 'patch' tool to upgrade those files. Each patch snippet is annotated
michael@13 10 ## with a short description.
michael@13 11 ##
michael@13 12 ## Created on: 13-Sep-2006
michael@13 13 ##
michael@13 14 ## ATTENTION: THIS PATCH FILE WAS AUTO-GENERATED FROM AN OPENPKG
michael@13 15 ## RPM CVS REPOSITORY, HENCE DO NOT EDIT THIS FILE.
michael@13 16 ##
michael@13 17
michael@13 18 +---------------------------------------------------------------------------
michael@13 19 | Corresponding patches in "config.h.in" script after regeneration from
michael@13 20 | patched "configure.ac" with "autoheader".
michael@13 21 +---------------------------------------------------------------------------
michael@13 22 Index: config.h.in
michael@13 23 --- config.h.in 16 Jul 2003 17:17:13 -0000 1.1.1.18
michael@13 24 +++ config.h.in 13 Sep 2006 13:41:41 -0000
michael@13 25 @@ -108,6 +108,9 @@
michael@13 26 /* Define if you have the getmntent() function */
michael@13 27 #undef HAVE_GETMNTENT
michael@13 28
michael@13 29 +/* Define as 1 if you have the getmntinfo() function */
michael@13 30 +#undef HAVE_GETMNTINFO
michael@13 31 +
michael@13 32 /* Define as 1 if you have getmntinfo_r() (only osf?) */
michael@13 33 #undef HAVE_GETMNTINFO_R
michael@13 34
michael@13 35 @@ -181,18 +184,12 @@
michael@13 36 /* Define to 1 if you have the `port' library (-lport). */
michael@13 37 #undef HAVE_LIBPORT
michael@13 38
michael@13 39 -/* Define to 1 if you have the `pthread' library (-lpthread). */
michael@13 40 -#undef HAVE_LIBPTHREAD
michael@13 41 -
michael@13 42 /* Define to 1 if you have the `rand' library (-lrand). */
michael@13 43 #undef HAVE_LIBRAND
michael@13 44
michael@13 45 /* Define to 1 if you have the `socket' library (-lsocket). */
michael@13 46 #undef HAVE_LIBSOCKET
michael@13 47
michael@13 48 -/* Define to 1 if you have the `thread' library (-lthread). */
michael@13 49 -#undef HAVE_LIBTHREAD
michael@13 50 -
michael@13 51 /* Define to 1 if you have the <limits.h> header file. */
michael@13 52 #undef HAVE_LIMITS_H
michael@13 53
michael@13 54 @@ -259,9 +256,6 @@
michael@13 55 /* Define to 1 if you have the `regcomp' function. */
michael@13 56 #undef HAVE_REGCOMP
michael@13 57
michael@13 58 -/* Define to 1 if you have the <semaphore.h> header file. */
michael@13 59 -#undef HAVE_SEMAPHORE_H
michael@13 60 -
michael@13 61 /* Define to 1 if you have the `setenv' function. */
michael@13 62 #undef HAVE_SETENV
michael@13 63
michael@13 64 @@ -323,9 +317,6 @@
michael@13 65 /* Define as 1 if you have "struct mnttab" (only sco?) */
michael@13 66 #undef HAVE_STRUCT_MNTTAB
michael@13 67
michael@13 68 -/* Define to 1 if you have the <synch.h> header file. */
michael@13 69 -#undef HAVE_SYNCH_H
michael@13 70 -
michael@13 71 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
michael@13 72 */
michael@13 73 #undef HAVE_SYS_DIR_H
michael@13 74 @@ -391,9 +382,6 @@
michael@13 75 /* Define as 1 if <sys/stat.h> defines S_ISSOCK */
michael@13 76 #undef HAVE_S_ISSOCK
michael@13 77
michael@13 78 -/* Define to 1 if you have the <thread.h> header file. */
michael@13 79 -#undef HAVE_THREAD_H
michael@13 80 -
michael@13 81 /* Define to 1 if you have the `tsearch' function. */
michael@13 82 #undef HAVE_TSEARCH
michael@13 83
michael@13 84 @@ -586,6 +574,17 @@
michael@13 85 /* Define to `unsigned' if <sys/types.h> does not define. */
michael@13 86 #undef size_t
michael@13 87
michael@13 88 +#ifndef HAVE_STDINT_H
michael@13 89 +/* uint16_t */
michael@13 90 +#undef uint16_t
michael@13 91 +
michael@13 92 +/* uint32_t */
michael@13 93 +#undef uint32_t
michael@13 94 +
michael@13 95 +/* uint8_t */
michael@13 96 +#undef uint8_t
michael@13 97 +#endif
michael@13 98 +
michael@13 99 /* Define to unsigned long or unsigned long long if <inttypes.h> and
michael@13 100 <stdint.h> don't define. */
michael@13 101 #undef uintmax_t
michael@13 102
michael@13 103 +---------------------------------------------------------------------------
michael@13 104 | Corresponding patches in "configure" script after regeneration from
michael@13 105 | patched "configure.ac" with "autoconf".
michael@13 106 +---------------------------------------------------------------------------
michael@13 107 Index: configure
michael@13 108 --- configure 16 Jul 2003 17:05:55 -0000 1.1.1.23
michael@13 109 +++ configure 13 Sep 2006 13:41:43 -0000
michael@13 110 @@ -467,7 +467,7 @@
michael@13 111 # include <unistd.h>
michael@13 112 #endif"
michael@13 113
michael@13 114 -ac_subdirs_all="$ac_subdirs_all popt beecrypt zlib elfutils file db3"
michael@13 115 +ac_subdirs_all="$ac_subdirs_all popt zlib elfutils file db3"
michael@13 116 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS RPMUSER RPMUID RPMGROUP RPMGID CTAGS CSCOPE LDFLAGS_STATIC LDFLAGS_NPTL FIXPERMS MKDIR MKDIR_P U ANSI2KNR LN_S ECHO RANLIB ac_ct_RANLIB LIBTOOL AR ac_ct_AR BZIP2BIN __CAT __CHGRP __CHMOD __CHOWN __CP __CPIO __FILE __GPG __GREP GZIPBIN UNZIPBIN __ID __ID_U __INSTALL __MAKE __MKDIR __MV __PATCH __PERL PGPBIN __PYTHON __RM __RSH __SED __SSH __TAR __LD __NM __OBJCOPY __OBJDUMP __STRIP WITH_ZLIB_SUBDIR WITH_ZLIB_INCLUDE WITH_ZLIB_LIB WITH_ELFUTILS_SUBDIR WITH_LIBELF_INCLUDE WITH_LIBELF_LIB WITH_LIBDWARF_INCLUDE WITH_BEECRYPT_SUBDIR WITH_BEECRYPT_INCLUDE WITH_BEECRYPT_LIB WITH_DB_SUBDIR WITH_INTERNAL_DB DBLIBSRCS DBLIBOBJS libdb3 libdb3a WITH_BZIP2 MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS WITH_PYTHON_SUBDIR WITH_PYTHON_SUBPACKAGE WITH_PYTHON_VERSION __DOXYGEN WITH_APIDOCS_TARGET WITH_APIDOCS __CHOWN_RHF __CHGRP_RHF ROOT_GROUP varprefix tmpdir MARK64 RPMCANONCOLOR autorelocate_path RPMCANONARCH RPMCANONVENDOR RPMCANONOS LOCALEDIR LIBDIR RPMCONFIGDIR SYSCONFIGDIR MACROFILES LIBRPMRC_FILENAME VENDORRPMRC_FILENAME LIBRPMALIAS_FILENAME FINDREQUIRES FINDPROVIDES testdir INCPATH LIBMISC RPM OBJDUMP subdirs LTLIBOBJS'
michael@13 117 ac_subst_files=''
michael@13 118
michael@13 119 @@ -4040,7 +4040,7 @@
michael@13 120 AS=${AS-as}
michael@13 121
michael@13 122 if test "$ac_cv_c_compiler_gnu" = yes; then
michael@13 123 - CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
michael@13 124 + CFLAGS="$CFLAGS -O2 -D_GNU_SOURCE -D_REENTRANT"
michael@13 125 fi
michael@13 126 export CFLAGS
michael@13 127
michael@13 128 @@ -4837,16 +4837,13 @@
michael@13 129 # just link it dynamically
michael@13 130 LDFLAGS_STATIC=""
michael@13 131 fi
michael@13 132 +LDFLAGS_STATIC="" # OpenPKG wants dynamically linked RPM tools
michael@13 133 LDFLAGS_STATIC="${LDFLAGS} ${LDFLAGS_STATIC}" # libtool format
michael@13 134 echo "$as_me:$LINENO: result: $LDFLAGS_STATIC" >&5
michael@13 135 echo "${ECHO_T}$LDFLAGS_STATIC" >&6
michael@13 136
michael@13 137
michael@13 138 LDFLAGS_NPTL=
michael@13 139 -if test -f /usr/lib/nptl/libpthread.a ; then
michael@13 140 - LDFLAGS_NPTL="-L/usr/lib/nptl"
michael@13 141 -# INCPATH="$INCPATH -I/usr/include/nptl"
michael@13 142 -fi
michael@13 143
michael@13 144
michael@13 145 echo "$as_me:$LINENO: checking POSIX chmod" >&5
michael@13 146 @@ -4937,7 +4934,7 @@
michael@13 147 if test X"$MKDIR_P" = X0 ; then
michael@13 148 echo "$as_me:$LINENO: result: no" >&5
michael@13 149 echo "${ECHO_T}no" >&6
michael@13 150 - MKDIR_P="`echo ${prefix}/lib/rpm/mkinstalldirs`"
michael@13 151 + MKDIR_P="@l_prefix@/lib/openpkg/shtool mkdir -f -p -m 755"
michael@13 152 else
michael@13 153 echo "$as_me:$LINENO: result: yes" >&5
michael@13 154 echo "${ECHO_T}yes" >&6
michael@13 155 @@ -5878,6 +5875,7 @@
michael@13 156 ;;
michael@13 157 *) # Darwin 1.3 on
michael@13 158 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
michael@13 159 + lt_cv_deplibs_check_method=pass_all
michael@13 160 ;;
michael@13 161 esac
michael@13 162 ;;
michael@13 163 @@ -5903,7 +5901,7 @@
michael@13 164 ;;
michael@13 165
michael@13 166 hpux10.20*|hpux11*)
michael@13 167 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
michael@13 168 + lt_cv_deplibs_check_method='pass_all'
michael@13 169 lt_cv_file_magic_cmd=/usr/bin/file
michael@13 170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
michael@13 171 ;;
michael@13 172 @@ -5942,11 +5940,7 @@
michael@13 173 ;;
michael@13 174
michael@13 175 netbsd*)
michael@13 176 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
michael@13 177 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
michael@13 178 - else
michael@13 179 - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
michael@13 180 - fi
michael@13 181 + lt_cv_deplibs_check_method='pass_all'
michael@13 182 ;;
michael@13 183
michael@13 184 newos6*)
michael@13 185 @@ -5981,7 +5975,7 @@
michael@13 186 lt_cv_file_magic_test_file=/lib/libc.so
michael@13 187 ;;
michael@13 188
michael@13 189 -sysv5uw[78]* | sysv4*uw2*)
michael@13 190 +sysv5uw[78]* | sysv4*uw2* | sysv5UnixWare7* )
michael@13 191 lt_cv_deplibs_check_method=pass_all
michael@13 192 ;;
michael@13 193
michael@13 194 @@ -6682,7 +6676,7 @@
michael@13 195 case $host in
michael@13 196 *-*-irix6*)
michael@13 197 # Find out which ABI we are using.
michael@13 198 - echo '#line 6685 "configure"' > conftest.$ac_ext
michael@13 199 + echo '#line 6679 "configure"' > conftest.$ac_ext
michael@13 200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
michael@13 201 (eval $ac_compile) 2>&5
michael@13 202 ac_status=$?
michael@13 203 @@ -7211,7 +7205,7 @@
michael@13 204 save_CFLAGS="$CFLAGS"
michael@13 205 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
michael@13 206 compiler_c_o=no
michael@13 207 -if { (eval echo configure:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
michael@13 208 +if { (eval echo configure:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
michael@13 209 # The compiler can only warn and ignore the option if not recognized
michael@13 210 # So say no if there are warnings
michael@13 211 if test -s out/conftest.err; then
michael@13 212 @@ -8069,7 +8063,7 @@
michael@13 213 runpath_var=LD_RUN_PATH
michael@13 214 ;;
michael@13 215
michael@13 216 - sysv5uw7* | unixware7*)
michael@13 217 + sysv5uw7* | unixware7* | sysv5UnixWare7* )
michael@13 218 no_undefined_flag='${wl}-z ${wl}text'
michael@13 219 if test "$GCC" = yes; then
michael@13 220 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
michael@13 221 @@ -8395,7 +8389,7 @@
michael@13 222 libsuff=
michael@13 223 case "$host_cpu" in
michael@13 224 x86_64*|s390x*)
michael@13 225 - echo '#line 8398 "configure"' > conftest.$ac_ext
michael@13 226 + echo '#line 8392 "configure"' > conftest.$ac_ext
michael@13 227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
michael@13 228 (eval $ac_compile) 2>&5
michael@13 229 ac_status=$?
michael@13 230 @@ -9067,7 +9061,7 @@
michael@13 231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
michael@13 232 lt_status=$lt_dlunknown
michael@13 233 cat > conftest.$ac_ext <<EOF
michael@13 234 -#line 9070 "configure"
michael@13 235 +#line 9064 "configure"
michael@13 236 #include "confdefs.h"
michael@13 237
michael@13 238 #if HAVE_DLFCN_H
michael@13 239 @@ -9165,7 +9159,7 @@
michael@13 240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
michael@13 241 lt_status=$lt_dlunknown
michael@13 242 cat > conftest.$ac_ext <<EOF
michael@13 243 -#line 9168 "configure"
michael@13 244 +#line 9162 "configure"
michael@13 245 #include "confdefs.h"
michael@13 246
michael@13 247 #if HAVE_DLFCN_H
michael@13 248 @@ -11266,7 +11260,7 @@
michael@13 249 WITH_ZLIB_SUBDIR=
michael@13 250 WITH_ZLIB_INCLUDE=
michael@13 251 WITH_ZLIB_LIB=
michael@13 252 -if test -d zlib ; then
michael@13 253 +if false; then
michael@13 254 WITH_ZLIB_SUBDIR=zlib
michael@13 255 addlib \${top_builddir}/zlib
michael@13 256 WITH_ZLIB_INCLUDE="-I\${top_srcdir}/${WITH_ZLIB_SUBDIR}"
michael@13 257 @@ -11284,44 +11278,6 @@
michael@13 258
michael@13 259 localdone=
michael@13 260
michael@13 261 -dirs=$prefix
michael@13 262 -if test "$cross_compiling" != "yes"; then
michael@13 263 - dirs="$dirs /usr/local"
michael@13 264 -fi
michael@13 265 -for dir in $dirs
michael@13 266 -do
michael@13 267 - case $dir in
michael@13 268 - NONE|/usr) continue;;
michael@13 269 - /usr/local)
michael@13 270 - if test X$localdone != X ; then continue; fi
michael@13 271 - localdone="$dir"
michael@13 272 - ;;
michael@13 273 - esac
michael@13 274 -
michael@13 275 - echo "$as_me:$LINENO: checking for $dir/lib in LIBS" >&5
michael@13 276 -echo $ECHO_N "checking for $dir/lib in LIBS... $ECHO_C" >&6
michael@13 277 - if test -d $dir/lib 2> /dev/null ; then
michael@13 278 - addlib $dir/lib
michael@13 279 - echo "$as_me:$LINENO: result: yes" >&5
michael@13 280 -echo "${ECHO_T}yes" >&6
michael@13 281 - else
michael@13 282 - echo "$as_me:$LINENO: result: no" >&5
michael@13 283 -echo "${ECHO_T}no" >&6
michael@13 284 - fi
michael@13 285 -
michael@13 286 - echo "$as_me:$LINENO: checking for $dir/include in INCPATH" >&5
michael@13 287 -echo $ECHO_N "checking for $dir/include in INCPATH... $ECHO_C" >&6
michael@13 288 - if test -d $dir/include 2>/dev/null ; then
michael@13 289 - if "$dir" != "/usr/local" ; then
michael@13 290 - INCPATH="$INCPATH -I$dir/include"
michael@13 291 - fi
michael@13 292 - echo "$as_me:$LINENO: result: yes" >&5
michael@13 293 -echo "${ECHO_T}yes" >&6
michael@13 294 - else
michael@13 295 - echo "$as_me:$LINENO: result: no" >&5
michael@13 296 -echo "${ECHO_T}no" >&6
michael@13 297 - fi
michael@13 298 -done
michael@13 299
michael@13 300 echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
michael@13 301 echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6
michael@13 302 @@ -12051,7 +12007,7 @@
michael@13 303 #define HAVE_LIBBEECRYPT 1
michael@13 304 _ACEOF
michael@13 305
michael@13 306 - WITH_BEECRYPT_INCLUDE="-I/usr/include/beecrypt"
michael@13 307 + WITH_BEECRYPT_INCLUDE=""
michael@13 308 WITH_BEECRYPT_LIB="-lbeecrypt"
michael@13 309
michael@13 310 fi
michael@13 311 @@ -12647,287 +12603,13 @@
michael@13 312
michael@13 313
michael@13 314
michael@13 315 -
michael@13 316 -
michael@13 317 -
michael@13 318 -for ac_header in thread.h pthread.h synch.h semaphore.h
michael@13 319 -do
michael@13 320 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
michael@13 321 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
michael@13 322 - echo "$as_me:$LINENO: checking for $ac_header" >&5
michael@13 323 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
michael@13 324 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
michael@13 325 - echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 326 -fi
michael@13 327 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
michael@13 328 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
michael@13 329 -else
michael@13 330 - # Is the header compilable?
michael@13 331 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
michael@13 332 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
michael@13 333 -cat >conftest.$ac_ext <<_ACEOF
michael@13 334 -#line $LINENO "configure"
michael@13 335 -/* confdefs.h. */
michael@13 336 -_ACEOF
michael@13 337 -cat confdefs.h >>conftest.$ac_ext
michael@13 338 -cat >>conftest.$ac_ext <<_ACEOF
michael@13 339 -/* end confdefs.h. */
michael@13 340 -$ac_includes_default
michael@13 341 -#include <$ac_header>
michael@13 342 -_ACEOF
michael@13 343 -rm -f conftest.$ac_objext
michael@13 344 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
michael@13 345 - (eval $ac_compile) 2>&5
michael@13 346 - ac_status=$?
michael@13 347 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 348 - (exit $ac_status); } &&
michael@13 349 - { ac_try='test -s conftest.$ac_objext'
michael@13 350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
michael@13 351 - (eval $ac_try) 2>&5
michael@13 352 - ac_status=$?
michael@13 353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 354 - (exit $ac_status); }; }; then
michael@13 355 - ac_header_compiler=yes
michael@13 356 -else
michael@13 357 - echo "$as_me: failed program was:" >&5
michael@13 358 -sed 's/^/| /' conftest.$ac_ext >&5
michael@13 359 -
michael@13 360 -ac_header_compiler=no
michael@13 361 -fi
michael@13 362 -rm -f conftest.$ac_objext conftest.$ac_ext
michael@13 363 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
michael@13 364 -echo "${ECHO_T}$ac_header_compiler" >&6
michael@13 365 -
michael@13 366 -# Is the header present?
michael@13 367 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
michael@13 368 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
michael@13 369 -cat >conftest.$ac_ext <<_ACEOF
michael@13 370 -#line $LINENO "configure"
michael@13 371 -/* confdefs.h. */
michael@13 372 -_ACEOF
michael@13 373 -cat confdefs.h >>conftest.$ac_ext
michael@13 374 -cat >>conftest.$ac_ext <<_ACEOF
michael@13 375 -/* end confdefs.h. */
michael@13 376 -#include <$ac_header>
michael@13 377 -_ACEOF
michael@13 378 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
michael@13 379 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
michael@13 380 - ac_status=$?
michael@13 381 - grep -v '^ *+' conftest.er1 >conftest.err
michael@13 382 - rm -f conftest.er1
michael@13 383 - cat conftest.err >&5
michael@13 384 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 385 - (exit $ac_status); } >/dev/null; then
michael@13 386 - if test -s conftest.err; then
michael@13 387 - ac_cpp_err=$ac_c_preproc_warn_flag
michael@13 388 - else
michael@13 389 - ac_cpp_err=
michael@13 390 - fi
michael@13 391 -else
michael@13 392 - ac_cpp_err=yes
michael@13 393 -fi
michael@13 394 -if test -z "$ac_cpp_err"; then
michael@13 395 - ac_header_preproc=yes
michael@13 396 -else
michael@13 397 - echo "$as_me: failed program was:" >&5
michael@13 398 -sed 's/^/| /' conftest.$ac_ext >&5
michael@13 399 -
michael@13 400 - ac_header_preproc=no
michael@13 401 -fi
michael@13 402 -rm -f conftest.err conftest.$ac_ext
michael@13 403 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
michael@13 404 -echo "${ECHO_T}$ac_header_preproc" >&6
michael@13 405 -
michael@13 406 -# So? What about this header?
michael@13 407 -case $ac_header_compiler:$ac_header_preproc in
michael@13 408 - yes:no )
michael@13 409 - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
michael@13 410 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
michael@13 411 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
michael@13 412 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
michael@13 413 - (
michael@13 414 - cat <<\_ASBOX
michael@13 415 -## ------------------------------------ ##
michael@13 416 -## Report this to bug-autoconf@gnu.org. ##
michael@13 417 -## ------------------------------------ ##
michael@13 418 -_ASBOX
michael@13 419 - ) |
michael@13 420 - sed "s/^/$as_me: WARNING: /" >&2
michael@13 421 - ;;
michael@13 422 - no:yes )
michael@13 423 - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
michael@13 424 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
michael@13 425 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
michael@13 426 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
michael@13 427 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
michael@13 428 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
michael@13 429 - (
michael@13 430 - cat <<\_ASBOX
michael@13 431 -## ------------------------------------ ##
michael@13 432 -## Report this to bug-autoconf@gnu.org. ##
michael@13 433 -## ------------------------------------ ##
michael@13 434 -_ASBOX
michael@13 435 - ) |
michael@13 436 - sed "s/^/$as_me: WARNING: /" >&2
michael@13 437 - ;;
michael@13 438 -esac
michael@13 439 -echo "$as_me:$LINENO: checking for $ac_header" >&5
michael@13 440 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
michael@13 441 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
michael@13 442 - echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 443 -else
michael@13 444 - eval "$as_ac_Header=$ac_header_preproc"
michael@13 445 -fi
michael@13 446 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
michael@13 447 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
michael@13 448 -
michael@13 449 -fi
michael@13 450 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
michael@13 451 - cat >>confdefs.h <<_ACEOF
michael@13 452 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
michael@13 453 -_ACEOF
michael@13 454 -
michael@13 455 -fi
michael@13 456 -
michael@13 457 -done
michael@13 458 -
michael@13 459 -
michael@13 460 -
michael@13 461 -echo "$as_me:$LINENO: checking for pthread_mutex_trylock in -lpthread" >&5
michael@13 462 -echo $ECHO_N "checking for pthread_mutex_trylock in -lpthread... $ECHO_C" >&6
michael@13 463 -if test "${ac_cv_lib_pthread_pthread_mutex_trylock+set}" = set; then
michael@13 464 - echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 465 -else
michael@13 466 - ac_check_lib_save_LIBS=$LIBS
michael@13 467 -LIBS="-lpthread $LIBS"
michael@13 468 -cat >conftest.$ac_ext <<_ACEOF
michael@13 469 -#line $LINENO "configure"
michael@13 470 -/* confdefs.h. */
michael@13 471 -_ACEOF
michael@13 472 -cat confdefs.h >>conftest.$ac_ext
michael@13 473 -cat >>conftest.$ac_ext <<_ACEOF
michael@13 474 -/* end confdefs.h. */
michael@13 475 -
michael@13 476 -/* Override any gcc2 internal prototype to avoid an error. */
michael@13 477 -#ifdef __cplusplus
michael@13 478 -extern "C"
michael@13 479 -#endif
michael@13 480 -/* We use char because int might match the return type of a gcc2
michael@13 481 - builtin and then its argument prototype would still apply. */
michael@13 482 -char pthread_mutex_trylock ();
michael@13 483 -int
michael@13 484 -main ()
michael@13 485 -{
michael@13 486 -pthread_mutex_trylock ();
michael@13 487 - ;
michael@13 488 - return 0;
michael@13 489 -}
michael@13 490 -_ACEOF
michael@13 491 -rm -f conftest.$ac_objext conftest$ac_exeext
michael@13 492 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
michael@13 493 - (eval $ac_link) 2>&5
michael@13 494 - ac_status=$?
michael@13 495 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 496 - (exit $ac_status); } &&
michael@13 497 - { ac_try='test -s conftest$ac_exeext'
michael@13 498 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
michael@13 499 - (eval $ac_try) 2>&5
michael@13 500 - ac_status=$?
michael@13 501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 502 - (exit $ac_status); }; }; then
michael@13 503 - ac_cv_lib_pthread_pthread_mutex_trylock=yes
michael@13 504 -else
michael@13 505 - echo "$as_me: failed program was:" >&5
michael@13 506 -sed 's/^/| /' conftest.$ac_ext >&5
michael@13 507 -
michael@13 508 -ac_cv_lib_pthread_pthread_mutex_trylock=no
michael@13 509 -fi
michael@13 510 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
michael@13 511 -LIBS=$ac_check_lib_save_LIBS
michael@13 512 -fi
michael@13 513 -echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_trylock" >&5
michael@13 514 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_trylock" >&6
michael@13 515 -if test $ac_cv_lib_pthread_pthread_mutex_trylock = yes; then
michael@13 516 - cat >>confdefs.h <<_ACEOF
michael@13 517 -#define HAVE_LIBPTHREAD 1
michael@13 518 -_ACEOF
michael@13 519 -
michael@13 520 - LIBS="-lpthread $LIBS"
michael@13 521 -
michael@13 522 -else
michael@13 523 -
michael@13 524 -
michael@13 525 -echo "$as_me:$LINENO: checking for __pthread_mutex_trylock in -lpthread" >&5
michael@13 526 -echo $ECHO_N "checking for __pthread_mutex_trylock in -lpthread... $ECHO_C" >&6
michael@13 527 -if test "${ac_cv_lib_pthread___pthread_mutex_trylock+set}" = set; then
michael@13 528 - echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 529 -else
michael@13 530 - ac_check_lib_save_LIBS=$LIBS
michael@13 531 -LIBS="-lpthread $LIBS"
michael@13 532 -cat >conftest.$ac_ext <<_ACEOF
michael@13 533 -#line $LINENO "configure"
michael@13 534 -/* confdefs.h. */
michael@13 535 -_ACEOF
michael@13 536 -cat confdefs.h >>conftest.$ac_ext
michael@13 537 -cat >>conftest.$ac_ext <<_ACEOF
michael@13 538 -/* end confdefs.h. */
michael@13 539 -
michael@13 540 -/* Override any gcc2 internal prototype to avoid an error. */
michael@13 541 -#ifdef __cplusplus
michael@13 542 -extern "C"
michael@13 543 -#endif
michael@13 544 -/* We use char because int might match the return type of a gcc2
michael@13 545 - builtin and then its argument prototype would still apply. */
michael@13 546 -char __pthread_mutex_trylock ();
michael@13 547 -int
michael@13 548 -main ()
michael@13 549 -{
michael@13 550 -__pthread_mutex_trylock ();
michael@13 551 - ;
michael@13 552 - return 0;
michael@13 553 -}
michael@13 554 -_ACEOF
michael@13 555 -rm -f conftest.$ac_objext conftest$ac_exeext
michael@13 556 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
michael@13 557 - (eval $ac_link) 2>&5
michael@13 558 - ac_status=$?
michael@13 559 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 560 - (exit $ac_status); } &&
michael@13 561 - { ac_try='test -s conftest$ac_exeext'
michael@13 562 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
michael@13 563 - (eval $ac_try) 2>&5
michael@13 564 - ac_status=$?
michael@13 565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 566 - (exit $ac_status); }; }; then
michael@13 567 - ac_cv_lib_pthread___pthread_mutex_trylock=yes
michael@13 568 -else
michael@13 569 - echo "$as_me: failed program was:" >&5
michael@13 570 -sed 's/^/| /' conftest.$ac_ext >&5
michael@13 571 -
michael@13 572 -ac_cv_lib_pthread___pthread_mutex_trylock=no
michael@13 573 -fi
michael@13 574 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
michael@13 575 -LIBS=$ac_check_lib_save_LIBS
michael@13 576 -fi
michael@13 577 -echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_trylock" >&5
michael@13 578 -echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_trylock" >&6
michael@13 579 -if test $ac_cv_lib_pthread___pthread_mutex_trylock = yes; then
michael@13 580 - cat >>confdefs.h <<_ACEOF
michael@13 581 -#define HAVE_LIBPTHREAD 1
michael@13 582 -_ACEOF
michael@13 583 -
michael@13 584 - LIBS="-lpthread $LIBS"
michael@13 585 -
michael@13 586 -else
michael@13 587 -
michael@13 588 -
michael@13 589 -echo "$as_me:$LINENO: checking for mutex_lock in -lthread" >&5
michael@13 590 -echo $ECHO_N "checking for mutex_lock in -lthread... $ECHO_C" >&6
michael@13 591 -if test "${ac_cv_lib_thread_mutex_lock+set}" = set; then
michael@13 592 +echo "$as_me:$LINENO: checking for svc_run in -lnsl" >&5
michael@13 593 +echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
michael@13 594 +if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
michael@13 595 echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 596 else
michael@13 597 ac_check_lib_save_LIBS=$LIBS
michael@13 598 -LIBS="-lthread $LIBS"
michael@13 599 +LIBS="-lnsl $LIBS"
michael@13 600 cat >conftest.$ac_ext <<_ACEOF
michael@13 601 #line $LINENO "configure"
michael@13 602 /* confdefs.h. */
michael@13 603 @@ -12942,11 +12624,11 @@
michael@13 604 #endif
michael@13 605 /* We use char because int might match the return type of a gcc2
michael@13 606 builtin and then its argument prototype would still apply. */
michael@13 607 -char mutex_lock ();
michael@13 608 +char svc_run ();
michael@13 609 int
michael@13 610 main ()
michael@13 611 {
michael@13 612 -mutex_lock ();
michael@13 613 +svc_run ();
michael@13 614 ;
michael@13 615 return 0;
michael@13 616 }
michael@13 617 @@ -12963,33 +12645,28 @@
michael@13 618 ac_status=$?
michael@13 619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 620 (exit $ac_status); }; }; then
michael@13 621 - ac_cv_lib_thread_mutex_lock=yes
michael@13 622 + ac_cv_lib_nsl_svc_run=yes
michael@13 623 else
michael@13 624 echo "$as_me: failed program was:" >&5
michael@13 625 sed 's/^/| /' conftest.$ac_ext >&5
michael@13 626
michael@13 627 -ac_cv_lib_thread_mutex_lock=no
michael@13 628 +ac_cv_lib_nsl_svc_run=no
michael@13 629 fi
michael@13 630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
michael@13 631 LIBS=$ac_check_lib_save_LIBS
michael@13 632 fi
michael@13 633 -echo "$as_me:$LINENO: result: $ac_cv_lib_thread_mutex_lock" >&5
michael@13 634 -echo "${ECHO_T}$ac_cv_lib_thread_mutex_lock" >&6
michael@13 635 -if test $ac_cv_lib_thread_mutex_lock = yes; then
michael@13 636 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_svc_run" >&5
michael@13 637 +echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
michael@13 638 +if test $ac_cv_lib_nsl_svc_run = yes; then
michael@13 639 cat >>confdefs.h <<_ACEOF
michael@13 640 -#define HAVE_LIBTHREAD 1
michael@13 641 +#define HAVE_LIBNSL 1
michael@13 642 _ACEOF
michael@13 643
michael@13 644 - LIBS="-lthread $LIBS"
michael@13 645 -
michael@13 646 -fi
michael@13 647 -
michael@13 648 + LIBS="-lnsl $LIBS"
michael@13 649
michael@13 650 fi
michael@13 651
michael@13 652
michael@13 653 -fi
michael@13 654 -
michael@13 655
michael@13 656
michael@13 657 for ac_header in aio.h
michael@13 658 @@ -22911,6 +22588,86 @@
michael@13 659
michael@13 660 else
michael@13 661
michael@13 662 + echo "$as_me:$LINENO: checking for getmntinfo" >&5
michael@13 663 +echo $ECHO_N "checking for getmntinfo... $ECHO_C" >&6
michael@13 664 +if test "${ac_cv_func_getmntinfo+set}" = set; then
michael@13 665 + echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 666 +else
michael@13 667 + cat >conftest.$ac_ext <<_ACEOF
michael@13 668 +#line $LINENO "configure"
michael@13 669 +/* confdefs.h. */
michael@13 670 +_ACEOF
michael@13 671 +cat confdefs.h >>conftest.$ac_ext
michael@13 672 +cat >>conftest.$ac_ext <<_ACEOF
michael@13 673 +/* end confdefs.h. */
michael@13 674 +/* System header to define __stub macros and hopefully few prototypes,
michael@13 675 + which can conflict with char getmntinfo (); below.
michael@13 676 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@13 677 + <limits.h> exists even on freestanding compilers. */
michael@13 678 +#ifdef __STDC__
michael@13 679 +# include <limits.h>
michael@13 680 +#else
michael@13 681 +# include <assert.h>
michael@13 682 +#endif
michael@13 683 +/* Override any gcc2 internal prototype to avoid an error. */
michael@13 684 +#ifdef __cplusplus
michael@13 685 +extern "C"
michael@13 686 +{
michael@13 687 +#endif
michael@13 688 +/* We use char because int might match the return type of a gcc2
michael@13 689 + builtin and then its argument prototype would still apply. */
michael@13 690 +char getmntinfo ();
michael@13 691 +/* The GNU C library defines this for functions which it implements
michael@13 692 + to always fail with ENOSYS. Some functions are actually named
michael@13 693 + something starting with __ and the normal name is an alias. */
michael@13 694 +#if defined (__stub_getmntinfo) || defined (__stub___getmntinfo)
michael@13 695 +choke me
michael@13 696 +#else
michael@13 697 +char (*f) () = getmntinfo;
michael@13 698 +#endif
michael@13 699 +#ifdef __cplusplus
michael@13 700 +}
michael@13 701 +#endif
michael@13 702 +
michael@13 703 +int
michael@13 704 +main ()
michael@13 705 +{
michael@13 706 +return f != getmntinfo;
michael@13 707 + ;
michael@13 708 + return 0;
michael@13 709 +}
michael@13 710 +_ACEOF
michael@13 711 +rm -f conftest.$ac_objext conftest$ac_exeext
michael@13 712 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
michael@13 713 + (eval $ac_link) 2>&5
michael@13 714 + ac_status=$?
michael@13 715 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 716 + (exit $ac_status); } &&
michael@13 717 + { ac_try='test -s conftest$ac_exeext'
michael@13 718 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
michael@13 719 + (eval $ac_try) 2>&5
michael@13 720 + ac_status=$?
michael@13 721 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 722 + (exit $ac_status); }; }; then
michael@13 723 + ac_cv_func_getmntinfo=yes
michael@13 724 +else
michael@13 725 + echo "$as_me: failed program was:" >&5
michael@13 726 +sed 's/^/| /' conftest.$ac_ext >&5
michael@13 727 +
michael@13 728 +ac_cv_func_getmntinfo=no
michael@13 729 +fi
michael@13 730 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
michael@13 731 +fi
michael@13 732 +echo "$as_me:$LINENO: result: $ac_cv_func_getmntinfo" >&5
michael@13 733 +echo "${ECHO_T}$ac_cv_func_getmntinfo" >&6
michael@13 734 +if test $ac_cv_func_getmntinfo = yes; then
michael@13 735 +
michael@13 736 +cat >>confdefs.h <<\_ACEOF
michael@13 737 +#define HAVE_GETMNTINFO 1
michael@13 738 +_ACEOF
michael@13 739 +
michael@13 740 +else
michael@13 741 +
michael@13 742 echo "$as_me:$LINENO: checking for mntctl" >&5
michael@13 743 echo $ECHO_N "checking for mntctl... $ECHO_C" >&6
michael@13 744 if test "${ac_cv_func_mntctl+set}" = set; then
michael@13 745 @@ -23148,6 +22905,8 @@
michael@13 746
michael@13 747 fi
michael@13 748
michael@13 749 +fi
michael@13 750 +
michael@13 751
michael@13 752 echo "$as_me:$LINENO: checking for lchown" >&5
michael@13 753 echo $ECHO_N "checking for lchown... $ECHO_C" >&6
michael@13 754 @@ -23454,9 +23213,6 @@
michael@13 755 fi
michael@13 756
michael@13 757 MARK64=
michael@13 758 -case "${target_cpu}" in
michael@13 759 -x86_64*|ppc64*|powerpc64*|sparc64*|s390x*) MARK64=64 ;;
michael@13 760 -esac
michael@13 761
michael@13 762
michael@13 763 autorelocate_path='%{nil}'
michael@13 764 @@ -23515,7 +23271,7 @@
michael@13 765
michael@13 766 LIBDIR="`echo $libdir | sed 's-/lib$-/%{_lib}-'`"
michael@13 767
michael@13 768 -RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`"
michael@13 769 +RPMCONFIGDIR="@l_prefix@/lib/openpkg"
michael@13 770
michael@13 771 cat >>confdefs.h <<_ACEOF
michael@13 772 #define RPMCONFIGDIR "$RPMCONFIGDIR"
michael@13 773 @@ -23523,7 +23279,7 @@
michael@13 774
michael@13 775
michael@13 776
michael@13 777 -SYSCONFIGDIR="`echo /etc/rpm`"
michael@13 778 +SYSCONFIGDIR="@l_prefix@/etc/openpkg"
michael@13 779
michael@13 780 cat >>confdefs.h <<_ACEOF
michael@13 781 #define SYSCONFIGDIR "$SYSCONFIGDIR"
michael@13 782 @@ -23539,7 +23295,7 @@
michael@13 783
michael@13 784
michael@13 785
michael@13 786 -LIBRPMRC_FILENAME="${RPMCONFIGDIR}/rpmrc"
michael@13 787 +LIBRPMRC_FILENAME="${SYSCONFIGDIR}/rpmrc"
michael@13 788
michael@13 789 cat >>confdefs.h <<_ACEOF
michael@13 790 #define LIBRPMRC_FILENAME "$LIBRPMRC_FILENAME"
michael@13 791 @@ -23547,7 +23303,7 @@
michael@13 792
michael@13 793
michael@13 794
michael@13 795 -VENDORRPMRC_FILENAME="${RPMCONFIGDIR}/${RPMCANONVENDOR}/rpmrc"
michael@13 796 +VENDORRPMRC_FILENAME="${SYSCONFIGDIR}/${RPMCANONVENDOR}/rpmrc"
michael@13 797
michael@13 798 cat >>confdefs.h <<_ACEOF
michael@13 799 #define VENDORRPMRC_FILENAME "$VENDORRPMRC_FILENAME"
michael@13 800 @@ -23555,7 +23311,7 @@
michael@13 801
michael@13 802
michael@13 803
michael@13 804 -LIBRPMALIAS_FILENAME="${RPMCONFIGDIR}/rpmpopt-${VERSION}"
michael@13 805 +LIBRPMALIAS_FILENAME="${RPMCONFIGDIR}/rpmpopt"
michael@13 806
michael@13 807 cat >>confdefs.h <<_ACEOF
michael@13 808 #define LIBRPMALIAS_FILENAME "$LIBRPMALIAS_FILENAME"
michael@13 809 @@ -23588,9 +23344,202 @@
michael@13 810
michael@13 811
michael@13 812
michael@13 813 +echo "$as_me:$LINENO: checking for uint8_t" >&5
michael@13 814 +echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
michael@13 815 +if test "${ac_cv_type_uint8_t+set}" = set; then
michael@13 816 + echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 817 +else
michael@13 818 + cat >conftest.$ac_ext <<_ACEOF
michael@13 819 +#line $LINENO "configure"
michael@13 820 +/* confdefs.h. */
michael@13 821 +_ACEOF
michael@13 822 +cat confdefs.h >>conftest.$ac_ext
michael@13 823 +cat >>conftest.$ac_ext <<_ACEOF
michael@13 824 +/* end confdefs.h. */
michael@13 825 +#if HAVE_STDINT_H
michael@13 826 +#include <stdint.h>
michael@13 827 +#endif
michael@13 828 +#include <sys/types.h>
michael@13 829 +#if STDC_HEADERS
michael@13 830 +#include <stdlib.h>
michael@13 831 +#include <stddef.h>
michael@13 832 +#endif
michael@13 833 +_ACEOF
michael@13 834 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@13 835 + $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
michael@13 836 + ac_cv_type_uint8_t=yes
michael@13 837 +else
michael@13 838 + ac_cv_type_uint8_t=no
michael@13 839 +fi
michael@13 840 +rm -f conftest*
michael@13 841 +
michael@13 842 +fi
michael@13 843 +echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
michael@13 844 +echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
michael@13 845 +if test $ac_cv_type_uint8_t = no; then
michael@13 846 +
michael@13 847 +cat >>confdefs.h <<\_ACEOF
michael@13 848 +#define uint8_t unsigned char
michael@13 849 +_ACEOF
michael@13 850 +
michael@13 851 +fi
michael@13 852 +echo "$as_me:$LINENO: checking for uint16_t" >&5
michael@13 853 +echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
michael@13 854 +if test "${ac_cv_type_uint16_t+set}" = set; then
michael@13 855 + echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 856 +else
michael@13 857 + cat >conftest.$ac_ext <<_ACEOF
michael@13 858 +#line $LINENO "configure"
michael@13 859 +/* confdefs.h. */
michael@13 860 +_ACEOF
michael@13 861 +cat confdefs.h >>conftest.$ac_ext
michael@13 862 +cat >>conftest.$ac_ext <<_ACEOF
michael@13 863 +/* end confdefs.h. */
michael@13 864 +#if HAVE_STDINT_H
michael@13 865 +#include <stdint.h>
michael@13 866 +#endif
michael@13 867 +#include <sys/types.h>
michael@13 868 +#if STDC_HEADERS
michael@13 869 +#include <stdlib.h>
michael@13 870 +#include <stddef.h>
michael@13 871 +#endif
michael@13 872 +_ACEOF
michael@13 873 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@13 874 + $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
michael@13 875 + ac_cv_type_uint16_t=yes
michael@13 876 +else
michael@13 877 + ac_cv_type_uint16_t=no
michael@13 878 +fi
michael@13 879 +rm -f conftest*
michael@13 880 +
michael@13 881 +fi
michael@13 882 +echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
michael@13 883 +echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
michael@13 884 +if test $ac_cv_type_uint16_t = no; then
michael@13 885 +
michael@13 886 +cat >>confdefs.h <<\_ACEOF
michael@13 887 +#define uint16_t unsigned short
michael@13 888 +_ACEOF
michael@13 889 +
michael@13 890 +fi
michael@13 891 +echo "$as_me:$LINENO: checking for uint32_t" >&5
michael@13 892 +echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
michael@13 893 +if test "${ac_cv_type_uint32_t+set}" = set; then
michael@13 894 + echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 895 +else
michael@13 896 + cat >conftest.$ac_ext <<_ACEOF
michael@13 897 +#line $LINENO "configure"
michael@13 898 +/* confdefs.h. */
michael@13 899 +_ACEOF
michael@13 900 +cat confdefs.h >>conftest.$ac_ext
michael@13 901 +cat >>conftest.$ac_ext <<_ACEOF
michael@13 902 +/* end confdefs.h. */
michael@13 903 +#if HAVE_STDINT_H
michael@13 904 +#include <stdint.h>
michael@13 905 +#endif
michael@13 906 +#include <sys/types.h>
michael@13 907 +#if STDC_HEADERS
michael@13 908 +#include <stdlib.h>
michael@13 909 +#include <stddef.h>
michael@13 910 +#endif
michael@13 911 +_ACEOF
michael@13 912 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
michael@13 913 + $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
michael@13 914 + ac_cv_type_uint32_t=yes
michael@13 915 +else
michael@13 916 + ac_cv_type_uint32_t=no
michael@13 917 +fi
michael@13 918 +rm -f conftest*
michael@13 919 +
michael@13 920 +fi
michael@13 921 +echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
michael@13 922 +echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
michael@13 923 +if test $ac_cv_type_uint32_t = no; then
michael@13 924 +
michael@13 925 +cat >>confdefs.h <<\_ACEOF
michael@13 926 +#define uint32_t unsigned int
michael@13 927 +_ACEOF
michael@13 928 +
michael@13 929 +fi
michael@13 930 +
michael@13 931 +echo "$as_me:$LINENO: checking for madvise" >&5
michael@13 932 +echo $ECHO_N "checking for madvise... $ECHO_C" >&6
michael@13 933 +if test "${ac_cv_func_madvise+set}" = set; then
michael@13 934 + echo $ECHO_N "(cached) $ECHO_C" >&6
michael@13 935 +else
michael@13 936 + cat >conftest.$ac_ext <<_ACEOF
michael@13 937 +#line $LINENO "configure"
michael@13 938 +/* confdefs.h. */
michael@13 939 +_ACEOF
michael@13 940 +cat confdefs.h >>conftest.$ac_ext
michael@13 941 +cat >>conftest.$ac_ext <<_ACEOF
michael@13 942 +/* end confdefs.h. */
michael@13 943 +/* System header to define __stub macros and hopefully few prototypes,
michael@13 944 + which can conflict with char madvise (); below.
michael@13 945 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
michael@13 946 + <limits.h> exists even on freestanding compilers. */
michael@13 947 +#ifdef __STDC__
michael@13 948 +# include <limits.h>
michael@13 949 +#else
michael@13 950 +# include <assert.h>
michael@13 951 +#endif
michael@13 952 +/* Override any gcc2 internal prototype to avoid an error. */
michael@13 953 +#ifdef __cplusplus
michael@13 954 +extern "C"
michael@13 955 +{
michael@13 956 +#endif
michael@13 957 +/* We use char because int might match the return type of a gcc2
michael@13 958 + builtin and then its argument prototype would still apply. */
michael@13 959 +char madvise ();
michael@13 960 +/* The GNU C library defines this for functions which it implements
michael@13 961 + to always fail with ENOSYS. Some functions are actually named
michael@13 962 + something starting with __ and the normal name is an alias. */
michael@13 963 +#if defined (__stub_madvise) || defined (__stub___madvise)
michael@13 964 +choke me
michael@13 965 +#else
michael@13 966 +char (*f) () = madvise;
michael@13 967 +#endif
michael@13 968 +#ifdef __cplusplus
michael@13 969 +}
michael@13 970 +#endif
michael@13 971 +
michael@13 972 +int
michael@13 973 +main ()
michael@13 974 +{
michael@13 975 +return f != madvise;
michael@13 976 + ;
michael@13 977 + return 0;
michael@13 978 +}
michael@13 979 +_ACEOF
michael@13 980 +rm -f conftest.$ac_objext conftest$ac_exeext
michael@13 981 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
michael@13 982 + (eval $ac_link) 2>&5
michael@13 983 + ac_status=$?
michael@13 984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 985 + (exit $ac_status); } &&
michael@13 986 + { ac_try='test -s conftest$ac_exeext'
michael@13 987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
michael@13 988 + (eval $ac_try) 2>&5
michael@13 989 + ac_status=$?
michael@13 990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
michael@13 991 + (exit $ac_status); }; }; then
michael@13 992 + ac_cv_func_madvise=yes
michael@13 993 +else
michael@13 994 + echo "$as_me: failed program was:" >&5
michael@13 995 +sed 's/^/| /' conftest.$ac_ext >&5
michael@13 996 +
michael@13 997 +ac_cv_func_madvise=no
michael@13 998 +fi
michael@13 999 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
michael@13 1000 +fi
michael@13 1001 +echo "$as_me:$LINENO: result: $ac_cv_func_madvise" >&5
michael@13 1002 +echo "${ECHO_T}$ac_cv_func_madvise" >&6
michael@13 1003 +
michael@13 1004 +
michael@13 1005 +
michael@13 1006
michael@13 1007
michael@13 1008 -subdirs="$subdirs popt beecrypt zlib elfutils file db3"
michael@13 1009 +subdirs="$subdirs popt zlib elfutils file db3"
michael@13 1010
michael@13 1011
michael@13 1012 ac_config_files="$ac_config_files Doxyfile Makefile rpmrc macros platform rpmpopt rpm.spec rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile scripts/Makefile scripts/brp-redhat scripts/macros.perl scripts/macros.php scripts/macros.python tools/Makefile tests/Makefile tests/rpmrc tests/macros tests/hello-test/Makefile misc/Makefile intl/Makefile po/Makefile.in doc/Makefile doc/manual/Makefile doc/fr/Makefile doc/ja/Makefile doc/ko/Makefile doc/pl/Makefile doc/ru/Makefile doc/sk/Makefile python/Makefile python/rpmdb/Makefile python/test/Makefile"
michael@13 1013 @@ -25157,7 +25106,6 @@
michael@13 1014 esac
michael@13 1015 done ;;
michael@13 1016 default ) echo timestamp > popt/stamp-h.in
michael@13 1017 - echo timestamp > beecrypt/stamp-h.in
michael@13 1018 echo timestamp > stamp-h.in
michael@13 1019
michael@13 1020 ;;
michael@13 1021
michael@13 1022 +---------------------------------------------------------------------------
michael@13 1023 | Corresponding patches in "configure" script after regeneration from
michael@13 1024 | patched "configure.ac" with "autoconf".
michael@13 1025 +---------------------------------------------------------------------------
michael@13 1026 Index: popt/configure
michael@13 1027 --- popt/configure 16 Jul 2003 17:04:51 -0000 1.1.1.16
michael@13 1028 +++ popt/configure 12 May 2004 14:34:35 -0000 1.18
michael@13 1029 @@ -9359,9 +9359,6 @@
michael@13 1030
michael@13 1031
michael@13 1032 MARK64=
michael@13 1033 -case "${target_cpu}" in
michael@13 1034 -x86_64*|powerpc64*|ppc64*|sparc64*|s390x*) MARK64=64 ;;
michael@13 1035 -esac
michael@13 1036
michael@13 1037
michael@13 1038

mercurial