diff options
Diffstat (limited to 'libobjc/configure')
-rwxr-xr-x | libobjc/configure | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libobjc/configure b/libobjc/configure index 25cdc01..a7e2dce 100755 --- a/libobjc/configure +++ b/libobjc/configure @@ -1033,14 +1033,21 @@ fi # Determine the name of the GCC thread file. +dir=`pwd` +if test x"${with_multisubdir}" = "x" ; then + gccobjdir=`echo $dir/../../gcc` +else + gccobjdir=`echo $dir | sed -e s:${with_multisubdir}::`/../../gcc +fi + echo $ac_n "checking for thread file""... $ac_c" 1>&6 -echo "configure:1038: checking for thread file" >&5 +echo "configure:1045: checking for thread file" >&5 if eval "test \"`echo '$''{'objc_cv_thread_file'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -f ../../gcc/Makefile + if test -f $gccobjdir/Makefile then - objc_cv_thread_file=`grep \^GCC_THREAD_FILE ../../gcc/Makefile | awk -F= '{ print $2 }'` + objc_cv_thread_file=`grep \^GCC_THREAD_FILE $gccobjdir/Makefile | awk -F= '{ print $2 }'` else { echo "configure: error: not found" 1>&2; exit 1; } fi |