1 Add config.rpath from upstream CVS to avoid (re)autoconfiguring errors.
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 diff -Nura classpath-0.98.orig/config.rpath classpath-0.98/config.rpath
6 --- classpath-0.98.orig/config.rpath 1969-12-31 21:00:00.000000000 -0300
7 +++ classpath-0.98/config.rpath 2013-07-10 09:36:51.894281025 -0300
10 +# Output a system dependent set of variables, describing how to set the
11 +# run time search path of shared libraries in an executable.
13 +# Copyright 1996-2010 Free Software Foundation, Inc.
14 +# Taken from GNU libtool, 2001
15 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17 +# This file is free software; the Free Software Foundation gives
18 +# unlimited permission to copy and/or distribute it, with or without
19 +# modifications, as long as this notice is preserved.
21 +# The first argument passed to this file is the canonical host specification,
22 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
24 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
25 +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
26 +# should be set by the caller.
28 +# The set of defined variables is at the end of this script.
31 +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
32 +# than 256 bytes, otherwise the compiler driver will dump core. The only
33 +# known workaround is to choose shorter directory names for the build
34 +# directory and/or the installation directory.
36 +# All known linkers require a `.a' archive for static linking (except MSVC,
37 +# which needs '.lib').
42 +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
43 +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
44 +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
46 +# Code taken from libtool.m4's _LT_CC_BASENAME.
48 +for cc_temp in $CC""; do
50 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
51 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
56 +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
58 +# Code taken from libtool.m4's _LT_COMPILER_PIC.
61 +if test "$GCC" = yes; then
69 + case $cc_basename in
75 + mingw* | cygwin* | pw32* | os2* | cegcc*)
77 + hpux9* | hpux10* | hpux11*)
80 + irix5* | irix6* | nonstopux*)
85 + linux* | k*bsd*-gnu)
86 + case $cc_basename in
96 + pgcc | pgf77 | pgf90)
106 + case `$CC -V 2>&1 | sed 5q` in
114 + osf3* | osf4* | osf5*)
125 + sysv4 | sysv4.2uw2* | sysv4.3*)
130 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
141 +# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
143 +hardcode_libdir_flag_spec=
144 +hardcode_libdir_separator=
149 + cygwin* | mingw* | pw32* | cegcc*)
150 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
151 + # When not using gcc, we currently assume that we are using
152 + # Microsoft Visual C++.
153 + if test "$GCC" != yes; then
158 + # we just hope/assume this is gcc and not c89 (= MSVC++)
167 +if test "$with_gnu_ld" = yes; then
168 + # Set some defaults for GNU ld with shared library support. These
169 + # are reset later if shared libraries are not supported. Putting them
170 + # here allows them to be overridden if necessary.
171 + # Unlike libtool, we use -rpath here, not --rpath, since the documented
172 + # option of GNU ld is called -rpath, not --rpath.
173 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
176 + # On AIX/PPC, the GNU linker is very broken
177 + if test "$host_cpu" != ia64; then
182 + hardcode_libdir_flag_spec='-L$libdir'
183 + hardcode_minus_L=yes
184 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
185 + # that the semantics of dynamic libraries on AmigaOS, at least up
186 + # to version 4, is to share data among multiple programs linked
187 + # with the same dynamic library. Since this doesn't match the
188 + # behavior of shared libraries on other platforms, we cannot use
193 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
199 + cygwin* | mingw* | pw32* | cegcc*)
200 + # hardcode_libdir_flag_spec is actually meaningless, as there is
201 + # no search path for DLLs.
202 + hardcode_libdir_flag_spec='-L$libdir'
203 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
211 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
213 + gnu* | linux* | k*bsd*-gnu)
214 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
223 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
225 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
231 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
232 + case `$LD -v 2>&1` in
233 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
237 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
238 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
246 + hardcode_direct=yes
249 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
256 + if test "$ld_shlibs" = no; then
257 + hardcode_libdir_flag_spec=
262 + # Note: this linker hardcodes the directories in LIBPATH if there
263 + # are no directories specified by -L.
264 + hardcode_minus_L=yes
265 + if test "$GCC" = yes; then
266 + # Neither direct hardcoding nor static linking is supported with a
268 + hardcode_direct=unsupported
272 + if test "$host_cpu" = ia64; then
273 + # On IA64, the linker does run time linking by default, so we don't
274 + # have to do anything special.
275 + aix_use_runtimelinking=no
277 + aix_use_runtimelinking=no
278 + # Test if we are trying to use run time linking or normal
279 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
280 + # need to do runtime linking.
281 + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
282 + for ld_flag in $LDFLAGS; do
283 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
284 + aix_use_runtimelinking=yes
291 + hardcode_direct=yes
292 + hardcode_libdir_separator=':'
293 + if test "$GCC" = yes; then
294 + case $host_os in aix4.[012]|aix4.[012].*)
295 + collect2name=`${CC} -print-prog-name=collect2`
296 + if test -f "$collect2name" && \
297 + strings "$collect2name" | grep resolve_lib_name >/dev/null
299 + # We have reworked collect2
302 + # We have old collect2
303 + hardcode_direct=unsupported
304 + hardcode_minus_L=yes
305 + hardcode_libdir_flag_spec='-L$libdir'
306 + hardcode_libdir_separator=
311 + # Begin _LT_AC_SYS_LIBPATH_AIX.
312 + echo 'int main () { return 0; }' > conftest.c
313 + ${CC} ${LDFLAGS} conftest.c -o conftest
314 + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
316 + if test -z "$aix_libpath"; then
317 + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
320 + if test -z "$aix_libpath"; then
321 + aix_libpath="/usr/lib:/lib"
323 + rm -f conftest.c conftest
324 + # End _LT_AC_SYS_LIBPATH_AIX.
325 + if test "$aix_use_runtimelinking" = yes; then
326 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
328 + if test "$host_cpu" = ia64; then
329 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
331 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
336 + hardcode_libdir_flag_spec='-L$libdir'
337 + hardcode_minus_L=yes
338 + # see comment about different semantics on the GNU ld section
343 + cygwin* | mingw* | pw32* | cegcc*)
344 + # When not using gcc, we currently assume that we are using
345 + # Microsoft Visual C++.
346 + # hardcode_libdir_flag_spec is actually meaningless, as there is
347 + # no search path for DLLs.
348 + hardcode_libdir_flag_spec=' '
351 + darwin* | rhapsody*)
353 + if test "$GCC" = yes ; then
356 + case $cc_basename in
366 + hardcode_libdir_flag_spec='-L$libdir'
372 + hardcode_libdir_flag_spec='-R$libdir'
373 + hardcode_direct=yes
376 + hardcode_direct=yes
377 + hardcode_minus_L=yes
379 + freebsd* | dragonfly*)
380 + hardcode_libdir_flag_spec='-R$libdir'
381 + hardcode_direct=yes
384 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
385 + hardcode_libdir_separator=:
386 + hardcode_direct=yes
387 + # hardcode_minus_L: Not really in the search PATH,
388 + # but as the default location of the library.
389 + hardcode_minus_L=yes
392 + if test "$with_gnu_ld" = no; then
393 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
394 + hardcode_libdir_separator=:
395 + hardcode_direct=yes
396 + # hardcode_minus_L: Not really in the search PATH,
397 + # but as the default location of the library.
398 + hardcode_minus_L=yes
402 + if test "$with_gnu_ld" = no; then
403 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
404 + hardcode_libdir_separator=:
410 + hardcode_direct=yes
411 + # hardcode_minus_L: Not really in the search PATH,
412 + # but as the default location of the library.
413 + hardcode_minus_L=yes
418 + irix5* | irix6* | nonstopux*)
419 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
420 + hardcode_libdir_separator=:
423 + hardcode_libdir_flag_spec='-R$libdir'
424 + hardcode_direct=yes
427 + hardcode_direct=yes
428 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
429 + hardcode_libdir_separator=:
432 + if test -f /usr/libexec/ld.so; then
433 + hardcode_direct=yes
434 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
435 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
438 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
439 + hardcode_libdir_flag_spec='-R$libdir'
442 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
451 + hardcode_libdir_flag_spec='-L$libdir'
452 + hardcode_minus_L=yes
455 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
456 + hardcode_libdir_separator=:
459 + if test "$GCC" = yes; then
460 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
462 + # Both cc and cxx compiler support -rpath directly
463 + hardcode_libdir_flag_spec='-rpath $libdir'
465 + hardcode_libdir_separator=:
468 + hardcode_libdir_flag_spec='-R$libdir'
471 + hardcode_libdir_flag_spec='-L$libdir'
472 + hardcode_direct=yes
473 + hardcode_minus_L=yes
476 + case $host_vendor in
478 + hardcode_direct=yes # is this really true???
484 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
491 + if test -d /usr/nec; then
495 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
497 + sysv5* | sco3.2v5* | sco5v6*)
498 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
499 + hardcode_libdir_separator=':'
502 + hardcode_libdir_flag_spec='-L$libdir'
510 +# Check dynamic linker characteristics
511 +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
512 +# Unlike libtool.m4, here we don't care about _all_ names of the library, but
513 +# only about the one the linker finds when passed -lNAME. This is the last
514 +# element of library_names_spec in libtool.m4, or possibly two of them if the
515 +# linker has special search rules.
516 +library_names_spec= # the last element of library_names_spec in libtool.m4
517 +libname_spec='lib$name'
520 + library_names_spec='$libname.a'
523 + library_names_spec='$libname$shrext'
526 + library_names_spec='$libname.a'
529 + library_names_spec='$libname$shrext'
532 + library_names_spec='$libname$shrext'
534 + cygwin* | mingw* | pw32* | cegcc*)
536 + library_names_spec='$libname.dll.a $libname.lib'
538 + darwin* | rhapsody*)
540 + library_names_spec='$libname$shrext'
543 + library_names_spec='$libname$shrext'
547 + freebsd* | dragonfly*)
550 + library_names_spec='$libname$shrext$versuffix' ;;
552 + library_names_spec='$libname$shrext' ;;
556 + library_names_spec='$libname$shrext'
558 + hpux9* | hpux10* | hpux11*)
570 + library_names_spec='$libname$shrext'
573 + library_names_spec='$libname$shrext'
575 + irix5* | irix6* | nonstopux*)
576 + library_names_spec='$libname$shrext'
578 + irix5* | nonstopux*)
579 + libsuff= shlibsuff=
583 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
584 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
585 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
586 + *) libsuff= shlibsuff= ;;
591 + linux*oldld* | linux*aout* | linux*coff*)
593 + linux* | k*bsd*-gnu)
594 + library_names_spec='$libname$shrext'
597 + library_names_spec='$libname$shrext'
600 + library_names_spec='$libname$shrext'
603 + library_names_spec='$libname$shrext'
606 + library_names_spec='$libname$shrext'
609 + library_names_spec='$libname$shrext$versuffix'
612 + libname_spec='$name'
614 + library_names_spec='$libname.a'
616 + osf3* | osf4* | osf5*)
617 + library_names_spec='$libname$shrext'
622 + library_names_spec='$libname$shrext'
625 + library_names_spec='$libname$shrext$versuffix'
628 + library_names_spec='$libname$shrext'
631 + library_names_spec='$libname$shrext'
633 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
634 + library_names_spec='$libname$shrext'
637 + library_names_spec='$libname$shrext'
641 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
642 +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
643 +shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
644 +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
645 +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
646 +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
648 +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
650 +# How to pass a linker flag through the compiler.
653 +# Static library suffix (normally "a").
656 +# Shared library suffix (normally "so").
657 +shlibext="$shlibext"
659 +# Format of library name prefix.
660 +libname_spec="$escaped_libname_spec"
662 +# Library names that the linker finds when passed -lNAME.
663 +library_names_spec="$escaped_library_names_spec"
665 +# Flag to hardcode \$libdir into a binary during linking.
666 +# This must work even if \$libdir does not exist.
667 +hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
669 +# Whether we need a single -rpath flag with a separated argument.
670 +hardcode_libdir_separator="$hardcode_libdir_separator"
672 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
674 +hardcode_direct="$hardcode_direct"
676 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
678 +hardcode_minus_L="$hardcode_minus_L"