瀏覽代碼

Detect shared library suffix at configure stage.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2886 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 年之前
父節點
當前提交
e474065ad9
共有 3 個檔案被更改,包括 11 行新增5 行删除
  1. +10
    -0
      configure.ac
  2. +0
    -4
      pipi-sharp/pipi-sharp.dll.config
  3. +1
    -1
      pipi-sharp/pipi-sharp.dll.config.in

+ 10
- 0
configure.ac 查看文件

@@ -43,6 +43,16 @@ if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
export PKG_CONFIG_LIBDIR=/dev/null
fi

AC_MSG_CHECKING(for library suffix)
LT_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`"
if test "$LT_SUFFIX" = ""; then
LT_SUFFIX=".so.$LT_MAJOR"
AC_MSG_RESULT(unknown, defaulting to $LT_SUFFIX)
else
AC_MSG_RESULT($LT_SUFFIX)
fi
AC_SUBST(LT_SUFFIX)

AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)

ac_cv_have_getopt_long="no"


+ 0
- 4
pipi-sharp/pipi-sharp.dll.config 查看文件

@@ -1,4 +0,0 @@
<configuration>
<dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi.so.0" />
<dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi.0.dylib" />
</configuration>

+ 1
- 1
pipi-sharp/pipi-sharp.dll.config.in 查看文件

@@ -1,3 +1,3 @@
<configuration>
<dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi.so.@LT_MAJOR@" />
<dllmap dll="libpipi.dll" target="../pipi/.libs/libpipi@LT_SUFFIX@" />
</configuration>

Loading…
取消
儲存