@@ -3211,7 +3211,7 @@ then
32113211 linux* ) MACHDEP=" linux" ;;
32123212 cygwin* ) MACHDEP=" cygwin" ;;
32133213 darwin* ) MACHDEP=" darwin" ;;
3214- irix646) MACHDEP=" irix6" ;;
3214+ irix646) MACHDEP=" irix6" ;;
32153215 ' ' ) MACHDEP=" unknown" ;;
32163216 esac
32173217fi
@@ -5424,37 +5424,35 @@ $as_echo "$enable_shared" >&6; }
54245424$as_echo_n " checking for --enable-profiling... " >&6 ; }
54255425# Check whether --enable-profiling was given.
54265426if test " ${enable_profiling+set} " = set ; then :
5427- enableval=$enable_profiling ; ac_save_cc=" $CC "
5428- CC=" $CC -pg"
5429- if test " $cross_compiling " = yes; then :
5430- ac_enable_profiling=" no"
5431- else
5427+ enableval=$enable_profiling ;
5428+ fi
5429+
5430+ if test " x$enable_profiling " = xyes; then
5431+ ac_save_cc=" $CC "
5432+ CC=" $( CC) -pg"
54325433 cat confdefs.h - << _ACEOF >conftest.$ac_ext
54335434/* end confdefs.h. */
54345435int main() { return 0; }
54355436_ACEOF
5436- if ac_fn_c_try_run " $LINENO " ; then :
5437- ac_enable_profiling= " yes "
5437+ if ac_fn_c_try_link " $LINENO " ; then :
5438+
54385439else
5439- ac_enable_profiling= " no "
5440+ enable_profiling=no
54405441fi
5441- rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5442- conftest.$ac_objext conftest.beam conftest.$ac_ext
5442+ rm -f core conftest.err conftest.$ac_objext \
5443+ conftest$ac_exeext conftest.$ac_ext
5444+ CC=" $ac_save_cc "
5445+ else
5446+ enable_profiling=no
54435447fi
5448+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $enable_profiling " >&5
5449+ $as_echo " $enable_profiling " >&6 ; }
54445450
5445- CC=" $ac_save_cc "
5451+ if test " x$enable_profiling " = xyes; then
5452+ BASECFLAGS=" -pg $BASECFLAGS "
5453+ LDFLAGS=" -pg $LDFLAGS "
54465454fi
54475455
5448- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_enable_profiling " >&5
5449- $as_echo " $ac_enable_profiling " >&6 ; }
5450-
5451- case " $ac_enable_profiling " in
5452- " yes" )
5453- BASECFLAGS=" -pg $BASECFLAGS "
5454- LDFLAGS=" -pg $LDFLAGS "
5455- ;;
5456- esac
5457-
54585456{ $as_echo " $as_me :${as_lineno-$LINENO } : checking LDLIBRARY" >&5
54595457$as_echo_n " checking LDLIBRARY... " >&6 ; }
54605458
0 commit comments