4 PATHTOCONFIGURE=`dirname "$PROGNAME"`
6 if test -x "$(which gcc 2>/dev/null)"; then
7 # Detect the actual path to the libstdc++ library. For the dynamic link
8 # build, we want to use the same lib as the compiler installed.
9 # CF bug #7887 for more information.
10 # Note that, for the Makefile, the setup is done in the Scilab macros
12 GCClibpath=$(LC_ALL=C gcc -print-search-dirs|awk -F= '$1=="libraries: "{print $2}')
14 if test -z "$(grep $GCClibpath $LD_LIBRARY_PATH 2>/dev/null)"; then
15 LD_LIBRARY_PATH="$GCClibpath${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
16 export LD_LIBRARY_PATH
20 # Relaunch configure if files are missing
21 if test ! -s Makefile.orig -o ! -s libtool; then
22 echo "Detection of C/C++/Fortran Compilers"
23 ./configure --disable-static --disable-dependency-tracking "$@"
24 mv Makefile Makefile.orig
26 echo "Detection of compilers already done"