mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* Peter O'Gorman's patch for fixing libtool on darwin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7268 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
to create the list of libobjects to be linked into "libc-missing"
|
||||
|
||||
* Check for gettext in -lintl for MacOS
|
||||
|
||||
* Peter O'Gorman's patch for fixing libtool on darwin
|
||||
|
||||
2002-10-03 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
|
||||
32
configure.in
32
configure.in
@@ -105,10 +105,42 @@ AC_CHECK_FUNCS(dlerror,,)
|
||||
LIBS="$oLIBS"
|
||||
AC_SUBST(DL_LIB)
|
||||
|
||||
### --------------------------------------------------------------------------
|
||||
### MacOS 10.x requires some special handling...
|
||||
|
||||
# Some systems (MacOS) require -lintl
|
||||
AC_SEARCH_LIBS(gettext, intl, ,[
|
||||
AC_MSG_ERROR([Cannot find gettext -- do you need to build -lintl?])], )
|
||||
|
||||
AC_MSG_CHECKING(for darwin)
|
||||
case $host_os in
|
||||
rhapsody* | darwin1*)
|
||||
AC_MSG_RESULT([yes, but too old])
|
||||
AC_MSG_ERROR([This platform is not supported, please
|
||||
update to latest darwin])
|
||||
;;
|
||||
darwin*)
|
||||
AC_MSG_RESULT([yes, patching libtool to always build dylibs])
|
||||
mv libtool libtool.old
|
||||
sed -e 's/^deplibs_check_method.*/deplibs_check_method=pass_all/g' \
|
||||
-e 's|^archive_cmds.*|archive_cmds="$CC
|
||||
-dynamiclib \\$allow_undefined_flag -o \\$lib \\$libobjs
|
||||
\\$deplibs\\$linker_flags -install_name \\$rpath/\\$soname
|
||||
\\$verstring"|g' \
|
||||
-e
|
||||
's|^library_names_spec.*|library_names_spec="\\$libname\\$release\\$vers
|
||||
uffix.dylib \\$libname\\$release\\${major}.dylib \\$libname.dylib"|g' \
|
||||
-e
|
||||
's|^soname_spec.*|soname_spec="\\$libname\\$release\\$major.dylib"|g' \
|
||||
< libtool.old > libtool
|
||||
rm libtool.old
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT(no)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
### --------------------------------------------------------------------------
|
||||
### Guile and g-wrap version checks (should this be something other than
|
||||
### the Gnome check?)
|
||||
|
||||
Reference in New Issue
Block a user