From: Gary V. Vaughan Date: Sat, 4 Aug 2001 11:04:07 +0000 (+0000) Subject: From Edouard G. Parmelan X-Git-Tag: release-1-4-1~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe97187aea8cfe1e606880342c44d911648e5b09;p=thirdparty%2Flibtool.git From Edouard G. Parmelan * libtool.m4 [darwin, openbsd]: Fix quoting problems with unquoted [] expressions. --- diff --git a/ChangeLog b/ChangeLog index bb1a492f6..097da715f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-08-04 Gary V. Vaughan + + From Edouard G. Parmelan + * libtool.m4 [darwin, openbsd]: Fix quoting problems with + unquoted [] expressions. + 2001-07-29 Albert Chin-A-Young * libtool.m4: Prefer shl_load to dlopen on HP-UX because diff --git a/libtool.m4 b/libtool.m4 index a8b96d634..a0e484428 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1451,7 +1451,7 @@ else archive_cmds='' hardcode_libdir_separator=':' if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) + case $host_os in aix4.[[012]]|aix4.[[012]].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null @@ -1627,14 +1627,14 @@ else hardcode_direct=yes hardcode_shlibpath_var=no case "$host_os" in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - if [ "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ]; then + if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then export_dynamic_flag_spec='${wl}-E' fi ;; @@ -2129,8 +2129,8 @@ openbsd*) version_type=sunos file_magic_cmd=/usr/bin/file file_magic_test_file=`echo /usr/lib/libc.so.*` - if [ "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ]; then - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' + if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + [deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'] else deplibs_check_method='file_magic OpenBSD.* shared library' fi @@ -3234,7 +3234,7 @@ darwin* | rhapsody*) lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' lt_cv_file_magic_cmd='/usr/bin/file -L' case "$host_os" in - rhapsody* | darwin1.[012]) + rhapsody* | darwin1.[[012]]) lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` ;; *) # Darwin 1.3 on