diff options
author | Richard Sharpe <sharpe@samba.org> | 2003-08-14 01:12:12 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2003-08-14 01:12:12 +0000 |
commit | 3b9f84290a2fc46f8411352910b8c6d1127033d2 (patch) | |
tree | fd249272b5abd387c40af5743f671c22101e26c6 /source3 | |
parent | 172766eea7a374e910ea91c857fcce45996783a2 (diff) | |
download | samba-3b9f84290a2fc46f8411352910b8c6d1127033d2.tar.gz samba-3b9f84290a2fc46f8411352910b8c6d1127033d2.tar.bz2 samba-3b9f84290a2fc46f8411352910b8c6d1127033d2.zip |
Small tweaks to configure.in to support Irix and to remove the changing
of LIBS where we don't need to change them, and to ensure that if
--with-iconv was specified we only search the list of locations specified.
(This used to be commit c2274274a6cec7aed5ba5fee72e529ff3e0c71e0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/configure.in b/source3/configure.in index a16c5cbf96..d8223a241d 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1533,7 +1533,8 @@ AC_ARG_WITH(libiconv, AC_MSG_ERROR(I won't take no for an answer) else if test "$withval" != "yes" ; then - LOOK_DIRS="$withval $LOOK_DIRS" + ICONV_PATH_SPEC=yes + LOOK_DIRS="$withval" fi fi ]) @@ -1544,7 +1545,10 @@ for i in $LOOK_DIRS ; do save_LDFLAGS=$LDFLAGS save_CPPFLAGS=$CPPFLAGS CPPFLAGS="-I$i/include" - LDFLAGS="-L$i/lib" +dnl This is here to handle -withval stuff for --with-libiconv + if test x"$ICONV_PATH_SPEC" = "xyes" ; then + LDFLAGS="-L$i/lib" + fi LIBS= export LDFLAGS LIBS CPPFLAGS dnl Try to find iconv(3) @@ -1562,7 +1566,9 @@ dnl there might be a working iconv further down the list of LOOK_DIRS ############ # check for iconv in libc ic_save_LIBS="$LIBS" - LIBS="$LIBS -L$ICONV_LOCATION/lib" + if test x"$ICONV_PATH_SPEC" = "xyes" ; then + LIBS="$LIBS -L$ICONV_LOCATION/lib" + fi AC_CACHE_CHECK([for working iconv],samba_cv_HAVE_NATIVE_ICONV,[ AC_TRY_RUN([ #include <$jm_cv_include> @@ -1573,7 +1579,7 @@ main(){ if (cd == 0 || cd == (iconv_t)-1) { cd = iconv_open("IBM850", "UCS-2LE"); /* Solaris has this */ if (cd == 0 || cd == (iconv_t)-1) { - cd = iconv_open("ISO-8859-1", "UTF-8"); /* IRIX has this */ + cd = iconv_open("ISO8859-1", "UTF-8"); /* IRIX has this */ if (cd == 0 || cd == (iconv_t)-1) { return -1; } |