Changeset 3952 for libcaca


Ignore:
Timestamp:
Nov 19, 2009, 1:53:39 AM (10 years ago)
Author:
Sam Hocevar
Message:

Fix the library suffix detection, thanks to libtool's shell variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r3909 r3952  
    4747fi
    4848
    49 dnl FIXME: this no longer works because libtool is generated at the end
    50 AC_MSG_CHECKING(for library suffix)
    51 LT_SUFFIX="`./libtool -n --mode=link gcc -o libTEST.la -no-undefined -version-number 123:666:999 -rpath / | xargs -n 1 | sed -ne 's/.*libTEST\(@<:@^, ()0-9@:>@*\)123\(@<:@^, ()0-9@:>@*\).*/\1'$LT_MAJOR'\2/p' | sed '/\.$/d;q'`"
    52 if test "$LT_SUFFIX" = ""; then
    53   LT_SUFFIX=".so.$LT_MAJOR"
    54   AC_MSG_RESULT([unknown, defaulting to $LT_SUFFIX])
    55 else
    56   AC_MSG_RESULT($LT_SUFFIX)
    57 fi
     49AC_MSG_CHECKING(for suffix of libraries)
     50case "$shrext_cmds" in
     51  .dll) LT_SUFFIX="-$LT_MAJOR$shrext_cmds" ;;
     52  "") LT_SUFFIX=".so.$LT_MAJOR" ;;
     53  *) LT_SUFFIX="$shrext_cmds.$LT_MAJOR" ;;
     54esac
     55AC_MSG_RESULT($LT_SUFFIX)
    5856AC_SUBST(LT_SUFFIX)
    5957
Note: See TracChangeset for help on using the changeset viewer.