]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/flex-2.6.4-fix-build-width-glibc-2.6+.patch
core127: Ship updated wget
[ipfire-2.x.git] / src / patches / flex-2.6.4-fix-build-width-glibc-2.6+.patch
CommitLineData
f1a5a25a
MT
1Backport of https://github.com/westes/flex/commit/24fd0551333e7eded87b64dd36062da3df2f6380
2
3Bug: https://bugs.gentoo.org/628744
4
5--- a/configure
6+++ b/configure
7@@ -3605,13 +3605,142 @@ test -z "$SED" && SED=sed
8 Xsed="$SED -e 1s/^X//"
9
10
11+ac_ext=c
12+ac_cpp='$CPP $CPPFLAGS'
13+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17+$as_echo_n "checking how to run the C preprocessor... " >&6; }
18+# On Suns, sometimes $CPP names a directory.
19+if test -n "$CPP" && test -d "$CPP"; then
20+ CPP=
21+fi
22+if test -z "$CPP"; then
23+ if ${ac_cv_prog_CPP+:} false; then :
24+ $as_echo_n "(cached) " >&6
25+else
26+ # Double quotes because CPP needs to be expanded
27+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
28+ do
29+ ac_preproc_ok=false
30+for ac_c_preproc_warn_flag in '' yes
31+do
32+ # Use a header file that comes with gcc, so configuring glibc
33+ # with a fresh cross-compiler works.
34+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35+ # <limits.h> exists even on freestanding compilers.
36+ # On the NeXT, cc -E runs the code through the compiler's parser,
37+ # not just through cpp. "Syntax error" is here to catch this case.
38+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39+/* end confdefs.h. */
40+#ifdef __STDC__
41+# include <limits.h>
42+#else
43+# include <assert.h>
44+#endif
45+ Syntax error
46+_ACEOF
47+if ac_fn_c_try_cpp "$LINENO"; then :
48+
49+else
50+ # Broken: fails on valid input.
51+continue
52+fi
53+rm -f conftest.err conftest.i conftest.$ac_ext
54+
55+ # OK, works on sane cases. Now check whether nonexistent headers
56+ # can be detected and how.
57+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58+/* end confdefs.h. */
59+#include <ac_nonexistent.h>
60+_ACEOF
61+if ac_fn_c_try_cpp "$LINENO"; then :
62+ # Broken: success on invalid input.
63+continue
64+else
65+ # Passes both tests.
66+ac_preproc_ok=:
67+break
68+fi
69+rm -f conftest.err conftest.i conftest.$ac_ext
70+
71+done
72+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73+rm -f conftest.i conftest.err conftest.$ac_ext
74+if $ac_preproc_ok; then :
75+ break
76+fi
77
78+ done
79+ ac_cv_prog_CPP=$CPP
80
81+fi
82+ CPP=$ac_cv_prog_CPP
83+else
84+ ac_cv_prog_CPP=$CPP
85+fi
86+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
87+$as_echo "$CPP" >&6; }
88+ac_preproc_ok=false
89+for ac_c_preproc_warn_flag in '' yes
90+do
91+ # Use a header file that comes with gcc, so configuring glibc
92+ # with a fresh cross-compiler works.
93+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
94+ # <limits.h> exists even on freestanding compilers.
95+ # On the NeXT, cc -E runs the code through the compiler's parser,
96+ # not just through cpp. "Syntax error" is here to catch this case.
97+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98+/* end confdefs.h. */
99+#ifdef __STDC__
100+# include <limits.h>
101+#else
102+# include <assert.h>
103+#endif
104+ Syntax error
105+_ACEOF
106+if ac_fn_c_try_cpp "$LINENO"; then :
107
108+else
109+ # Broken: fails on valid input.
110+continue
111+fi
112+rm -f conftest.err conftest.i conftest.$ac_ext
113
114+ # OK, works on sane cases. Now check whether nonexistent headers
115+ # can be detected and how.
116+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
117+/* end confdefs.h. */
118+#include <ac_nonexistent.h>
119+_ACEOF
120+if ac_fn_c_try_cpp "$LINENO"; then :
121+ # Broken: success on invalid input.
122+continue
123+else
124+ # Passes both tests.
125+ac_preproc_ok=:
126+break
127+fi
128+rm -f conftest.err conftest.i conftest.$ac_ext
129
130+done
131+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
132+rm -f conftest.i conftest.err conftest.$ac_ext
133+if $ac_preproc_ok; then :
134
135+else
136+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
137+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
138+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
139+See \`config.log' for more details" "$LINENO" 5; }
140+fi
141
142+ac_ext=c
143+ac_cpp='$CPP $CPPFLAGS'
144+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
146+ac_compiler_gnu=$ac_cv_c_compiler_gnu
147
148
149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
150@@ -3744,91 +3873,208 @@ $as_echo "$ac_cv_path_EGREP" >&6; }
151 EGREP="$ac_cv_path_EGREP"
152
153
154-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
155-$as_echo_n "checking for fgrep... " >&6; }
156-if ${ac_cv_path_FGREP+:} false; then :
157+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
158+$as_echo_n "checking for ANSI C header files... " >&6; }
159+if ${ac_cv_header_stdc+:} false; then :
160 $as_echo_n "(cached) " >&6
161 else
162- if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
163- then ac_cv_path_FGREP="$GREP -F"
164- else
165- if test -z "$FGREP"; then
166- ac_path_FGREP_found=false
167- # Loop through the user's path and test for each of PROGNAME-LIST
168- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
169-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
170-do
171- IFS=$as_save_IFS
172- test -z "$as_dir" && as_dir=.
173- for ac_prog in fgrep; do
174- for ac_exec_ext in '' $ac_executable_extensions; do
175- ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
176- as_fn_executable_p "$ac_path_FGREP" || continue
177-# Check for GNU ac_path_FGREP and select it if it is found.
178- # Check for GNU $ac_path_FGREP
179-case `"$ac_path_FGREP" --version 2>&1` in
180-*GNU*)
181- ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
182-*)
183- ac_count=0
184- $as_echo_n 0123456789 >"conftest.in"
185- while :
186- do
187- cat "conftest.in" "conftest.in" >"conftest.tmp"
188- mv "conftest.tmp" "conftest.in"
189- cp "conftest.in" "conftest.nl"
190- $as_echo 'FGREP' >> "conftest.nl"
191- "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
192- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
193- as_fn_arith $ac_count + 1 && ac_count=$as_val
194- if test $ac_count -gt ${ac_path_FGREP_max-0}; then
195- # Best one so far, save it but keep looking for a better one
196- ac_cv_path_FGREP="$ac_path_FGREP"
197- ac_path_FGREP_max=$ac_count
198- fi
199- # 10*(2^10) chars as input seems more than enough
200- test $ac_count -gt 10 && break
201- done
202- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
203-esac
204+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
205+/* end confdefs.h. */
206+#include <stdlib.h>
207+#include <stdarg.h>
208+#include <string.h>
209+#include <float.h>
210
211- $ac_path_FGREP_found && break 3
212- done
213- done
214- done
215-IFS=$as_save_IFS
216- if test -z "$ac_cv_path_FGREP"; then
217- as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
218- fi
219-else
220- ac_cv_path_FGREP=$FGREP
221-fi
222+int
223+main ()
224+{
225
226- fi
227+ ;
228+ return 0;
229+}
230+_ACEOF
231+if ac_fn_c_try_compile "$LINENO"; then :
232+ ac_cv_header_stdc=yes
233+else
234+ ac_cv_header_stdc=no
235 fi
236-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
237-$as_echo "$ac_cv_path_FGREP" >&6; }
238- FGREP="$ac_cv_path_FGREP"
239-
240+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
241
242-test -z "$GREP" && GREP=grep
243+if test $ac_cv_header_stdc = yes; then
244+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
245+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
246+/* end confdefs.h. */
247+#include <string.h>
248
249+_ACEOF
250+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
251+ $EGREP "memchr" >/dev/null 2>&1; then :
252
253+else
254+ ac_cv_header_stdc=no
255+fi
256+rm -f conftest*
257
258+fi
259
260+if test $ac_cv_header_stdc = yes; then
261+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
262+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
263+/* end confdefs.h. */
264+#include <stdlib.h>
265
266+_ACEOF
267+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
268+ $EGREP "free" >/dev/null 2>&1; then :
269
270+else
271+ ac_cv_header_stdc=no
272+fi
273+rm -f conftest*
274
275+fi
276
277+if test $ac_cv_header_stdc = yes; then
278+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
279+ if test "$cross_compiling" = yes; then :
280+ :
281+else
282+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
283+/* end confdefs.h. */
284+#include <ctype.h>
285+#include <stdlib.h>
286+#if ((' ' & 0x0FF) == 0x020)
287+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
288+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
289+#else
290+# define ISLOWER(c) \
291+ (('a' <= (c) && (c) <= 'i') \
292+ || ('j' <= (c) && (c) <= 'r') \
293+ || ('s' <= (c) && (c) <= 'z'))
294+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
295+#endif
296
297+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
298+int
299+main ()
300+{
301+ int i;
302+ for (i = 0; i < 256; i++)
303+ if (XOR (islower (i), ISLOWER (i))
304+ || toupper (i) != TOUPPER (i))
305+ return 2;
306+ return 0;
307+}
308+_ACEOF
309+if ac_fn_c_try_run "$LINENO"; then :
310
311+else
312+ ac_cv_header_stdc=no
313+fi
314+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
315+ conftest.$ac_objext conftest.beam conftest.$ac_ext
316+fi
317
318+fi
319+fi
320+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
321+$as_echo "$ac_cv_header_stdc" >&6; }
322+if test $ac_cv_header_stdc = yes; then
323
324+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
325
326+fi
327
328+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
329+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
330+ inttypes.h stdint.h unistd.h
331+do :
332+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
333+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
334+"
335+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
336+ cat >>confdefs.h <<_ACEOF
337+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
338+_ACEOF
339+
340+fi
341+
342+done
343+
344+
345+
346+ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
347+if test "x$ac_cv_header_minix_config_h" = xyes; then :
348+ MINIX=yes
349+else
350+ MINIX=
351+fi
352+
353+
354+ if test "$MINIX" = yes; then
355
356+$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
357
358
359+$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
360+
361+
362+$as_echo "#define _MINIX 1" >>confdefs.h
363+
364+ fi
365+
366+
367+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
368+$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
369+if ${ac_cv_safe_to_define___extensions__+:} false; then :
370+ $as_echo_n "(cached) " >&6
371+else
372+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
373+/* end confdefs.h. */
374+
375+# define __EXTENSIONS__ 1
376+ $ac_includes_default
377+int
378+main ()
379+{
380+
381+ ;
382+ return 0;
383+}
384+_ACEOF
385+if ac_fn_c_try_compile "$LINENO"; then :
386+ ac_cv_safe_to_define___extensions__=yes
387+else
388+ ac_cv_safe_to_define___extensions__=no
389+fi
390+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
391+fi
392+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
393+$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
394+ test $ac_cv_safe_to_define___extensions__ = yes &&
395+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
396+
397+ $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
398+
399+ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
400+
401+ $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
402+
403+ $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
404+
405+
406+for ac_header in dlfcn.h
407+do :
408+ ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
409+"
410+if test "x$ac_cv_header_dlfcn_h" = xyes; then :
411+ cat >>confdefs.h <<_ACEOF
412+#define HAVE_DLFCN_H 1
413+_ACEOF
414+
415+fi
416+
417+done
418
419
420 # Check whether --with-gnu-ld was given.
421@@ -6898,288 +7144,6 @@ func_munge_path_list ()
422 esac
423 }
424
425-ac_ext=c
426-ac_cpp='$CPP $CPPFLAGS'
427-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
428-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
429-ac_compiler_gnu=$ac_cv_c_compiler_gnu
430-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
431-$as_echo_n "checking how to run the C preprocessor... " >&6; }
432-# On Suns, sometimes $CPP names a directory.
433-if test -n "$CPP" && test -d "$CPP"; then
434- CPP=
435-fi
436-if test -z "$CPP"; then
437- if ${ac_cv_prog_CPP+:} false; then :
438- $as_echo_n "(cached) " >&6
439-else
440- # Double quotes because CPP needs to be expanded
441- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
442- do
443- ac_preproc_ok=false
444-for ac_c_preproc_warn_flag in '' yes
445-do
446- # Use a header file that comes with gcc, so configuring glibc
447- # with a fresh cross-compiler works.
448- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
449- # <limits.h> exists even on freestanding compilers.
450- # On the NeXT, cc -E runs the code through the compiler's parser,
451- # not just through cpp. "Syntax error" is here to catch this case.
452- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
453-/* end confdefs.h. */
454-#ifdef __STDC__
455-# include <limits.h>
456-#else
457-# include <assert.h>
458-#endif
459- Syntax error
460-_ACEOF
461-if ac_fn_c_try_cpp "$LINENO"; then :
462-
463-else
464- # Broken: fails on valid input.
465-continue
466-fi
467-rm -f conftest.err conftest.i conftest.$ac_ext
468-
469- # OK, works on sane cases. Now check whether nonexistent headers
470- # can be detected and how.
471- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
472-/* end confdefs.h. */
473-#include <ac_nonexistent.h>
474-_ACEOF
475-if ac_fn_c_try_cpp "$LINENO"; then :
476- # Broken: success on invalid input.
477-continue
478-else
479- # Passes both tests.
480-ac_preproc_ok=:
481-break
482-fi
483-rm -f conftest.err conftest.i conftest.$ac_ext
484-
485-done
486-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
487-rm -f conftest.i conftest.err conftest.$ac_ext
488-if $ac_preproc_ok; then :
489- break
490-fi
491-
492- done
493- ac_cv_prog_CPP=$CPP
494-
495-fi
496- CPP=$ac_cv_prog_CPP
497-else
498- ac_cv_prog_CPP=$CPP
499-fi
500-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
501-$as_echo "$CPP" >&6; }
502-ac_preproc_ok=false
503-for ac_c_preproc_warn_flag in '' yes
504-do
505- # Use a header file that comes with gcc, so configuring glibc
506- # with a fresh cross-compiler works.
507- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
508- # <limits.h> exists even on freestanding compilers.
509- # On the NeXT, cc -E runs the code through the compiler's parser,
510- # not just through cpp. "Syntax error" is here to catch this case.
511- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
512-/* end confdefs.h. */
513-#ifdef __STDC__
514-# include <limits.h>
515-#else
516-# include <assert.h>
517-#endif
518- Syntax error
519-_ACEOF
520-if ac_fn_c_try_cpp "$LINENO"; then :
521-
522-else
523- # Broken: fails on valid input.
524-continue
525-fi
526-rm -f conftest.err conftest.i conftest.$ac_ext
527-
528- # OK, works on sane cases. Now check whether nonexistent headers
529- # can be detected and how.
530- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
531-/* end confdefs.h. */
532-#include <ac_nonexistent.h>
533-_ACEOF
534-if ac_fn_c_try_cpp "$LINENO"; then :
535- # Broken: success on invalid input.
536-continue
537-else
538- # Passes both tests.
539-ac_preproc_ok=:
540-break
541-fi
542-rm -f conftest.err conftest.i conftest.$ac_ext
543-
544-done
545-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
546-rm -f conftest.i conftest.err conftest.$ac_ext
547-if $ac_preproc_ok; then :
548-
549-else
550- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
551-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
552-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
553-See \`config.log' for more details" "$LINENO" 5; }
554-fi
555-
556-ac_ext=c
557-ac_cpp='$CPP $CPPFLAGS'
558-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
559-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
560-ac_compiler_gnu=$ac_cv_c_compiler_gnu
561-
562-
563-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
564-$as_echo_n "checking for ANSI C header files... " >&6; }
565-if ${ac_cv_header_stdc+:} false; then :
566- $as_echo_n "(cached) " >&6
567-else
568- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
569-/* end confdefs.h. */
570-#include <stdlib.h>
571-#include <stdarg.h>
572-#include <string.h>
573-#include <float.h>
574-
575-int
576-main ()
577-{
578-
579- ;
580- return 0;
581-}
582-_ACEOF
583-if ac_fn_c_try_compile "$LINENO"; then :
584- ac_cv_header_stdc=yes
585-else
586- ac_cv_header_stdc=no
587-fi
588-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
589-
590-if test $ac_cv_header_stdc = yes; then
591- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
592- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
593-/* end confdefs.h. */
594-#include <string.h>
595-
596-_ACEOF
597-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
598- $EGREP "memchr" >/dev/null 2>&1; then :
599-
600-else
601- ac_cv_header_stdc=no
602-fi
603-rm -f conftest*
604-
605-fi
606-
607-if test $ac_cv_header_stdc = yes; then
608- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
609- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
610-/* end confdefs.h. */
611-#include <stdlib.h>
612-
613-_ACEOF
614-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
615- $EGREP "free" >/dev/null 2>&1; then :
616-
617-else
618- ac_cv_header_stdc=no
619-fi
620-rm -f conftest*
621-
622-fi
623-
624-if test $ac_cv_header_stdc = yes; then
625- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
626- if test "$cross_compiling" = yes; then :
627- :
628-else
629- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630-/* end confdefs.h. */
631-#include <ctype.h>
632-#include <stdlib.h>
633-#if ((' ' & 0x0FF) == 0x020)
634-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
635-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
636-#else
637-# define ISLOWER(c) \
638- (('a' <= (c) && (c) <= 'i') \
639- || ('j' <= (c) && (c) <= 'r') \
640- || ('s' <= (c) && (c) <= 'z'))
641-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
642-#endif
643-
644-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
645-int
646-main ()
647-{
648- int i;
649- for (i = 0; i < 256; i++)
650- if (XOR (islower (i), ISLOWER (i))
651- || toupper (i) != TOUPPER (i))
652- return 2;
653- return 0;
654-}
655-_ACEOF
656-if ac_fn_c_try_run "$LINENO"; then :
657-
658-else
659- ac_cv_header_stdc=no
660-fi
661-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
662- conftest.$ac_objext conftest.beam conftest.$ac_ext
663-fi
664-
665-fi
666-fi
667-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
668-$as_echo "$ac_cv_header_stdc" >&6; }
669-if test $ac_cv_header_stdc = yes; then
670-
671-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
672-
673-fi
674-
675-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
676-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
677- inttypes.h stdint.h unistd.h
678-do :
679- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
680-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
681-"
682-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
683- cat >>confdefs.h <<_ACEOF
684-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
685-_ACEOF
686-
687-fi
688-
689-done
690-
691-
692-for ac_header in dlfcn.h
693-do :
694- ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
695-"
696-if test "x$ac_cv_header_dlfcn_h" = xyes; then :
697- cat >>confdefs.h <<_ACEOF
698-#define HAVE_DLFCN_H 1
699-_ACEOF
700-
701-fi
702-
703-done
704-
705-
706-
707
708
709 # Set options
710--- a/src/config.h.in
711+++ b/src/config.h.in
712@@ -207,6 +207,9 @@
713 /* Define to the m4 executable name. */
714 #undef M4
715
716+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
717+#undef NO_MINUS_C_MINUS_O
718+
719 /* Name of package */
720 #undef PACKAGE
721
722@@ -239,6 +242,28 @@
723 /* Define to 1 if you have the ANSI C header files. */
724 #undef STDC_HEADERS
725
726+/* Enable extensions on AIX 3, Interix. */
727+#ifndef _ALL_SOURCE
728+# undef _ALL_SOURCE
729+#endif
730+/* Enable GNU extensions on systems that have them. */
731+#ifndef _GNU_SOURCE
732+# undef _GNU_SOURCE
733+#endif
734+/* Enable threading extensions on Solaris. */
735+#ifndef _POSIX_PTHREAD_SEMANTICS
736+# undef _POSIX_PTHREAD_SEMANTICS
737+#endif
738+/* Enable extensions on HP NonStop. */
739+#ifndef _TANDEM_SOURCE
740+# undef _TANDEM_SOURCE
741+#endif
742+/* Enable general extensions on Solaris. */
743+#ifndef __EXTENSIONS__
744+# undef __EXTENSIONS__
745+#endif
746+
747+
748 /* Version number of package */
749 #undef VERSION
750
751@@ -246,6 +271,16 @@
752 `char[]'. */
753 #undef YYTEXT_POINTER
754
755+/* Define to 1 if on MINIX. */
756+#undef _MINIX
757+
758+/* Define to 2 if the system does not provide POSIX.1 features except with
759+ this defined. */
760+#undef _POSIX_1_SOURCE
761+
762+/* Define to 1 if you need to in order for `stat' and other things to work. */
763+#undef _POSIX_SOURCE
764+
765 /* Define to empty if `const' does not conform to ANSI C. */
766 #undef const
767