27 |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
28 |
# |
# |
29 |
# |
# |
30 |
# $Id: configure,v 1.226 2006/07/20 21:52:59 debug Exp $ |
# $Id: configure,v 1.228 2006/07/25 21:49:14 debug Exp $ |
31 |
# |
# |
32 |
# This is a minimal configure script, hardcoded for GXemul. This script |
# This is a minimal configure script, hardcoded for GXemul. This script |
33 |
# figures out which compiler flags will work, and creates Makefiles in |
# figures out which compiler flags will work, and creates Makefiles in |
197 |
fi |
fi |
198 |
if [ z$ENABLESH = zYES ]; then |
if [ z$ENABLESH = zYES ]; then |
199 |
printf "#define ENABLE_SH\n" >> config.h |
printf "#define ENABLE_SH\n" >> config.h |
200 |
CPU_ARCHS="$CPU_ARCHS cpu_sh.o" |
CPU_ARCHS="$CPU_ARCHS cpu_sh.o memory_sh.o" |
201 |
fi |
fi |
202 |
if [ z$ENABLESPARC = zYES ]; then |
if [ z$ENABLESPARC = zYES ]; then |
203 |
printf "#define ENABLE_SPARC\n" >> config.h |
printf "#define ENABLE_SPARC\n" >> config.h |
684 |
rm -f _testprog _testprog.error _testprog.stdout |
rm -f _testprog _testprog.error _testprog.stdout |
685 |
|
|
686 |
|
|
687 |
# -g |
# -g, for development builds |
688 |
printf "checking whether -g can be used... " |
if [ z"$UNSTABLE" = zYES ]; then |
689 |
if [ z"$COMPAQCC" = zYES ]; then |
printf "checking whether -g can be used... " |
690 |
printf "skipping\n" |
if [ z"$COMPAQCC" = zYES ]; then |
691 |
else |
printf "skipping\n" |
|
$CC $CFLAGS -g _testprog.c -o _testprog > _testprog.stdout 2>&1 |
|
|
cat _testprog.stdout >> _testprog.error |
|
|
if [ -x _testprog ]; then |
|
|
CFLAGS="-g $CFLAGS" |
|
|
printf "yes\n" |
|
692 |
else |
else |
693 |
|
$CC $CFLAGS -g _testprog.c -o _testprog > _testprog.stdout 2>&1 |
694 |
|
cat _testprog.stdout >> _testprog.error |
695 |
|
if [ -x _testprog ]; then |
696 |
|
CFLAGS="-g $CFLAGS" |
697 |
|
printf "yes\n" |
698 |
|
else |
699 |
printf "no\n" |
printf "no\n" |
700 |
|
fi |
701 |
fi |
fi |
702 |
|
rm -f _testprog _testprog.error _testprog.stdout |
703 |
fi |
fi |
|
rm -f _testprog _testprog.error _testprog.stdout |
|
704 |
|
|
705 |
|
|
706 |
# -lrt for nanosleep? |
# -lrt for nanosleep? |