diff options
author | Alan Modra <amodra@gmail.com> | 2009-09-07 10:54:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-09-07 10:54:25 +0000 |
commit | 2eee559322944130e16808a3049f60f80561f69a (patch) | |
tree | cc4ae4e078313a11ba03b9533922c110ee60d92d /opcodes/configure | |
parent | b11d79f2b289c401770bbb05c82fbd761e4657a4 (diff) | |
download | gdb-2eee559322944130e16808a3049f60f80561f69a.zip gdb-2eee559322944130e16808a3049f60f80561f69a.tar.gz gdb-2eee559322944130e16808a3049f60f80561f69a.tar.bz2 |
* configure.in (BUILD_LIBS, BUILD_LIB_DEPS): Define and subst.
* configure: Regenerate.
* Makefile.am (LIBIBERTY, BUILD_LIBIBERTY, BUILD_LIBINTL): Delete.
(BUILD_LIBS, BUILD_LIB_DEPS): Define. Use..
(i386-gen, ia64-gen, z8kgen): ..here.
* Makefile.in: Regenerate.
Diffstat (limited to 'opcodes/configure')
-rwxr-xr-x | opcodes/configure | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/opcodes/configure b/opcodes/configure index ec7d164..52da1c4 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -746,6 +746,8 @@ archdefs SHARED_DEPENDENCIES SHARED_LIBADD SHARED_LDFLAGS +BUILD_LIB_DEPS +BUILD_LIBS LIBM cgendir CGEN_MAINT_FALSE @@ -5715,13 +5717,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:5718: $ac_compile\"" >&5) + (eval echo "\"\$as_me:5720: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:5721: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:5723: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:5724: output\"" >&5) + (eval echo "\"\$as_me:5726: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -6926,7 +6928,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 6929 "configure"' > conftest.$ac_ext + echo '#line 6931 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8158,11 +8160,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8161: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8163: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8165: \$? = $ac_status" >&5 + echo "$as_me:8167: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8497,11 +8499,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8500: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8502: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8504: \$? = $ac_status" >&5 + echo "$as_me:8506: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8602,11 +8604,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8605: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8607: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8609: \$? = $ac_status" >&5 + echo "$as_me:8611: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -8657,11 +8659,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8660: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8662: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8664: \$? = $ac_status" >&5 + echo "$as_me:8666: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11039,7 +11041,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11042 "configure" +#line 11044 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11135,7 +11137,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11138 "configure" +#line 11140 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12162,6 +12164,22 @@ esac +#Libs for generator progs +if test "x$cross_compiling" = "xno"; then + BUILD_LIBS=../libiberty/libiberty.a + BUILD_LIB_DEPS=$BUILD_LIBS +else + # if cross-compiling, assume that the system provides -liberty + # and that the version is compatible with new headers. + BUILD_LIBS=-liberty + BUILD_LIB_DEPS= +fi +BUILD_LIBS="$BUILD_LIBS $LIBINTL" +BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" + + + + # Horrible hacks to build DLLs on Windows and a shared library elsewhere. SHARED_LDFLAGS= SHARED_LIBADD= |