Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions JPEG/jpeg/configure
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
#line 625 "configure"
#include "confdefs.h"
main(){return(0);}
int main(){return(0);}
EOF
if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
Expand Down Expand Up @@ -1281,6 +1281,10 @@ else
#line 1282 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_PROTOTYPES
int is_char_signed (int arg)
#else
Expand All @@ -1298,7 +1302,7 @@ int is_char_signed (arg)
return 1; /* assume char is signed otherwise */
}
char signed_char_check = (char) (-67);
main() {
int main() {
exit(is_char_signed((int) signed_char_check));
}
EOF
Expand Down Expand Up @@ -1327,6 +1331,10 @@ else
#line 1328 "configure"
#include "confdefs.h"

#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_PROTOTYPES
int is_shifting_signed (long arg)
#else
Expand All @@ -1350,7 +1358,7 @@ int is_shifting_signed (arg)
printf("I fear the JPEG software will not work at all.\n\n");
return 0; /* try it with unsigned anyway */
}
main() {
int main() {
exit(is_shifting_signed(-0x7F7E80B1L));
}
EOF
Expand Down Expand Up @@ -1380,7 +1388,10 @@ else
#include "confdefs.h"

#include <stdio.h>
main() {
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
int main() {
if (fopen("conftestdata", "wb") != NULL)
exit(0);
exit(1);
Expand Down