Ignore:
Timestamp:
Oct 6, 2008, 10:45:02 PM (12 years ago)
Author:
Sam Hocevar
Message:

Detect shared library suffix at configure stage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2871 r2888  
    4646  export PKG_CONFIG_LIBDIR=/dev/null
    4747fi
     48
     49AC_MSG_CHECKING(for library suffix)
     50LT_SUFFIX="`./libtool -n --mode=link gcc -o libTEST.la -version-number 123:666:999 -rpath / | xargs -n 1 | sed -ne 's/.*libTEST\(@<:@^, ()0-9@:>@*\)123\(@<:@^, ()0-9@:>@*\).*/\1'$LT_MAJOR'\2/p' | grep -v '\.$' | head -n 1`"
     51if test "$LT_SUFFIX" = ""; then
     52  LT_SUFFIX=".so.$LT_MAJOR"
     53  AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
     54else
     55  AC_MSG_RESULT($LT_SUFFIX)
     56fi
     57AC_SUBST(LT_SUFFIX)
    4858
    4959dnl output driver features
Note: See TracChangeset for help on using the changeset viewer.