home *** CD-ROM | disk | FTP | other *** search
-
-
- # Find out what this system calls `sys_siglist'.
- for func in sys_siglist _sys_siglist
- do
- trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
- echo checking for ${func}
- cat > conftest.c <<EOF
- #include <stdio.h>
- int main() { exit(0); }
- int t() {
- #ifdef __stub_${func}
- choke me
- #else
- /* Override any gcc2 internal prototype to avoid an error. */
- extern char ${func}(); ${func}();
- #endif
- }
- EOF
- if eval $compile; then
- {
- test -n "$verbose" && \
- echo ' defining' ${trfunc}
- DEFS="$DEFS -D${trfunc}=1"
- }
-
- fi
- rm -f conftest*
- done
-
-
- # Find out the name of the table the system's <ctype.h> uses for character
- # classification. This is used by sysdeps/unix/common/glue-ctype.c.
- for func in _ctype_ __ctype_ __ctype _ctype__
- do
- trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
- echo checking for ${func}
- cat > conftest.c <<EOF
- #include <stdio.h>
- int main() { exit(0); }
- int t() {
- #ifdef __stub_${func}
- choke me
- #else
- /* Override any gcc2 internal prototype to avoid an error. */
- extern char ${func}(); ${func}();
- #endif
- }
- EOF
- if eval $compile; then
- {
- test -n "$verbose" && \
- echo ' defining' ${trfunc}
- DEFS="$DEFS -D${trfunc}=1"
- }
-
- fi
- rm -f conftest*
- done
-
-