echo "You have EBCDIC." >&4
val="$define"
else
- echo "Nope, no EBCDIC. Assuming ASCII or some ISO Latin, or UTF." >&4
+ echo "Nope, no EBCDIC, probably ASCII or some ISO Latin." >&4
fi
else
echo "I'm unable to compile the test program." >&4
?H:#define Gid_t_SIGN $gidsign /* GID sign */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set gidsign
echo " "
-echo "Checking the sign of $gidtype..." >&4
-cat > try.c <<'EOCP'
+case "$gidtype" in
+*_t) zzz="$gidtype" ;;
+*) zzz="gid" ;;
+esac
+echo "Checking the sign of $zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
;;
*) gidsign=$yyy
case "$gidsign" in
- 1) echo "Your $gidtype is unsigned." ;;
- -1) echo "Your $gidtype is signed." ;;
+ 1) echo "Your $zzz is unsigned." ;;
+ -1) echo "Your $zzz is signed." ;;
esac
+ ;;
esac
else
gidsign=1
?H:#define Gid_t_SIZE $gidsize /* GID size */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set gidsize
echo " "
-echo "Checking the size of $gidtype..." >&4
-cat > try.c <<'EOCP'
+case "$gidtype" in
+*_t) zzz="$gidtype" ;;
+*) zzz="gid" ;;
+esac
+echo "Checking the size of zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
echo "(I can't execute the test program--guessing $gidsize.)" >&4
;;
*) gidsize=$yyy
- echo "Your $gidtype size is $gidsize bytes."
+ echo "Your $zzz size is $gidsize bytes."
;;
esac
else
?H:#define Pid_t_SIGN $pidsign /* PID sign */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set pidsign
echo " "
-echo "Checking the sign of $pidtype..." >&4
-cat > try.c <<'EOCP'
+case "$pidtype" in
+*_t) zzz="$pidtype" ;;
+*) zzz="pid" ;;
+esac
+echo "Checking the sign of $zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
1) echo "Your $pidtype is unsigned." ;;
-1) echo "Your $pidtype is signed." ;;
esac
+ ;;
esac
else
pidsign=1
?H:#define Pid_t_SIZE $pidsize /* PID size */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set pidsize
echo " "
-echo "Checking the size of $pidtype..." >&4
-cat > try.c <<'EOCP'
+case "$pidtype" in
+*_t) zzz="$pidtype" ;;
+*) zzz="pid" ;;
+esac
+echo "Checking the size of $zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
echo "(I can't execute the test program--guessing $pidsize.)" >&4
;;
*) pidsize=$yyy
- echo "Your $pidtype size is $pidsize bytes."
+ echo "Your $zzz size is $pidsize bytes."
;;
esac
else
echo "(I can't compile the test program--guessing $pidsize.)" >&4
fi
-
?H:#define Uid_t_SIGN $uidsign /* UID sign */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set uidsign
echo " "
-echo "Checking the sign of $uidtype..." >&4
-cat > try.c <<'EOCP'
+case "$uidtype" in
+*_t) zzz="$uidtype" ;;
+*) zzz="uid" ;;
+esac
+echo "Checking the sign of $zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
;;
*) uidsign=$yyy
case "$uidsign" in
- 1) echo "Your $uidtype is unsigned." ;;
- -1) echo "Your $uidtype is signed." ;;
+ 1) echo "Your $zzz is unsigned." ;;
+ -1) echo "Your $zzz is signed." ;;
esac
+ ;;
esac
else
uidsign=1
?H:#define Uid_t_SIZE $uidsize /* UID size */
?H:.
?F:!try
-?T:yyy
+?T:yyy zzz
?LINT: set uidsize
echo " "
-echo "Checking the size of $uidtype..." >&4
-cat > try.c <<'EOCP'
+case "$uidtype" in
+*_t) zzz="$uidtype" ;;
+*) zzz="uid" ;;
+esac
+echo "Checking the size of $zzz..." >&4
+cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
int main() {
echo "(I can't execute the test program--guessing $uidsize.)" >&4
;;
*) uidsize=$yyy
- echo "Your $uidtype size is $uidsize bytes."
+ echo "Your $zzz size is $uidsize bytes."
;;
esac
else
echo "(I can't compile the test program--guessing $uidsize.)" >&4
fi
-