From cb5de0e1761c7a64c68fb89a29df51b30c14f5d1 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 10 Jul 2001 07:14:24 +0000 Subject: Change the order of the -fPIC and -KPIC tests to ensure that UnixWare is handled. (This used to be commit 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c) --- source3/configure.in | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 7c9bbf1bae..516104ffd7 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -665,14 +665,15 @@ case "$host_os" in esac # try to work out how to produce PIC code with this compiler -AC_PROG_CC_FLAG(fPIC) -if test $ac_cv_prog_cc_fPIC = yes; then - PICFLAG="-fPIC"; +# We try -KPIC before -fPIC so that we handle UnixWare correctly. +AC_PROG_CC_FLAG(KPIC) +if test $ac_cv_prog_cc_KPIC = yes; then + PICFLAG="-KPIC"; fi if test x$PICFLAG = x; then - AC_PROG_CC_FLAG(KPIC) - if test $ac_cv_prog_cc_KPIC = yes; then - PICFLAG="-KPIC"; + AC_PROG_CC_FLAG(fPIC) + if test $ac_cv_prog_cc_fPIC = yes; then + PICFLAG="-fPIC"; fi fi if test x$PICFLAG = x; then -- cgit