From: Brook Moses Date: Fri, 23 Aug 2013 03:23:33 +0000 (+0700) Subject: libtool: improve comments for _LT_ENABLE_LOCK implementation. X-Git-Tag: v2.4.2.418~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5151a7a167ef9c4afc259a843f1aa39063d36f91;p=thirdparty%2Flibtool.git libtool: improve comments for _LT_ENABLE_LOCK implementation. * m4/libtool.m4 (_LT_ENABLE_LOCK): enhance comments to explain why the code looks odd with 32bit flags in the 64bit section and vice versa. Signed-off-by: Gary V. Vaughan --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 08fb2a5d3..55d7159c4 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1260,7 +1260,8 @@ test no = "$enable_libtool_lock" || enable_libtool_lock=yes # libtool support. case $host in ia64-*-hpux*) - # Find out which ABI we are using. + # Find out which ABI is being produced by ac_compile, and set mode + # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in @@ -1275,7 +1276,8 @@ ia64-*-hpux*) rm -rf conftest* ;; *-*-irix6*) - # Find out which ABI we are using. + # Find out which ABI is being produced by ac_compile, and set linker + # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then @@ -1309,7 +1311,12 @@ ia64-*-hpux*) x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out which ABI we are using. + # Find out which ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in @@ -1383,7 +1390,8 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) fi ;; *-*solaris*) - # Find out which ABI we are using. + # Find out which ABI is being produced by ac_compile, and set linker + # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in