summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 6398c48d06..a7635a8460 100755
--- a/tools/configure
+++ b/tools/configure
@@ -4394,6 +4394,7 @@ fi
;;
[Cc])
uname=`uname`
+ checkwps="yes"
simcc "checkwps"
toolset='';
t_cpu='';
@@ -4474,9 +4475,13 @@ fi
if [ "yes" = "$simulator" ]; then
echo Unsetting APPLICATION define for SIMULATOR build
unset application
+fi
+
+# newer glibc implementations use byteswap.h
+if [ "$simulator" = "yes" ] || [ "$checkwps" = "yes" ]; then
if test -f "$BYTESWP"; then
echo Using "$BYTESWP"
- extradefines="$extradefines -DSIM_USE_BYTESWAP_H=$BYTESWP"
+ extradefines="$extradefines -DOS_USE_BYTESWAP_H=$BYTESWP"
fi
fi