Codebase list x11-apps / 273caa5
Update xgc to 1.0.4 Robert Hooker 10 years ago
17 changed file(s) with 8001 addition(s) and 832 deletion(s). Raw diff Collapse all Expand all
66 * xconsole 1.0.5
77 * xditview 1.0.3
88 * xedit 1.2.1
9 * xgc 1.0.4
910
1011 -- Robert Hooker <sarvatt@ubuntu.com> Sat, 15 Dec 2012 18:36:39 -0500
1112
0 commit bb714a16b2e79bc391184bafce6046a897baf293
1 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
2 Date: Sat Jan 12 18:18:15 2013 -0800
3
4 xgc 1.0.4
5
6 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7
8 commit c6b6d11bc2bb2cfc877124fe931073f8cebc440a
9 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
10 Date: Sat Jan 12 18:16:38 2013 -0800
11
12 config: Add missing AC_CONFIG_SRCDIR
13
14 Regroup AC statements under the Autoconf initialization section.
15 Regroup AM statements under the Automake initialization section.
16
17 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
18
19 commit 17734f0b7b2d5240c0adb14f7ce03763603fd99c
20 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
21 Date: Wed Dec 28 20:36:26 2011 -0800
22
23 Bounds check value passed to WriteText
24
25 Read outside array bounds (CWE 125): In array dereference of names[type] with index 'type'
26 Array size is 4 elements (of 8 bytes each), index >= 0 and index <= 2147483647
27 at line 155 of text.c in function 'WriteText'.
28
29 [ This bug was found by the Parfait 0.4.2 bug checking tool.
30 For more information see http://labs.oracle.com/projects/parfait/ ]
31
32 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
33
34 commit 84e7552c98096930cef9ed2d1d91f3d8abceeb4e
35 Author: Gaetan Nadon <memsize@videotron.ca>
36 Date: Tue Mar 8 07:36:55 2011 -0500
37
38 config: let Automake handle Lex and Yacc dist and cleaning
39
40 MAINTAINERCLEANFILES are not needed for lex and yacc.
41 Only gram.h needs to be specified as built source.
42
43 Automake generates all the rules to handle building,
44 distribution and cleaning.
45
46 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
47
48 commit 1a25a116e87e8cde709cf1b810ac2371ac485280
49 Author: Gaetan Nadon <memsize@videotron.ca>
50 Date: Wed Jan 19 10:06:56 2011 -0500
51
52 config: move man pages into their own directory
53
54 Use services provided by XORG_MANPAGE_SECTIONS.
55 Use standard Makefile for man pages.
56
57 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
58
59 commit 75d2575ad02fdff4085df16f1e160be718d7b299
60 Author: Gaetan Nadon <memsize@videotron.ca>
61 Date: Wed Jan 12 16:28:02 2011 -0500
62
63 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
64
65 This silences an Autoconf warning
66
67 commit 6adff4c81ca7eef354e54e0fc71645849023bbc3
68 Author: Gaetan Nadon <memsize@videotron.ca>
69 Date: Wed Jan 12 15:29:50 2011 -0500
70
71 config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
72
73 This silences an Automake warning.
74
75 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
76
77 commit ff668395fc408f540604bd534e323b483f52a4ea
78 Author: Gaetan Nadon <memsize@videotron.ca>
79 Date: Mon Nov 1 13:19:23 2010 -0400
80
81 config: replace AC_CHECK_FILE with test -f
82
83 * AC_CHECK_FILE doesn't work for cross compilation
84
85 Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
86
087 commit 76ba19a5b0f1ec9515ac802c3c3efaad87f3079f
188 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
289 Date: Sat Oct 30 16:09:30 2010 -0700
2020
2121 AM_YFLAGS = -d
2222
23 SUBDIRS = man
2324 bin_PROGRAMS = xgc
2425
2526 AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE
4142 text.c \
4243 xgc.h
4344
44 appman_PRE = \
45 xgc.man
46
47 BUILT_SOURCES = gram.h gram.c lex.c
45 BUILT_SOURCES = gram.h
4846 MAINTAINERCLEANFILES = ChangeLog INSTALL
49 MAINTAINERCLEANFILES += $(BUILT_SOURCES)
50
51 gram.h: gram.c
5247
5348 # App default files
5449
6964 Written/Outline \
7065 Written/Widget
7166
72
73 appmandir = $(APP_MAN_DIR)
74
75 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
76
77 EXTRA_DIST += $(appman_PRE)
78 CLEANFILES = $(appman_DATA)
79
80 SUFFIXES = .$(APP_MAN_SUFFIX) .man
81
82 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
83 .man.$(APP_MAN_SUFFIX):
84 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
85
86
8767 .PHONY: ChangeLog INSTALL
8868
8969 INSTALL:
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.2 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
7272 CONFIG_HEADER = config.h
7373 CONFIG_CLEAN_FILES =
7474 CONFIG_CLEAN_VPATH_FILES =
75 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)" \
76 "$(DESTDIR)$(appdefaultdir)"
75 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)"
7776 PROGRAMS = $(bin_PROGRAMS)
7877 am_xgc_OBJECTS = choice.$(OBJEXT) dashlist.$(OBJEXT) getfile.$(OBJEXT) \
7978 gram.$(OBJEXT) interpret.$(OBJEXT) lex.$(OBJEXT) \
10099 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
101100 am__v_CCLD_0 = @echo " CCLD " $@;
102101 @MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
103 LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
102 LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
104103 AM_V_LEX = $(am__v_LEX_$(V))
105104 am__v_LEX_ = $(am__v_LEX_$(AM_DEFAULT_VERBOSITY))
106105 am__v_LEX_0 = @echo " LEX " $@;
107106 YLWRAP = $(top_srcdir)/ylwrap
108107 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
109 YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
108 YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
110109 AM_V_YACC = $(am__v_YACC_$(V))
111110 am__v_YACC_ = $(am__v_YACC_$(AM_DEFAULT_VERBOSITY))
112111 am__v_YACC_0 = @echo " YACC " $@;
115114 am__v_GEN_0 = @echo " GEN " $@;
116115 SOURCES = $(xgc_SOURCES)
117116 DIST_SOURCES = $(xgc_SOURCES)
117 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
118 html-recursive info-recursive install-data-recursive \
119 install-dvi-recursive install-exec-recursive \
120 install-html-recursive install-info-recursive \
121 install-pdf-recursive install-ps-recursive install-recursive \
122 installcheck-recursive installdirs-recursive pdf-recursive \
123 ps-recursive uninstall-recursive
118124 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
119125 am__vpath_adj = case $$p in \
120126 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
136142 am__base_list = \
137143 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
138144 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
139 DATA = $(appman_DATA) $(dist_appdefault_DATA)
145 am__uninstall_files_from_dir = { \
146 test -z "$$files" \
147 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
148 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
149 $(am__cd) "$$dir" && rm -f $$files; }; \
150 }
151 DATA = $(dist_appdefault_DATA)
152 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
153 distclean-recursive maintainer-clean-recursive
154 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
155 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
156 distdir dist dist-all distcheck
140157 ETAGS = etags
141158 CTAGS = ctags
159 DIST_SUBDIRS = $(SUBDIRS)
142160 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
143161 distdir = $(PACKAGE)-$(VERSION)
144162 top_distdir = $(distdir)
146164 { test ! -d "$(distdir)" \
147165 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
148166 && rm -fr "$(distdir)"; }; }
167 am__relativize = \
168 dir0=`pwd`; \
169 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
170 sed_rest='s,^[^/]*/*,,'; \
171 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
172 sed_butlast='s,/*[^/]*$$,,'; \
173 while test -n "$$dir1"; do \
174 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
175 if test "$$first" != "."; then \
176 if test "$$first" = ".."; then \
177 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
178 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
179 else \
180 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
181 if test "$$first2" = "$$first"; then \
182 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
183 else \
184 dir2="../$$dir2"; \
185 fi; \
186 dir0="$$dir0"/"$$first"; \
187 fi; \
188 fi; \
189 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
190 done; \
191 reldir="$$dir2"
149192 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
150193 GZIP_ENV = --best
151194 distuninstallcheck_listfiles = find . -type f -print
195 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
196 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
152197 distcleancheck_listfiles = find . -type f -print
153198 ACLOCAL = @ACLOCAL@
154199 ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
161206 AUTOHEADER = @AUTOHEADER@
162207 AUTOMAKE = @AUTOMAKE@
163208 AWK = @AWK@
209 BASE_CFLAGS = @BASE_CFLAGS@
164210 CC = @CC@
165211 CCDEPMODE = @CCDEPMODE@
166212 CFLAGS = @CFLAGS@
215261 SED = @SED@
216262 SET_MAKE = @SET_MAKE@
217263 SHELL = @SHELL@
264 STRICT_CFLAGS = @STRICT_CFLAGS@
218265 STRIP = @STRIP@
219266 VERSION = @VERSION@
220267 XGC_CFLAGS = @XGC_CFLAGS@
275322 top_builddir = @top_builddir@
276323 top_srcdir = @top_srcdir@
277324 AM_YFLAGS = -d
325 SUBDIRS = man
278326 AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE
279327 xgc_LDADD = $(XGC_LIBS) -lm
280328 xgc_SOURCES = \
293341 text.c \
294342 xgc.h
295343
296 appman_PRE = \
297 xgc.man
298
299 BUILT_SOURCES = gram.h gram.c lex.c
300 MAINTAINERCLEANFILES = ChangeLog INSTALL $(BUILT_SOURCES)
344 BUILT_SOURCES = gram.h
345 MAINTAINERCLEANFILES = ChangeLog INSTALL
301346
302347 # App default files
303348 DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
305350 app-defaults/Xgc \
306351 app-defaults/Xgc-color
307352
308 EXTRA_DIST = tile Bugs Written/FilledRects Written/Interface \
309 Written/Jim Written/Notes Written/Notes2 Written/Outline \
310 Written/Widget $(appman_PRE)
311 appmandir = $(APP_MAN_DIR)
312 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
313 CLEANFILES = $(appman_DATA)
314 SUFFIXES = .$(APP_MAN_SUFFIX) .man
353 EXTRA_DIST = tile Bugs \
354 Written/FilledRects \
355 Written/Interface \
356 Written/Jim \
357 Written/Notes \
358 Written/Notes2 \
359 Written/Outline \
360 Written/Widget
361
315362 all: $(BUILT_SOURCES) config.h
316 $(MAKE) $(AM_MAKEFLAGS) all-am
363 $(MAKE) $(AM_MAKEFLAGS) all-recursive
317364
318365 .SUFFIXES:
319 .SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .l .o .obj .y
320 am--refresh:
366 .SUFFIXES: .c .l .o .obj .y
367 am--refresh: Makefile
321368 @:
322369 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
323370 @for dep in $?; do \
353400 $(am__aclocal_m4_deps):
354401
355402 config.h: stamp-h1
356 @if test ! -f $@; then \
357 rm -f stamp-h1; \
358 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
359 else :; fi
403 @if test ! -f $@; then rm -f stamp-h1; else :; fi
404 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
360405
361406 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
362407 @rm -f stamp-h1
405450
406451 clean-binPROGRAMS:
407452 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
453 gram.h: gram.c
454 @if test ! -f $@; then rm -f gram.c; else :; fi
455 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) gram.c; else :; fi
408456 xgc$(EXEEXT): $(xgc_OBJECTS) $(xgc_DEPENDENCIES)
409457 @rm -f xgc$(EXEEXT)
410458 $(AM_V_CCLD)$(LINK) $(xgc_OBJECTS) $(xgc_LDADD) $(LIBS)
431479 .c.o:
432480 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
433481 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
434 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
435 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
482 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
436483 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
437 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
484 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
438485
439486 .c.obj:
440487 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
441488 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
442 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
443 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
489 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
444490 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
445 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
491 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
446492
447493 .l.c:
448494 $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
449495
450496 .y.c:
451497 $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
452 install-appmanDATA: $(appman_DATA)
453 @$(NORMAL_INSTALL)
454 test -z "$(appmandir)" || $(MKDIR_P) "$(DESTDIR)$(appmandir)"
455 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
456 for p in $$list; do \
457 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
458 echo "$$d$$p"; \
459 done | $(am__base_list) | \
460 while read files; do \
461 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appmandir)'"; \
462 $(INSTALL_DATA) $$files "$(DESTDIR)$(appmandir)" || exit $$?; \
463 done
464
465 uninstall-appmanDATA:
466 @$(NORMAL_UNINSTALL)
467 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
468 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
469 test -n "$$files" || exit 0; \
470 echo " ( cd '$(DESTDIR)$(appmandir)' && rm -f" $$files ")"; \
471 cd "$(DESTDIR)$(appmandir)" && rm -f $$files
472498 install-dist_appdefaultDATA: $(dist_appdefault_DATA)
473499 @$(NORMAL_INSTALL)
474500 test -z "$(appdefaultdir)" || $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)"
486512 @$(NORMAL_UNINSTALL)
487513 @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \
488514 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
489 test -n "$$files" || exit 0; \
490 echo " ( cd '$(DESTDIR)$(appdefaultdir)' && rm -f" $$files ")"; \
491 cd "$(DESTDIR)$(appdefaultdir)" && rm -f $$files
515 dir='$(DESTDIR)$(appdefaultdir)'; $(am__uninstall_files_from_dir)
516
517 # This directory's subdirectories are mostly independent; you can cd
518 # into them and run `make' without going through this Makefile.
519 # To change the values of `make' variables: instead of editing Makefiles,
520 # (1) if the variable is set in `config.status', edit `config.status'
521 # (which will cause the Makefiles to be regenerated when you run `make');
522 # (2) otherwise, pass the desired values on the `make' command line.
523 $(RECURSIVE_TARGETS):
524 @fail= failcom='exit 1'; \
525 for f in x $$MAKEFLAGS; do \
526 case $$f in \
527 *=* | --[!k]*);; \
528 *k*) failcom='fail=yes';; \
529 esac; \
530 done; \
531 dot_seen=no; \
532 target=`echo $@ | sed s/-recursive//`; \
533 list='$(SUBDIRS)'; for subdir in $$list; do \
534 echo "Making $$target in $$subdir"; \
535 if test "$$subdir" = "."; then \
536 dot_seen=yes; \
537 local_target="$$target-am"; \
538 else \
539 local_target="$$target"; \
540 fi; \
541 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
542 || eval $$failcom; \
543 done; \
544 if test "$$dot_seen" = "no"; then \
545 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
546 fi; test -z "$$fail"
547
548 $(RECURSIVE_CLEAN_TARGETS):
549 @fail= failcom='exit 1'; \
550 for f in x $$MAKEFLAGS; do \
551 case $$f in \
552 *=* | --[!k]*);; \
553 *k*) failcom='fail=yes';; \
554 esac; \
555 done; \
556 dot_seen=no; \
557 case "$@" in \
558 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
559 *) list='$(SUBDIRS)' ;; \
560 esac; \
561 rev=''; for subdir in $$list; do \
562 if test "$$subdir" = "."; then :; else \
563 rev="$$subdir $$rev"; \
564 fi; \
565 done; \
566 rev="$$rev ."; \
567 target=`echo $@ | sed s/-recursive//`; \
568 for subdir in $$rev; do \
569 echo "Making $$target in $$subdir"; \
570 if test "$$subdir" = "."; then \
571 local_target="$$target-am"; \
572 else \
573 local_target="$$target"; \
574 fi; \
575 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
576 || eval $$failcom; \
577 done && test -z "$$fail"
578 tags-recursive:
579 list='$(SUBDIRS)'; for subdir in $$list; do \
580 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
581 done
582 ctags-recursive:
583 list='$(SUBDIRS)'; for subdir in $$list; do \
584 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
585 done
492586
493587 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
494588 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
500594 mkid -fID $$unique
501595 tags: TAGS
502596
503 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
597 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
504598 $(TAGS_FILES) $(LISP)
505599 set x; \
506600 here=`pwd`; \
601 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
602 include_option=--etags-include; \
603 empty_fix=.; \
604 else \
605 include_option=--include; \
606 empty_fix=; \
607 fi; \
608 list='$(SUBDIRS)'; for subdir in $$list; do \
609 if test "$$subdir" = .; then :; else \
610 test ! -f $$subdir/TAGS || \
611 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
612 fi; \
613 done; \
507614 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
508615 unique=`for i in $$list; do \
509616 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
522629 fi; \
523630 fi
524631 ctags: CTAGS
525 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
632 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
526633 $(TAGS_FILES) $(LISP)
527634 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
528635 unique=`for i in $$list; do \
574681 || exit 1; \
575682 fi; \
576683 done
684 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
685 if test "$$subdir" = .; then :; else \
686 test -d "$(distdir)/$$subdir" \
687 || $(MKDIR_P) "$(distdir)/$$subdir" \
688 || exit 1; \
689 fi; \
690 done
691 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
692 if test "$$subdir" = .; then :; else \
693 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
694 $(am__relativize); \
695 new_distdir=$$reldir; \
696 dir1=$$subdir; dir2="$(top_distdir)"; \
697 $(am__relativize); \
698 new_top_distdir=$$reldir; \
699 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
700 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
701 ($(am__cd) $$subdir && \
702 $(MAKE) $(AM_MAKEFLAGS) \
703 top_distdir="$$new_top_distdir" \
704 distdir="$$new_distdir" \
705 am__remove_distdir=: \
706 am__skip_length_check=: \
707 am__skip_mode_fix=: \
708 distdir) \
709 || exit 1; \
710 fi; \
711 done
577712 $(MAKE) $(AM_MAKEFLAGS) \
578713 top_distdir="$(top_distdir)" distdir="$(distdir)" \
579714 dist-hook
588723 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
589724 $(am__remove_distdir)
590725 dist-bzip2: distdir
591 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
726 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
592727 $(am__remove_distdir)
593728
594729 dist-lzma: distdir
596731 $(am__remove_distdir)
597732
598733 dist-xz: distdir
599 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
734 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
600735 $(am__remove_distdir)
601736
602737 dist-tarZ: distdir
614749
615750 dist dist-all: distdir
616751 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
617 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
752 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
618753 $(am__remove_distdir)
619754
620755 # This target untars the dist file and tries a VPATH configuration. Then
637772 *.zip*) \
638773 unzip $(distdir).zip ;;\
639774 esac
640 chmod -R a-w $(distdir); chmod a+w $(distdir)
775 chmod -R a-w $(distdir); chmod u+w $(distdir)
641776 mkdir $(distdir)/_build
642777 mkdir $(distdir)/_inst
643778 chmod a-w $(distdir)
647782 && am__cwd=`pwd` \
648783 && $(am__cd) $(distdir)/_build \
649784 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
785 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
650786 $(DISTCHECK_CONFIGURE_FLAGS) \
651787 && $(MAKE) $(AM_MAKEFLAGS) \
652788 && $(MAKE) $(AM_MAKEFLAGS) dvi \
675811 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
676812 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
677813 distuninstallcheck:
678 @$(am__cd) '$(distuninstallcheck_dir)' \
679 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
814 @test -n '$(distuninstallcheck_dir)' || { \
815 echo 'ERROR: trying to run $@ with an empty' \
816 '$$(distuninstallcheck_dir)' >&2; \
817 exit 1; \
818 }; \
819 $(am__cd) '$(distuninstallcheck_dir)' || { \
820 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
821 exit 1; \
822 }; \
823 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
680824 || { echo "ERROR: files left after uninstall:" ; \
681825 if test -n "$(DESTDIR)"; then \
682826 echo " (check DESTDIR support)"; \
694838 exit 1; } >&2
695839 check-am: all-am
696840 check: $(BUILT_SOURCES)
697 $(MAKE) $(AM_MAKEFLAGS) check-am
841 $(MAKE) $(AM_MAKEFLAGS) check-recursive
698842 all-am: Makefile $(PROGRAMS) $(DATA) config.h
699 installdirs:
700 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)" "$(DESTDIR)$(appdefaultdir)"; do \
843 installdirs: installdirs-recursive
844 installdirs-am:
845 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)"; do \
701846 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
702847 done
703848 install: $(BUILT_SOURCES)
704 $(MAKE) $(AM_MAKEFLAGS) install-am
705 install-exec: install-exec-am
706 install-data: install-data-am
707 uninstall: uninstall-am
849 $(MAKE) $(AM_MAKEFLAGS) install-recursive
850 install-exec: install-exec-recursive
851 install-data: install-data-recursive
852 uninstall: uninstall-recursive
708853
709854 install-am: all-am
710855 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
711856
712 installcheck: installcheck-am
857 installcheck: installcheck-recursive
713858 install-strip:
714 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
715 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
716 `test -z '$(STRIP)' || \
717 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
859 if test -z '$(STRIP)'; then \
860 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
861 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
862 install; \
863 else \
864 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
865 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
866 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
867 fi
718868 mostlyclean-generic:
719869
720870 clean-generic:
721 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
722871
723872 distclean-generic:
724873 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
732881 -rm -f lex.c
733882 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
734883 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
735 clean: clean-am
884 clean: clean-recursive
736885
737886 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
738887
739 distclean: distclean-am
888 distclean: distclean-recursive
740889 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
741890 -rm -rf ./$(DEPDIR)
742891 -rm -f Makefile
743892 distclean-am: clean-am distclean-compile distclean-generic \
744893 distclean-hdr distclean-tags
745894
746 dvi: dvi-am
895 dvi: dvi-recursive
747896
748897 dvi-am:
749898
750 html: html-am
899 html: html-recursive
751900
752901 html-am:
753902
754 info: info-am
903 info: info-recursive
755904
756905 info-am:
757906
758 install-data-am: install-appmanDATA install-dist_appdefaultDATA
759
760 install-dvi: install-dvi-am
907 install-data-am: install-dist_appdefaultDATA
908
909 install-dvi: install-dvi-recursive
761910
762911 install-dvi-am:
763912
764913 install-exec-am: install-binPROGRAMS
765914
766 install-html: install-html-am
915 install-html: install-html-recursive
767916
768917 install-html-am:
769918
770 install-info: install-info-am
919 install-info: install-info-recursive
771920
772921 install-info-am:
773922
774923 install-man:
775924
776 install-pdf: install-pdf-am
925 install-pdf: install-pdf-recursive
777926
778927 install-pdf-am:
779928
780 install-ps: install-ps-am
929 install-ps: install-ps-recursive
781930
782931 install-ps-am:
783932
784933 installcheck-am:
785934
786 maintainer-clean: maintainer-clean-am
935 maintainer-clean: maintainer-clean-recursive
787936 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
788937 -rm -rf $(top_srcdir)/autom4te.cache
789938 -rm -rf ./$(DEPDIR)
790939 -rm -f Makefile
791940 maintainer-clean-am: distclean-am maintainer-clean-generic
792941
793 mostlyclean: mostlyclean-am
942 mostlyclean: mostlyclean-recursive
794943
795944 mostlyclean-am: mostlyclean-compile mostlyclean-generic
796945
797 pdf: pdf-am
946 pdf: pdf-recursive
798947
799948 pdf-am:
800949
801 ps: ps-am
950 ps: ps-recursive
802951
803952 ps-am:
804953
805 uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS \
806 uninstall-dist_appdefaultDATA
807
808 .MAKE: all check install install-am install-strip
809
810 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
811 clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
954 uninstall-am: uninstall-binPROGRAMS uninstall-dist_appdefaultDATA
955
956 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
957 ctags-recursive install install-am install-strip \
958 tags-recursive
959
960 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
961 all all-am am--refresh check check-am clean clean-binPROGRAMS \
962 clean-generic ctags ctags-recursive dist dist-all dist-bzip2 \
812963 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
813964 dist-zip distcheck distclean distclean-compile \
814965 distclean-generic distclean-hdr distclean-tags distcleancheck \
815966 distdir distuninstallcheck dvi dvi-am html html-am info \
816 info-am install install-am install-appmanDATA \
817 install-binPROGRAMS install-data install-data-am \
818 install-dist_appdefaultDATA install-dvi install-dvi-am \
819 install-exec install-exec-am install-html install-html-am \
820 install-info install-info-am install-man install-pdf \
821 install-pdf-am install-ps install-ps-am install-strip \
822 installcheck installcheck-am installdirs maintainer-clean \
823 maintainer-clean-generic mostlyclean mostlyclean-compile \
824 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
825 uninstall-am uninstall-appmanDATA uninstall-binPROGRAMS \
826 uninstall-dist_appdefaultDATA
827
828
829 gram.h: gram.c
830
831 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
832 .man.$(APP_MAN_SUFFIX):
833 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
967 info-am install install-am install-binPROGRAMS install-data \
968 install-data-am install-dist_appdefaultDATA install-dvi \
969 install-dvi-am install-exec install-exec-am install-html \
970 install-html-am install-info install-info-am install-man \
971 install-pdf install-pdf-am install-ps install-ps-am \
972 install-strip installcheck installcheck-am installdirs \
973 installdirs-am maintainer-clean maintainer-clean-generic \
974 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
975 ps ps-am tags tags-recursive uninstall uninstall-am \
976 uninstall-binPROGRAMS uninstall-dist_appdefaultDATA
977
834978
835979 .PHONY: ChangeLog INSTALL
836980
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.2 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
1819 If you have problems, you may need to regenerate the build system entirely.
1920 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2021
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23 # Foundation, Inc.
2224 #
2325 # This file is free software; the Free Software Foundation
2426 # gives unlimited permission to copy and/or distribute it,
2527 # with or without modifications, as long as this notice is preserved.
28
29 # serial 1
2630
2731 # AM_AUTOMAKE_VERSION(VERSION)
2832 # ----------------------------
3337 [am__api_version='1.11'
3438 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3539 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
40 m4_if([$1], [1.11.2], [],
3741 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3842 ])
3943
4953 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5054 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5155 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
56 [AM_AUTOMAKE_VERSION([1.11.2])dnl
5357 m4_ifndef([AC_AUTOCONF_VERSION],
5458 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5559 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5660
5761 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5862
59 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
63 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
6064 #
6165 # This file is free software; the Free Software Foundation
6266 # gives unlimited permission to copy and/or distribute it,
6367 # with or without modifications, as long as this notice is preserved.
68
69 # serial 1
6470
6571 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6672 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
143149 Usually this means the macro was only invoked conditionally.]])
144150 fi])])
145151
146 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147 # Free Software Foundation, Inc.
152 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
153 # 2010, 2011 Free Software Foundation, Inc.
148154 #
149155 # This file is free software; the Free Software Foundation
150156 # gives unlimited permission to copy and/or distribute it,
151157 # with or without modifications, as long as this notice is preserved.
152158
153 # serial 10
159 # serial 12
154160
155161 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156162 # written in clear, in which case automake, when reading aclocal.m4,
190196 # instance it was reported that on HP-UX the gcc test will end up
191197 # making a dummy file named `D' -- because `-MD' means `put the output
192198 # in D'.
199 rm -rf conftest.dir
193200 mkdir conftest.dir
194201 # Copy depcomp to subdir because otherwise we won't find it if we're
195202 # using a relative directory.
254261 break
255262 fi
256263 ;;
257 msvisualcpp | msvcmsys)
264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
258265 # This compiler won't grok `-c -o', but also, the minuso test has
259266 # not run yet. These depmodes are late enough in the game, and
260267 # so weak that their functioning should not be impacted.
319326 if test "x$enable_dependency_tracking" != xno; then
320327 am_depcomp="$ac_aux_dir/depcomp"
321328 AMDEPBACKSLASH='\'
329 am__nodep='_no'
322330 fi
323331 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324332 AC_SUBST([AMDEPBACKSLASH])dnl
325333 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
334 AC_SUBST([am__nodep])dnl
335 _AM_SUBST_NOTMAKE([am__nodep])dnl
326336 ])
327337
328338 # Generate code to set up dependency tracking. -*- Autoconf -*-
405415 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406416 ])
407417
408 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
409 # Free Software Foundation, Inc.
410 #
411 # This file is free software; the Free Software Foundation
412 # gives unlimited permission to copy and/or distribute it,
413 # with or without modifications, as long as this notice is preserved.
414
415 # serial 8
416
417 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
418 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
419
420418 # Do all the work for Automake. -*- Autoconf -*-
421419
422420 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
556554 done
557555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
558556
559 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
557 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
558 # Inc.
560559 #
561560 # This file is free software; the Free Software Foundation
562561 # gives unlimited permission to copy and/or distribute it,
563562 # with or without modifications, as long as this notice is preserved.
563
564 # serial 1
564565
565566 # AM_PROG_INSTALL_SH
566567 # ------------------
601602 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
602603 # From Jim Meyering
603604
604 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
605 # Free Software Foundation, Inc.
605 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
606 # 2011 Free Software Foundation, Inc.
606607 #
607608 # This file is free software; the Free Software Foundation
608609 # gives unlimited permission to copy and/or distribute it,
622623 [disable], [m4_define([am_maintainer_other], [enable])],
623624 [m4_define([am_maintainer_other], [enable])
624625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
625 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
626 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
626627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
627628 AC_ARG_ENABLE([maintainer-mode],
628629 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
733734 fi
734735 ])
735736
736 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
737 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
738 # Inc.
737739 #
738740 # This file is free software; the Free Software Foundation
739741 # gives unlimited permission to copy and/or distribute it,
740742 # with or without modifications, as long as this notice is preserved.
743
744 # serial 1
741745
742746 # AM_PROG_MKDIR_P
743747 # ---------------
761765
762766 # Helper functions for option handling. -*- Autoconf -*-
763767
764 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
768 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
769 # Foundation, Inc.
765770 #
766771 # This file is free software; the Free Software Foundation
767772 # gives unlimited permission to copy and/or distribute it,
768773 # with or without modifications, as long as this notice is preserved.
769774
770 # serial 4
775 # serial 5
771776
772777 # _AM_MANGLE_OPTION(NAME)
773778 # -----------------------
775780 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
776781
777782 # _AM_SET_OPTION(NAME)
778 # ------------------------------
783 # --------------------
779784 # Set option NAME. Presently that only means defining a flag for this option.
780785 AC_DEFUN([_AM_SET_OPTION],
781786 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
782787
783788 # _AM_SET_OPTIONS(OPTIONS)
784 # ----------------------------------
789 # ------------------------
785790 # OPTIONS is a space-separated list of Automake options.
786791 AC_DEFUN([_AM_SET_OPTIONS],
787792 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
884889 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
885890 ])
886891
887 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
892 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
888893 #
889894 # This file is free software; the Free Software Foundation
890895 # gives unlimited permission to copy and/or distribute it,
891896 # with or without modifications, as long as this notice is preserved.
897
898 # serial 1
892899
893900 # AM_PROG_INSTALL_STRIP
894901 # ---------------------
912919 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
913920 AC_SUBST([INSTALL_STRIP_PROGRAM])])
914921
915 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
922 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
916923 #
917924 # This file is free software; the Free Software Foundation
918925 # gives unlimited permission to copy and/or distribute it,
919926 # with or without modifications, as long as this notice is preserved.
920927
921 # serial 2
928 # serial 3
922929
923930 # _AM_SUBST_NOTMAKE(VARIABLE)
924931 # ---------------------------
927934 AC_DEFUN([_AM_SUBST_NOTMAKE])
928935
929936 # AM_SUBST_NOTMAKE(VARIABLE)
930 # ---------------------------
937 # --------------------------
931938 # Public sister of _AM_SUBST_NOTMAKE.
932939 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
933940
10271034 AC_SUBST([am__untar])
10281035 ]) # _AM_PROG_TAR
10291036
1037 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1038 #
1039 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1040 #
1041 # This program is free software; you can redistribute it and/or modify
1042 # it under the terms of the GNU General Public License as published by
1043 # the Free Software Foundation; either version 2 of the License, or
1044 # (at your option) any later version.
1045 #
1046 # This program is distributed in the hope that it will be useful, but
1047 # WITHOUT ANY WARRANTY; without even the implied warranty of
1048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1049 # General Public License for more details.
1050 #
1051 # You should have received a copy of the GNU General Public License
1052 # along with this program; if not, write to the Free Software
1053 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1054 #
1055 # As a special exception to the GNU General Public License, if you
1056 # distribute this file as part of a program that contains a
1057 # configuration script generated by Autoconf, you may include it under
1058 # the same distribution terms that you use for the rest of that program.
1059
1060 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
1061 # ----------------------------------
1062 AC_DEFUN([PKG_PROG_PKG_CONFIG],
1063 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1064 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1065 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1066 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1067 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1068 fi
1069 if test -n "$PKG_CONFIG"; then
1070 _pkg_min_version=m4_default([$1], [0.9.0])
1071 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1072 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1073 AC_MSG_RESULT([yes])
1074 else
1075 AC_MSG_RESULT([no])
1076 PKG_CONFIG=""
1077 fi
1078
1079 fi[]dnl
1080 ])# PKG_PROG_PKG_CONFIG
1081
1082 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1083 #
1084 # Check to see whether a particular set of modules exists. Similar
1085 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
1086 #
1087 #
1088 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
1089 # this or PKG_CHECK_MODULES is called, or make sure to call
1090 # PKG_CHECK_EXISTS manually
1091 # --------------------------------------------------------------
1092 AC_DEFUN([PKG_CHECK_EXISTS],
1093 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1094 if test -n "$PKG_CONFIG" && \
1095 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1096 m4_ifval([$2], [$2], [:])
1097 m4_ifvaln([$3], [else
1098 $3])dnl
1099 fi])
1100
1101
1102 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1103 # ---------------------------------------------
1104 m4_define([_PKG_CONFIG],
1105 [if test -n "$$1"; then
1106 pkg_cv_[]$1="$$1"
1107 elif test -n "$PKG_CONFIG"; then
1108 PKG_CHECK_EXISTS([$3],
1109 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1110 [pkg_failed=yes])
1111 else
1112 pkg_failed=untried
1113 fi[]dnl
1114 ])# _PKG_CONFIG
1115
1116 # _PKG_SHORT_ERRORS_SUPPORTED
1117 # -----------------------------
1118 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1119 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1121 _pkg_short_errors_supported=yes
1122 else
1123 _pkg_short_errors_supported=no
1124 fi[]dnl
1125 ])# _PKG_SHORT_ERRORS_SUPPORTED
1126
1127
1128 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1129 # [ACTION-IF-NOT-FOUND])
1130 #
1131 #
1132 # Note that if there is a possibility the first call to
1133 # PKG_CHECK_MODULES might not happen, you should be sure to include an
1134 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1135 #
1136 #
1137 # --------------------------------------------------------------
1138 AC_DEFUN([PKG_CHECK_MODULES],
1139 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1140 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1141 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1142
1143 pkg_failed=no
1144 AC_MSG_CHECKING([for $1])
1145
1146 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1147 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
1148
1149 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1150 and $1[]_LIBS to avoid the need to call pkg-config.
1151 See the pkg-config man page for more details.])
1152
1153 if test $pkg_failed = yes; then
1154 _PKG_SHORT_ERRORS_SUPPORTED
1155 if test $_pkg_short_errors_supported = yes; then
1156 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1157 else
1158 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1159 fi
1160 # Put the nasty error message in config.log where it belongs
1161 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1162
1163 ifelse([$4], , [AC_MSG_ERROR(dnl
1164 [Package requirements ($2) were not met:
1165
1166 $$1_PKG_ERRORS
1167
1168 Consider adjusting the PKG_CONFIG_PATH environment variable if you
1169 installed software in a non-standard prefix.
1170
1171 _PKG_TEXT
1172 ])],
1173 [AC_MSG_RESULT([no])
1174 $4])
1175 elif test $pkg_failed = untried; then
1176 ifelse([$4], , [AC_MSG_FAILURE(dnl
1177 [The pkg-config script could not be found or is too old. Make sure it
1178 is in your PATH or set the PKG_CONFIG environment variable to the full
1179 path to pkg-config.
1180
1181 _PKG_TEXT
1182
1183 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1184 [$4])
1185 else
1186 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1187 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1188 AC_MSG_RESULT([yes])
1189 ifelse([$3], , :, [$3])
1190 fi[]dnl
1191 ])# PKG_CHECK_MODULES
1192
10301193 dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
10311194 dnl
10321195 dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
10661229 # See the "minimum version" comment for each macro you use to see what
10671230 # version you require.
10681231 m4_defun([XORG_MACROS_VERSION],[
1069 m4_define([vers_have], [1.11.0])
1232 m4_define([vers_have], [1.17])
10701233 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
10711234 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
10721235 m4_if(m4_cmp(maj_have, maj_needed), 0,,
10931256 # which is not the best choice for supporting other OS'es, but covers most
10941257 # of the ones we need for now.
10951258 AC_MSG_CHECKING([if $RAWCPP requires -undef])
1096 AC_LANG_CONFTEST([Does cpp redefine unix ?])
1259 AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])])
10971260 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10981261 AC_MSG_RESULT([no])
10991262 else
11111274 rm -f conftest.$ac_ext
11121275
11131276 AC_MSG_CHECKING([if $RAWCPP requires -traditional])
1114 AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
1277 AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])])
11151278 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
11161279 AC_MSG_RESULT([no])
11171280 else
14611624 AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
14621625 ]) # XORG_WITH_XMLTO
14631626
1627 # XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT])
1628 # --------------------------------------------
1629 # Minimum version: 1.12.0
1630 # Minimum version for optional DEFAULT argument: 1.12.0
1631 #
1632 # XSLT (Extensible Stylesheet Language Transformations) is a declarative,
1633 # XML-based language used for the transformation of XML documents.
1634 # The xsltproc command line tool is for applying XSLT stylesheets to XML documents.
1635 # It is used under the cover by xmlto to generate html files from DocBook/XML.
1636 # The XSLT processor is often used as a standalone tool for transformations.
1637 # It should not be assumed that this tool is used only to work with documnetation.
1638 # When DEFAULT is not specified, --with-xsltproc assumes 'auto'.
1639 #
1640 # Interface to module:
1641 # HAVE_XSLTPROC: used in makefiles to conditionally generate documentation
1642 # XSLTPROC: returns the path of the xsltproc program found
1643 # returns the path set by the user in the environment
1644 # --with-xsltproc: 'yes' user instructs the module to use xsltproc
1645 # 'no' user instructs the module not to use xsltproc
1646 # have_xsltproc: returns yes if xsltproc found in PATH or no
1647 #
1648 # If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path.
1649 #
1650 AC_DEFUN([XORG_WITH_XSLTPROC],[
1651 AC_ARG_VAR([XSLTPROC], [Path to xsltproc command])
1652 # Preserves the interface, should it be implemented later
1653 m4_ifval([$1], [m4_warn([syntax], [Checking for xsltproc MIN-VERSION is not implemented])])
1654 m4_define([_defopt], m4_default([$2], [auto]))
1655 AC_ARG_WITH(xsltproc,
1656 AS_HELP_STRING([--with-xsltproc],
1657 [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]),
1658 [use_xsltproc=$withval], [use_xsltproc=]_defopt)
1659 m4_undefine([_defopt])
1660
1661 if test "x$use_xsltproc" = x"auto"; then
1662 AC_PATH_PROG([XSLTPROC], [xsltproc])
1663 if test "x$XSLTPROC" = "x"; then
1664 AC_MSG_WARN([xsltproc not found - cannot transform XML documents])
1665 have_xsltproc=no
1666 else
1667 have_xsltproc=yes
1668 fi
1669 elif test "x$use_xsltproc" = x"yes" ; then
1670 AC_PATH_PROG([XSLTPROC], [xsltproc])
1671 if test "x$XSLTPROC" = "x"; then
1672 AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH])
1673 fi
1674 have_xsltproc=yes
1675 elif test "x$use_xsltproc" = x"no" ; then
1676 if test "x$XSLTPROC" != "x"; then
1677 AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified])
1678 fi
1679 have_xsltproc=no
1680 else
1681 AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no'])
1682 fi
1683
1684 AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes])
1685 ]) # XORG_WITH_XSLTPROC
1686
1687 # XORG_WITH_PERL([MIN-VERSION], [DEFAULT])
1688 # ----------------------------------------
1689 # Minimum version: 1.15.0
1690 #
1691 # PERL (Practical Extraction and Report Language) is a language optimized for
1692 # scanning arbitrary text files, extracting information from those text files,
1693 # and printing reports based on that information.
1694 #
1695 # When DEFAULT is not specified, --with-perl assumes 'auto'.
1696 #
1697 # Interface to module:
1698 # HAVE_PERL: used in makefiles to conditionally scan text files
1699 # PERL: returns the path of the perl program found
1700 # returns the path set by the user in the environment
1701 # --with-perl: 'yes' user instructs the module to use perl
1702 # 'no' user instructs the module not to use perl
1703 # have_perl: returns yes if perl found in PATH or no
1704 #
1705 # If the user sets the value of PERL, AC_PATH_PROG skips testing the path.
1706 #
1707 AC_DEFUN([XORG_WITH_PERL],[
1708 AC_ARG_VAR([PERL], [Path to perl command])
1709 # Preserves the interface, should it be implemented later
1710 m4_ifval([$1], [m4_warn([syntax], [Checking for perl MIN-VERSION is not implemented])])
1711 m4_define([_defopt], m4_default([$2], [auto]))
1712 AC_ARG_WITH(perl,
1713 AS_HELP_STRING([--with-perl],
1714 [Use perl for extracting information from files (default: ]_defopt[)]),
1715 [use_perl=$withval], [use_perl=]_defopt)
1716 m4_undefine([_defopt])
1717
1718 if test "x$use_perl" = x"auto"; then
1719 AC_PATH_PROG([PERL], [perl])
1720 if test "x$PERL" = "x"; then
1721 AC_MSG_WARN([perl not found - cannot extract information and report])
1722 have_perl=no
1723 else
1724 have_perl=yes
1725 fi
1726 elif test "x$use_perl" = x"yes" ; then
1727 AC_PATH_PROG([PERL], [perl])
1728 if test "x$PERL" = "x"; then
1729 AC_MSG_ERROR([--with-perl=yes specified but perl not found in PATH])
1730 fi
1731 have_perl=yes
1732 elif test "x$use_perl" = x"no" ; then
1733 if test "x$PERL" != "x"; then
1734 AC_MSG_WARN([ignoring PERL environment variable since --with-perl=no was specified])
1735 fi
1736 have_perl=no
1737 else
1738 AC_MSG_ERROR([--with-perl expects 'yes' or 'no'])
1739 fi
1740
1741 AM_CONDITIONAL([HAVE_PERL], [test "$have_perl" = yes])
1742 ]) # XORG_WITH_PERL
1743
14641744 # XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT])
14651745 # ----------------
14661746 # Minimum version: 1.5.0
17061986 AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes])
17071987 ]) # XORG_WITH_GROFF
17081988
1709 # XORG_WITH_FOP([DEFAULT])
1710 # ----------------
1989 # XORG_WITH_FOP([MIN-VERSION], [DEFAULT])
1990 # ---------------------------------------
17111991 # Minimum version: 1.6.0
17121992 # Minimum version for optional DEFAULT argument: 1.11.0
1993 # Minimum version for optional MIN-VERSION argument: 1.15.0
17131994 #
17141995 # Documentation tools are not always available on all platforms and sometimes
17151996 # not at the appropriate level. This macro enables a module to test for the
17292010 #
17302011 AC_DEFUN([XORG_WITH_FOP],[
17312012 AC_ARG_VAR([FOP], [Path to fop command])
1732 m4_define([_defopt], m4_default([$1], [auto]))
2013 m4_define([_defopt], m4_default([$2], [auto]))
17332014 AC_ARG_WITH(fop,
17342015 AS_HELP_STRING([--with-fop],
17352016 [Use fop to regenerate documentation (default: ]_defopt[)]),
17582039 else
17592040 AC_MSG_ERROR([--with-fop expects 'yes' or 'no'])
17602041 fi
2042
2043 # Test for a minimum version of fop, if provided.
2044 m4_ifval([$1],
2045 [if test "$have_fop" = yes; then
2046 # scrape the fop version
2047 AC_MSG_CHECKING([for fop minimum version])
2048 fop_version=`$FOP -version 2>/dev/null | cut -d' ' -f3`
2049 AC_MSG_RESULT([$fop_version])
2050 AS_VERSION_COMPARE([$fop_version], [$1],
2051 [if test "x$use_fop" = xauto; then
2052 AC_MSG_WARN([fop version $fop_version found, but $1 needed])
2053 have_fop=no
2054 else
2055 AC_MSG_ERROR([fop version $fop_version found, but $1 needed])
2056 fi])
2057 fi])
17612058 AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
17622059 ]) # XORG_WITH_FOP
17632060
18402137 # parm1: specify the default value, yes or no.
18412138 #
18422139 AC_DEFUN([XORG_ENABLE_DOCS],[
1843 m4_define([default], m4_default([$1], [yes]))
2140 m4_define([docs_default], m4_default([$1], [yes]))
18442141 AC_ARG_ENABLE(docs,
18452142 AS_HELP_STRING([--enable-docs],
1846 [Enable building the documentation (default: ]default[)]),
1847 [build_docs=$enableval], [build_docs=]default)
1848 m4_undefine([default])
2143 [Enable building the documentation (default: ]docs_default[)]),
2144 [build_docs=$enableval], [build_docs=]docs_default)
2145 m4_undefine([docs_default])
18492146 AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
18502147 AC_MSG_CHECKING([whether to build documentation])
18512148 AC_MSG_RESULT([$build_docs])
19172214 AC_MSG_RESULT([$build_specs])
19182215 ]) # XORG_ENABLE_SPECS
19192216
2217 # XORG_ENABLE_UNIT_TESTS (enable_unit_tests=auto)
2218 # ----------------------------------------------
2219 # Minimum version: 1.13.0
2220 #
2221 # This macro enables a builder to enable/disable unit testing
2222 # It makes no assumption about the test cases implementation
2223 # Test cases may or may not use Automake "Support for test suites"
2224 # They may or may not use the software utility library GLib
2225 #
2226 # When used in conjunction with XORG_WITH_GLIB, use both AM_CONDITIONAL
2227 # ENABLE_UNIT_TESTS and HAVE_GLIB. Not all unit tests may use glib.
2228 # The variable enable_unit_tests is used by other macros in this file.
2229 #
2230 # Interface to module:
2231 # ENABLE_UNIT_TESTS: used in makefiles to conditionally build tests
2232 # enable_unit_tests: used in configure.ac for additional configuration
2233 # --enable-unit-tests: 'yes' user instructs the module to build tests
2234 # 'no' user instructs the module not to build tests
2235 # parm1: specify the default value, yes or no.
2236 #
2237 AC_DEFUN([XORG_ENABLE_UNIT_TESTS],[
2238 AC_BEFORE([$0], [XORG_WITH_GLIB])
2239 AC_BEFORE([$0], [XORG_LD_WRAP])
2240 AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS])
2241 m4_define([_defopt], m4_default([$1], [auto]))
2242 AC_ARG_ENABLE(unit-tests, AS_HELP_STRING([--enable-unit-tests],
2243 [Enable building unit test cases (default: ]_defopt[)]),
2244 [enable_unit_tests=$enableval], [enable_unit_tests=]_defopt)
2245 m4_undefine([_defopt])
2246 AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "x$enable_unit_tests" != xno])
2247 AC_MSG_CHECKING([whether to build unit test cases])
2248 AC_MSG_RESULT([$enable_unit_tests])
2249 ]) # XORG_ENABLE_UNIT_TESTS
2250
2251 # XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto)
2252 # ------------------------------------------------------
2253 # Minimum version: 1.17.0
2254 #
2255 # This macro enables a builder to enable/disable integration testing
2256 # It makes no assumption about the test cases' implementation
2257 # Test cases may or may not use Automake "Support for test suites"
2258 #
2259 # Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support
2260 # usually requires less dependencies and may be built and run under less
2261 # stringent environments than integration tests.
2262 #
2263 # Interface to module:
2264 # ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests
2265 # enable_integration_tests: used in configure.ac for additional configuration
2266 # --enable-integration-tests: 'yes' user instructs the module to build tests
2267 # 'no' user instructs the module not to build tests
2268 # parm1: specify the default value, yes or no.
2269 #
2270 AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[
2271 AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS])
2272 m4_define([_defopt], m4_default([$1], [auto]))
2273 AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests],
2274 [Enable building integration test cases (default: ]_defopt[)]),
2275 [enable_integration_tests=$enableval],
2276 [enable_integration_tests=]_defopt)
2277 m4_undefine([_defopt])
2278 AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS],
2279 [test "x$enable_integration_tests" != xno])
2280 AC_MSG_CHECKING([whether to build unit test cases])
2281 AC_MSG_RESULT([$enable_integration_tests])
2282 ]) # XORG_ENABLE_INTEGRATION_TESTS
2283
2284 # XORG_WITH_GLIB([MIN-VERSION], [DEFAULT])
2285 # ----------------------------------------
2286 # Minimum version: 1.13.0
2287 #
2288 # GLib is a library which provides advanced data structures and functions.
2289 # This macro enables a module to test for the presence of Glib.
2290 #
2291 # When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing.
2292 # Otherwise the value of $enable_unit_tests is blank.
2293 #
2294 # Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit
2295 # test support usually requires less dependencies and may be built and run under
2296 # less stringent environments than integration tests.
2297 #
2298 # Interface to module:
2299 # HAVE_GLIB: used in makefiles to conditionally build targets
2300 # with_glib: used in configure.ac to know if GLib has been found
2301 # --with-glib: 'yes' user instructs the module to use glib
2302 # 'no' user instructs the module not to use glib
2303 #
2304 AC_DEFUN([XORG_WITH_GLIB],[
2305 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2306 m4_define([_defopt], m4_default([$2], [auto]))
2307 AC_ARG_WITH(glib, AS_HELP_STRING([--with-glib],
2308 [Use GLib library for unit testing (default: ]_defopt[)]),
2309 [with_glib=$withval], [with_glib=]_defopt)
2310 m4_undefine([_defopt])
2311
2312 have_glib=no
2313 # Do not probe GLib if user explicitly disabled unit testing
2314 if test "x$enable_unit_tests" != x"no"; then
2315 # Do not probe GLib if user explicitly disabled it
2316 if test "x$with_glib" != x"no"; then
2317 m4_ifval(
2318 [$1],
2319 [PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $1], [have_glib=yes], [have_glib=no])],
2320 [PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])]
2321 )
2322 fi
2323 fi
2324
2325 # Not having GLib when unit testing has been explicitly requested is an error
2326 if test "x$enable_unit_tests" = x"yes"; then
2327 if test "x$have_glib" = x"no"; then
2328 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found])
2329 fi
2330 fi
2331
2332 # Having unit testing disabled when GLib has been explicitly requested is an error
2333 if test "x$enable_unit_tests" = x"no"; then
2334 if test "x$with_glib" = x"yes"; then
2335 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found])
2336 fi
2337 fi
2338
2339 # Not having GLib when it has been explicitly requested is an error
2340 if test "x$with_glib" = x"yes"; then
2341 if test "x$have_glib" = x"no"; then
2342 AC_MSG_ERROR([--with-glib=yes specified but glib-2.0 not found])
2343 fi
2344 fi
2345
2346 AM_CONDITIONAL([HAVE_GLIB], [test "$have_glib" = yes])
2347 ]) # XORG_WITH_GLIB
2348
2349 # XORG_LD_WRAP([required|optional])
2350 # ---------------------------------
2351 # Minimum version: 1.13.0
2352 #
2353 # Check if linker supports -wrap, passed via compiler flags
2354 #
2355 # When used with ENABLE_UNIT_TESTS, it is assumed -wrap is used for unit testing.
2356 # Otherwise the value of $enable_unit_tests is blank.
2357 #
2358 # Argument added in 1.16.0 - default is "required", to match existing behavior
2359 # of returning an error if enable_unit_tests is yes, and ld -wrap is not
2360 # available, an argument of "optional" allows use when some unit tests require
2361 # ld -wrap and others do not.
2362 #
2363 AC_DEFUN([XORG_LD_WRAP],[
2364 XORG_CHECK_LINKER_FLAGS([-Wl,-wrap,exit],[have_ld_wrap=yes],[have_ld_wrap=no],
2365 [AC_LANG_PROGRAM([#include <stdlib.h>
2366 void __wrap_exit(int status) { return; }],
2367 [exit(0);])])
2368 # Not having ld wrap when unit testing has been explicitly requested is an error
2369 if test "x$enable_unit_tests" = x"yes" -a "x$1" != "xoptional"; then
2370 if test "x$have_ld_wrap" = x"no"; then
2371 AC_MSG_ERROR([--enable-unit-tests=yes specified but ld -wrap support is not available])
2372 fi
2373 fi
2374 AM_CONDITIONAL([HAVE_LD_WRAP], [test "$have_ld_wrap" = yes])
2375 #
2376 ]) # XORG_LD_WRAP
2377
2378 # XORG_CHECK_LINKER_FLAGS
2379 # -----------------------
2380 # SYNOPSIS
2381 #
2382 # XORG_CHECK_LINKER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE], [PROGRAM-SOURCE])
2383 #
2384 # DESCRIPTION
2385 #
2386 # Check whether the given linker FLAGS work with the current language's
2387 # linker, or whether they give an error.
2388 #
2389 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
2390 # success/failure.
2391 #
2392 # PROGRAM-SOURCE is the program source to link with, if needed
2393 #
2394 # NOTE: Based on AX_CHECK_COMPILER_FLAGS.
2395 #
2396 # LICENSE
2397 #
2398 # Copyright (c) 2009 Mike Frysinger <vapier@gentoo.org>
2399 # Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu>
2400 # Copyright (c) 2009 Matteo Frigo
2401 #
2402 # This program is free software: you can redistribute it and/or modify it
2403 # under the terms of the GNU General Public License as published by the
2404 # Free Software Foundation, either version 3 of the License, or (at your
2405 # option) any later version.
2406 #
2407 # This program is distributed in the hope that it will be useful, but
2408 # WITHOUT ANY WARRANTY; without even the implied warranty of
2409 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
2410 # Public License for more details.
2411 #
2412 # You should have received a copy of the GNU General Public License along
2413 # with this program. If not, see <http://www.gnu.org/licenses/>.
2414 #
2415 # As a special exception, the respective Autoconf Macro's copyright owner
2416 # gives unlimited permission to copy, distribute and modify the configure
2417 # scripts that are the output of Autoconf when processing the Macro. You
2418 # need not follow the terms of the GNU General Public License when using
2419 # or distributing such scripts, even though portions of the text of the
2420 # Macro appear in them. The GNU General Public License (GPL) does govern
2421 # all other use of the material that constitutes the Autoconf Macro.
2422 #
2423 # This special exception to the GPL applies to versions of the Autoconf
2424 # Macro released by the Autoconf Archive. When you make and distribute a
2425 # modified version of the Autoconf Macro, you may extend this special
2426 # exception to the GPL to apply to your modified version as well.#
2427 AC_DEFUN([XORG_CHECK_LINKER_FLAGS],
2428 [AC_MSG_CHECKING([whether the linker accepts $1])
2429 dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
2430 AS_LITERAL_IF([$1],
2431 [AC_CACHE_VAL(AS_TR_SH(xorg_cv_linker_flags_[$1]), [
2432 ax_save_FLAGS=$LDFLAGS
2433 LDFLAGS="$1"
2434 AC_LINK_IFELSE([m4_default([$4],[AC_LANG_PROGRAM()])],
2435 AS_TR_SH(xorg_cv_linker_flags_[$1])=yes,
2436 AS_TR_SH(xorg_cv_linker_flags_[$1])=no)
2437 LDFLAGS=$ax_save_FLAGS])],
2438 [ax_save_FLAGS=$LDFLAGS
2439 LDFLAGS="$1"
2440 AC_LINK_IFELSE([AC_LANG_PROGRAM()],
2441 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=yes,
2442 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=no)
2443 LDFLAGS=$ax_save_FLAGS])
2444 eval xorg_check_linker_flags=$AS_TR_SH(xorg_cv_linker_flags_[$1])
2445 AC_MSG_RESULT($xorg_check_linker_flags)
2446 if test "x$xorg_check_linker_flags" = xyes; then
2447 m4_default([$2], :)
2448 else
2449 m4_default([$3], :)
2450 fi
2451 ]) # XORG_CHECK_LINKER_FLAGS
2452
2453 # XORG_MEMORY_CHECK_FLAGS
2454 # -----------------------
2455 # Minimum version: 1.16.0
2456 #
2457 # This macro attempts to find appropriate memory checking functionality
2458 # for various platforms which unit testing code may use to catch various
2459 # forms of memory allocation and access errors in testing.
2460 #
2461 # Interface to module:
2462 # XORG_MALLOC_DEBUG_ENV - environment variables to set to enable debugging
2463 # Usually added to TESTS_ENVIRONMENT in Makefile.am
2464 #
2465 # If the user sets the value of XORG_MALLOC_DEBUG_ENV, it is used verbatim.
2466 #
2467 AC_DEFUN([XORG_MEMORY_CHECK_FLAGS],[
2468
2469 AC_REQUIRE([AC_CANONICAL_HOST])
2470 AC_ARG_VAR([XORG_MALLOC_DEBUG_ENV],
2471 [Environment variables to enable memory checking in tests])
2472
2473 # Check for different types of support on different platforms
2474 case $host_os in
2475 solaris*)
2476 AC_CHECK_LIB([umem], [umem_alloc],
2477 [malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'])
2478 ;;
2479 *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
2480 # both directly and inverted, so should not be 0 or 255.
2481 malloc_debug_env='MALLOC_PERTURB_=15'
2482 ;;
2483 darwin*)
2484 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
2485 ;;
2486 *bsd*)
2487 malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
2488 ;;
2489 esac
2490
2491 # User supplied flags override default flags
2492 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
2493 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
2494 fi
2495
2496 AC_SUBST([XORG_MALLOC_DEBUG_ENV],[$malloc_debug_env])
2497 ]) # XORG_WITH_LINT
2498
19202499 # XORG_CHECK_MALLOC_ZERO
19212500 # ----------------------
19222501 # Minimum version: 1.0.0
19332512
19342513 AC_MSG_CHECKING([whether malloc(0) returns NULL])
19352514 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1936 AC_RUN_IFELSE([
1937 char *malloc();
1938 char *realloc();
1939 char *calloc();
1940 main() {
2515 AC_RUN_IFELSE([AC_LANG_PROGRAM([
2516 #include <stdlib.h>
2517 ],[
19412518 char *m0, *r0, *c0, *p;
19422519 m0 = malloc(0);
19432520 p = malloc(10);
19442521 r0 = realloc(p,0);
1945 c0 = calloc(0);
1946 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
1947 }],
2522 c0 = calloc(0,10);
2523 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
2524 ])],
19482525 [MALLOC_ZERO_RETURNS_NULL=yes],
19492526 [MALLOC_ZERO_RETURNS_NULL=no],
19502527 [MALLOC_ZERO_RETURNS_NULL=yes])
20702647
20712648 ]) # XORG_LINT_LIBRARY
20722649
2650 # XORG_COMPILER_BRAND
2651 # -------------------
2652 # Minimum version: 1.14.0
2653 #
2654 # Checks for various brands of compilers and sets flags as appropriate:
2655 # GNU gcc - relies on AC_PROG_CC (via AC_PROG_CC_C99) to set GCC to "yes"
2656 # GNU g++ - relies on AC_PROG_CXX to set GXX to "yes"
2657 # clang compiler - sets CLANGCC to "yes"
2658 # Intel compiler - sets INTELCC to "yes"
2659 # Sun/Oracle Solaris Studio cc - sets SUNCC to "yes"
2660 #
2661 AC_DEFUN([XORG_COMPILER_BRAND], [
2662 AC_LANG_CASE(
2663 [C], [
2664 AC_REQUIRE([AC_PROG_CC_C99])
2665 ],
2666 [C++], [
2667 AC_REQUIRE([AC_PROG_CXX])
2668 ]
2669 )
2670 AC_CHECK_DECL([__clang__], [CLANGCC="yes"], [CLANGCC="no"])
2671 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
2672 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2673 ]) # XORG_COMPILER_BRAND
2674
2675 # XORG_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...])
2676 # ---------------
2677 # Minimum version: 1.16.0
2678 #
2679 # Test if the compiler works when passed the given flag as a command line argument.
2680 # If it succeeds, the flag is appeneded to the given variable. If not, it tries the
2681 # next flag in the list until there are no more options.
2682 #
2683 # Note that this does not guarantee that the compiler supports the flag as some
2684 # compilers will simply ignore arguments that they do not understand, but we do
2685 # attempt to weed out false positives by using -Werror=unknown-warning-option and
2686 # -Werror=unused-command-line-argument
2687 #
2688 AC_DEFUN([XORG_TESTSET_CFLAG], [
2689 m4_if([$#], 0, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])])
2690 m4_if([$#], 1, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])])
2691
2692 AC_LANG_COMPILER_REQUIRE
2693
2694 AC_LANG_CASE(
2695 [C], [
2696 AC_REQUIRE([AC_PROG_CC_C99])
2697 define([PREFIX], [C])
2698 define([CACHE_PREFIX], [cc])
2699 define([COMPILER], [$CC])
2700 ],
2701 [C++], [
2702 define([PREFIX], [CXX])
2703 define([CACHE_PREFIX], [cxx])
2704 define([COMPILER], [$CXX])
2705 ]
2706 )
2707
2708 [xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]"
2709
2710 if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then
2711 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2712 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option],
2713 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option],
2714 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
2715 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes],
2716 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no]))
2717 [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option]
2718 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2719 fi
2720
2721 if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then
2722 if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then
2723 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2724 fi
2725 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument"
2726 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument],
2727 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument],
2728 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
2729 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes],
2730 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no]))
2731 [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument]
2732 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2733 fi
2734
2735 found="no"
2736 m4_foreach([flag], m4_cdr($@), [
2737 if test $found = "no" ; then
2738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
2739 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
2740 fi
2741
2742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
2743 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument"
2744 fi
2745
2746 PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag["
2747
2748 dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname
2749 AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[])
2750 cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[])
2751 AC_CACHE_VAL($cacheid,
2752 [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])],
2753 [eval $cacheid=yes],
2754 [eval $cacheid=no])])
2755
2756 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]"
2757
2758 eval supported=\$$cacheid
2759 AC_MSG_RESULT([$supported])
2760 if test "$supported" = "yes" ; then
2761 $1="$$1 ]flag["
2762 found="yes"
2763 fi
2764 fi
2765 ])
2766 ]) # XORG_TESTSET_CFLAG
2767
2768 # XORG_COMPILER_FLAGS
2769 # ---------------
2770 # Minimum version: 1.16.0
2771 #
2772 # Defines BASE_CFLAGS or BASE_CXXFLAGS to contain a set of command line
2773 # arguments supported by the selected compiler which do NOT alter the generated
2774 # code. These arguments will cause the compiler to print various warnings
2775 # during compilation AND turn a conservative set of warnings into errors.
2776 #
2777 # The set of flags supported by BASE_CFLAGS and BASE_CXXFLAGS will grow in
2778 # future versions of util-macros as options are added to new compilers.
2779 #
2780 AC_DEFUN([XORG_COMPILER_FLAGS], [
2781 AC_REQUIRE([XORG_COMPILER_BRAND])
2782
2783 AC_ARG_ENABLE(selective-werror,
2784 AS_HELP_STRING([--disable-selective-werror],
2785 [Turn off selective compiler errors. (default: enabled)]),
2786 [SELECTIVE_WERROR=$enableval],
2787 [SELECTIVE_WERROR=yes])
2788
2789 AC_LANG_CASE(
2790 [C], [
2791 define([PREFIX], [C])
2792 ],
2793 [C++], [
2794 define([PREFIX], [CXX])
2795 ]
2796 )
2797 # -v is too short to test reliably with XORG_TESTSET_CFLAG
2798 if test "x$SUNCC" = "xyes"; then
2799 [BASE_]PREFIX[FLAGS]="-v"
2800 else
2801 [BASE_]PREFIX[FLAGS]=""
2802 fi
2803
2804 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
2805 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wall])
2806 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-arith])
2807 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-declarations])
2808 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wformat=2], [-Wformat])
2809
2810 AC_LANG_CASE(
2811 [C], [
2812 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wstrict-prototypes])
2813 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
2814 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
2815 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
2816 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition])
2817 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
2818 ]
2819 )
2820
2821 # This chunk adds additional warnings that could catch undesired effects.
2822 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
2823 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
2824 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
2825 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
2826 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
2827 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
2828 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
2829
2830 # These are currently disabled because they are noisy. They will be enabled
2831 # in the future once the codebase is sufficiently modernized to silence
2832 # them. For now, I don't want them to drown out the other warnings.
2833 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
2834 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
2835 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
2836
2837 # Turn some warnings into errors, so we don't accidently get successful builds
2838 # when there are problems that should be fixed.
2839
2840 if test "x$SELECTIVE_WERROR" = "xyes" ; then
2841 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=implicit], [-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED])
2842 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=nonnull])
2843 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=init-self])
2844 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=main])
2845 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=missing-braces])
2846 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=sequence-point])
2847 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=return-type], [-errwarn=E_FUNC_HAS_NO_RETURN_STMT])
2848 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=trigraphs])
2849 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=array-bounds])
2850 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=write-strings])
2851 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=address])
2852 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=int-to-pointer-cast], [-errwarn=E_BAD_PTR_INT_COMBINATION])
2853 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=pointer-to-int-cast]) # Also -errwarn=E_BAD_PTR_INT_COMBINATION
2854 else
2855 AC_MSG_WARN([You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT])
2856 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wimplicit])
2857 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnonnull])
2858 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Winit-self])
2859 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmain])
2860 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-braces])
2861 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wsequence-point])
2862 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wreturn-type])
2863 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wtrigraphs])
2864 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Warray-bounds])
2865 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wwrite-strings])
2866 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Waddress])
2867 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wint-to-pointer-cast])
2868 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-to-int-cast])
2869 fi
2870
2871 AC_SUBST([BASE_]PREFIX[FLAGS])
2872 ]) # XORG_COMPILER_FLAGS
2873
20732874 # XORG_CWARNFLAGS
20742875 # ---------------
20752876 # Minimum version: 1.2.0
2877 # Deprecated since: 1.16.0 (Use XORG_COMPILER_FLAGS instead)
20762878 #
20772879 # Defines CWARNFLAGS to enable C compiler warnings.
20782880 #
2881 # This function is deprecated because it defines -fno-strict-aliasing
2882 # which alters the code generated by the compiler. If -fno-strict-aliasing
2883 # is needed, then it should be added explicitly in the module when
2884 # it is updated to use BASE_CFLAGS.
2885 #
20792886 AC_DEFUN([XORG_CWARNFLAGS], [
2080 AC_REQUIRE([AC_PROG_CC_C99])
2081 if test "x$GCC" = xyes ; then
2082 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
2083 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
2084 -Wbad-function-cast -Wformat=2"
2085 case `$CC -dumpversion` in
2086 3.4.* | 4.*)
2087 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
2088 ;;
2089 esac
2090 else
2091 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2092 if test "x$SUNCC" = "xyes"; then
2093 CWARNFLAGS="-v"
2094 fi
2095 fi
2096 AC_SUBST(CWARNFLAGS)
2887 AC_REQUIRE([XORG_COMPILER_FLAGS])
2888 AC_REQUIRE([XORG_COMPILER_BRAND])
2889 AC_LANG_CASE(
2890 [C], [
2891 CWARNFLAGS="$BASE_CFLAGS"
2892 if test "x$GCC" = xyes ; then
2893 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
2894 fi
2895 AC_SUBST(CWARNFLAGS)
2896 ]
2897 )
20972898 ]) # XORG_CWARNFLAGS
20982899
20992900 # XORG_STRICT_OPTION
21002901 # -----------------------
21012902 # Minimum version: 1.3.0
21022903 #
2103 # Add configure option to enable strict compilation
2904 # Add configure option to enable strict compilation flags, such as treating
2905 # warnings as fatal errors.
2906 # If --enable-strict-compilation is passed to configure, adds strict flags to
2907 # $BASE_CFLAGS or $BASE_CXXFLAGS and the deprecated $CWARNFLAGS.
2908 #
2909 # Starting in 1.14.0 also exports $STRICT_CFLAGS for use in other tests or
2910 # when strict compilation is unconditionally desired.
21042911 AC_DEFUN([XORG_STRICT_OPTION], [
2105 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
2106 AC_REQUIRE([AC_PROG_CC_C99])
21072912 AC_REQUIRE([XORG_CWARNFLAGS])
2913 AC_REQUIRE([XORG_COMPILER_FLAGS])
21082914
21092915 AC_ARG_ENABLE(strict-compilation,
21102916 AS_HELP_STRING([--enable-strict-compilation],
21112917 [Enable all warnings from compiler and make them errors (default: disabled)]),
21122918 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
2919
2920 AC_LANG_CASE(
2921 [C], [
2922 define([PREFIX], [C])
2923 ],
2924 [C++], [
2925 define([PREFIX], [CXX])
2926 ]
2927 )
2928
2929 [STRICT_]PREFIX[FLAGS]=""
2930 XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-pedantic])
2931 XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror], [-errwarn])
2932
2933 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
2934 # activate it with -Werror, so we add it here explicitly.
2935 XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror=attributes])
2936
21132937 if test "x$STRICT_COMPILE" = "xyes"; then
2114 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
2115 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
2116 if test "x$GCC" = xyes ; then
2117 STRICT_CFLAGS="-pedantic -Werror"
2118 elif test "x$SUNCC" = "xyes"; then
2119 STRICT_CFLAGS="-errwarn"
2120 elif test "x$INTELCC" = "xyes"; then
2121 STRICT_CFLAGS="-Werror"
2122 fi
2123 fi
2124 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
2125 AC_SUBST([CWARNFLAGS])
2938 [BASE_]PREFIX[FLAGS]="$[BASE_]PREFIX[FLAGS] $[STRICT_]PREFIX[FLAGS]"
2939 AC_LANG_CASE([C], [CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"])
2940 fi
2941 AC_SUBST([STRICT_]PREFIX[FLAGS])
2942 AC_SUBST([BASE_]PREFIX[FLAGS])
2943 AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS]))
21262944 ]) # XORG_STRICT_OPTION
21272945
21282946 # XORG_DEFAULT_OPTIONS
21332951 #
21342952 AC_DEFUN([XORG_DEFAULT_OPTIONS], [
21352953 AC_REQUIRE([AC_PROG_INSTALL])
2954 XORG_COMPILER_FLAGS
21362955 XORG_CWARNFLAGS
21372956 XORG_STRICT_OPTION
21382957 XORG_RELEASE_VERSION
22243043 AC_SUBST([CHANGELOG_CMD])
22253044 ]) # XORG_CHANGELOG
22263045
2227 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2228 #
2229 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
2230 #
2231 # This program is free software; you can redistribute it and/or modify
2232 # it under the terms of the GNU General Public License as published by
2233 # the Free Software Foundation; either version 2 of the License, or
2234 # (at your option) any later version.
2235 #
2236 # This program is distributed in the hope that it will be useful, but
2237 # WITHOUT ANY WARRANTY; without even the implied warranty of
2238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2239 # General Public License for more details.
2240 #
2241 # You should have received a copy of the GNU General Public License
2242 # along with this program; if not, write to the Free Software
2243 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2244 #
2245 # As a special exception to the GNU General Public License, if you
2246 # distribute this file as part of a program that contains a
2247 # configuration script generated by Autoconf, you may include it under
2248 # the same distribution terms that you use for the rest of that program.
2249
2250 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
2251 # ----------------------------------
2252 AC_DEFUN([PKG_PROG_PKG_CONFIG],
2253 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
2254 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
2255 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
2256 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2257 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
2258 fi
2259 if test -n "$PKG_CONFIG"; then
2260 _pkg_min_version=m4_default([$1], [0.9.0])
2261 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
2262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2263 AC_MSG_RESULT([yes])
2264 else
2265 AC_MSG_RESULT([no])
2266 PKG_CONFIG=""
2267 fi
2268
2269 fi[]dnl
2270 ])# PKG_PROG_PKG_CONFIG
2271
2272 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2273 #
2274 # Check to see whether a particular set of modules exists. Similar
2275 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
2276 #
2277 #
2278 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
2279 # this or PKG_CHECK_MODULES is called, or make sure to call
2280 # PKG_CHECK_EXISTS manually
2281 # --------------------------------------------------------------
2282 AC_DEFUN([PKG_CHECK_EXISTS],
2283 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2284 if test -n "$PKG_CONFIG" && \
2285 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
2286 m4_ifval([$2], [$2], [:])
2287 m4_ifvaln([$3], [else
2288 $3])dnl
2289 fi])
2290
2291
2292 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
2293 # ---------------------------------------------
2294 m4_define([_PKG_CONFIG],
2295 [if test -n "$$1"; then
2296 pkg_cv_[]$1="$$1"
2297 elif test -n "$PKG_CONFIG"; then
2298 PKG_CHECK_EXISTS([$3],
2299 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
2300 [pkg_failed=yes])
2301 else
2302 pkg_failed=untried
2303 fi[]dnl
2304 ])# _PKG_CONFIG
2305
2306 # _PKG_SHORT_ERRORS_SUPPORTED
2307 # -----------------------------
2308 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2309 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2311 _pkg_short_errors_supported=yes
2312 else
2313 _pkg_short_errors_supported=no
2314 fi[]dnl
2315 ])# _PKG_SHORT_ERRORS_SUPPORTED
2316
2317
2318 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2319 # [ACTION-IF-NOT-FOUND])
2320 #
2321 #
2322 # Note that if there is a possibility the first call to
2323 # PKG_CHECK_MODULES might not happen, you should be sure to include an
2324 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2325 #
2326 #
2327 # --------------------------------------------------------------
2328 AC_DEFUN([PKG_CHECK_MODULES],
2329 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2330 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2331 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2332
2333 pkg_failed=no
2334 AC_MSG_CHECKING([for $1])
2335
2336 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2337 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
2338
2339 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2340 and $1[]_LIBS to avoid the need to call pkg-config.
2341 See the pkg-config man page for more details.])
2342
2343 if test $pkg_failed = yes; then
2344 _PKG_SHORT_ERRORS_SUPPORTED
2345 if test $_pkg_short_errors_supported = yes; then
2346 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
2347 else
2348 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
2349 fi
2350 # Put the nasty error message in config.log where it belongs
2351 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2352
2353 ifelse([$4], , [AC_MSG_ERROR(dnl
2354 [Package requirements ($2) were not met:
2355
2356 $$1_PKG_ERRORS
2357
2358 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2359 installed software in a non-standard prefix.
2360
2361 _PKG_TEXT
2362 ])],
2363 [AC_MSG_RESULT([no])
2364 $4])
2365 elif test $pkg_failed = untried; then
2366 ifelse([$4], , [AC_MSG_FAILURE(dnl
2367 [The pkg-config script could not be found or is too old. Make sure it
2368 is in your PATH or set the PKG_CONFIG environment variable to the full
2369 path to pkg-config.
2370
2371 _PKG_TEXT
2372
2373 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
2374 [$4])
2375 else
2376 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2377 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2378 AC_MSG_RESULT([yes])
2379 ifelse([$3], , :, [$3])
2380 fi[]dnl
2381 ])# PKG_CHECK_MODULES
2382
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-08-21'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-11-11'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
5656
5757 Originally written by Per Bothner.
5858 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
6060 Software Foundation, Inc.
6161
6262 This is free software; see the source for copying conditions. There is NO
9191 exit 1
9292 fi
9393
94 trap 'exit 1' HUP INT TERM
94 trap 'exit 1' 1 2 15
9595
9696 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
9797 # compiler to aid in system detection is discouraged as it requires
105105
106106 set_cc_for_build='
107107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109109 : ${TMPDIR=/tmp} ;
110110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
180180 fi
181181 ;;
182182 *)
183 os=netbsd
183 os=netbsd
184184 ;;
185185 esac
186186 # The OS release
223223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224224 ;;
225225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227227 ;;
228228 esac
229229 # According to Compaq, /usr/sbin/psrinfo has been available on
269269 # A Xn.n version is an unreleased experimental baselevel.
270270 # 1.2 uses "1.2" for uname -r.
271271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
273276 Alpha\ *:Windows_NT*:*)
274277 # How do we know it's Interix rather than the generic POSIX subsystem?
275278 # Should we change UNAME_MACHINE based on the output of uname instead
295298 echo s390-ibm-zvmoe
296299 exit ;;
297300 *:OS400:*:*)
298 echo powerpc-ibm-os400
301 echo powerpc-ibm-os400
299302 exit ;;
300303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301304 echo arm-acorn-riscix${UNAME_RELEASE}
394397 # MiNT. But MiNT is downward compatible to TOS, so this should
395398 # be no problem.
396399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
400 echo m68k-atari-mint${UNAME_RELEASE}
398401 exit ;;
399402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400403 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
404 exit ;;
402405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
406 echo m68k-atari-mint${UNAME_RELEASE}
404407 exit ;;
405408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
408411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
411414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
414417 m68k:machten:*:*)
415418 echo m68k-apple-machten${UNAME_RELEASE}
416419 exit ;;
480483 echo m88k-motorola-sysv3
481484 exit ;;
482485 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
485488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486489 then
487490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
494497 else
495498 echo i586-dg-dgux${UNAME_RELEASE}
496499 fi
497 exit ;;
500 exit ;;
498501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499502 echo m88k-dolphin-sysv3
500503 exit ;;
594597 9000/[678][0-9][0-9])
595598 if [ -x /usr/bin/getconf ]; then
596599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
605608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
609 esac ;;
610 esac
608611 fi
609612 if [ "${HP_ARCH}" = "" ]; then
610613 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
643646 EOF
644647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645648 test -z "$HP_ARCH" && HP_ARCH=hppa
730733 exit ;;
731734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732735 echo c1-convex-bsd
733 exit ;;
736 exit ;;
734737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735738 if getsysinfo -f scalar_acc
736739 then echo c32-convex-bsd
737740 else echo c2-convex-bsd
738741 fi
739 exit ;;
742 exit ;;
740743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741744 echo c34-convex-bsd
742 exit ;;
745 exit ;;
743746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744747 echo c38-convex-bsd
745 exit ;;
748 exit ;;
746749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747750 echo c4-convex-bsd
748 exit ;;
751 exit ;;
749752 CRAY*Y-MP:*:*:*)
750753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751754 exit ;;
769772 exit ;;
770773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
776779 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780783 exit ;;
781784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
788791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789792 exit ;;
790793 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
794796 amd64)
795797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796798 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798800 esac
799801 exit ;;
800802 i*:CYGWIN*:*)
803805 *:MINGW*:*)
804806 echo ${UNAME_MACHINE}-pc-mingw32
805807 exit ;;
808 i*:MSYS*:*)
809 echo ${UNAME_MACHINE}-pc-msys
810 exit ;;
806811 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
812 # uname -m includes "-pc" on this system.
813 echo ${UNAME_MACHINE}-mingw32
809814 exit ;;
810815 i*:PW*:*)
811816 echo ${UNAME_MACHINE}-pc-pw32
812817 exit ;;
813818 *:Interix*:*)
814 case ${UNAME_MACHINE} in
819 case ${UNAME_MACHINE} in
815820 x86)
816821 echo i586-pc-interix${UNAME_RELEASE}
817822 exit ;;
866871 EV6) UNAME_MACHINE=alphaev6 ;;
867872 EV67) UNAME_MACHINE=alphaev67 ;;
868873 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
874 esac
870875 objdump --private-headers /bin/sh | grep -q ld.so.1
871876 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872877 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878883 then
879884 echo ${UNAME_MACHINE}-unknown-linux-gnu
880885 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
886 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
887 | grep -q __ARM_PCS_VFP
888 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
890 else
891 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
892 fi
882893 fi
883894 exit ;;
884895 avr32*:Linux:*:*)
891902 echo crisv32-axis-linux-gnu
892903 exit ;;
893904 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
905 echo frv-unknown-linux-gnu
906 exit ;;
907 hexagon:Linux:*:*)
908 echo hexagon-unknown-linux-gnu
895909 exit ;;
896910 i*86:Linux:*:*)
897911 LIBC=gnu
959973 echo ${UNAME_MACHINE}-ibm-linux
960974 exit ;;
961975 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
963977 exit ;;
964978 sh*:Linux:*:*)
965979 echo ${UNAME_MACHINE}-unknown-linux-gnu
968982 echo ${UNAME_MACHINE}-unknown-linux-gnu
969983 exit ;;
970984 tile*:Linux:*:*)
971 echo ${UNAME_MACHINE}-tilera-linux-gnu
985 echo ${UNAME_MACHINE}-unknown-linux-gnu
972986 exit ;;
973987 vax:Linux:*:*)
974988 echo ${UNAME_MACHINE}-dec-linux-gnu
977991 echo x86_64-unknown-linux-gnu
978992 exit ;;
979993 xtensa*:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-gnu
994 echo ${UNAME_MACHINE}-unknown-linux-gnu
981995 exit ;;
982996 i*86:DYNIX/ptx:4*:*)
983997 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9861000 echo i386-sequent-sysv4
9871001 exit ;;
9881002 i*86:UNIX_SV:4.2MP:2.*)
989 # Unixware is an offshoot of SVR4, but it has its own version
990 # number series starting with 2...
991 # I am not positive that other SVR4 systems won't match this,
1003 # Unixware is an offshoot of SVR4, but it has its own version
1004 # number series starting with 2...
1005 # I am not positive that other SVR4 systems won't match this,
9921006 # I just have to hope. -- rms.
993 # Use sysv4.2uw... so that sysv4* matches it.
1007 # Use sysv4.2uw... so that sysv4* matches it.
9941008 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9951009 exit ;;
9961010 i*86:OS/2:*:*)
10221036 fi
10231037 exit ;;
10241038 i*86:*:5:[678]*)
1025 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1039 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10261040 case `/bin/uname -X | grep "^Machine"` in
10271041 *486*) UNAME_MACHINE=i486 ;;
10281042 *Pentium) UNAME_MACHINE=i586 ;;
10501064 exit ;;
10511065 pc:*:*:*)
10521066 # Left here for compatibility:
1053 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1054 # the processor, so we play safe by assuming i586.
1067 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1068 # the processor, so we play safe by assuming i586.
10551069 # Note: whatever this is, it MUST be the same as what config.sub
10561070 # prints for the "djgpp" host, or else GDB configury will decide that
10571071 # this is a cross-build.
10581072 echo i586-pc-msdosdjgpp
1059 exit ;;
1073 exit ;;
10601074 Intel:Mach:3*:*)
10611075 echo i386-pc-mach3
10621076 exit ;;
10911105 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10921106 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10931107 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1094 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1095 && { echo i486-ncr-sysv4; exit; } ;;
1108 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1109 && { echo i486-ncr-sysv4; exit; } ;;
10961110 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10971111 OS_REL='.3'
10981112 test -r /etc/.relid \
11351149 echo ns32k-sni-sysv
11361150 fi
11371151 exit ;;
1138 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1139 # says <Richard.M.Bartel@ccMail.Census.GOV>
1140 echo i586-unisys-sysv4
1141 exit ;;
1152 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1153 # says <Richard.M.Bartel@ccMail.Census.GOV>
1154 echo i586-unisys-sysv4
1155 exit ;;
11421156 *:UNIX_System_V:4*:FTX*)
11431157 # From Gerald Hewes <hewes@openmarket.com>.
11441158 # How about differentiating between stratus architectures? -djm
11641178 exit ;;
11651179 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11661180 if [ -d /usr/nec ]; then
1167 echo mips-nec-sysv${UNAME_RELEASE}
1181 echo mips-nec-sysv${UNAME_RELEASE}
11681182 else
1169 echo mips-unknown-sysv${UNAME_RELEASE}
1170 fi
1171 exit ;;
1183 echo mips-unknown-sysv${UNAME_RELEASE}
1184 fi
1185 exit ;;
11721186 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11731187 echo powerpc-be-beos
11741188 exit ;;
12331247 *:QNX:*:4*)
12341248 echo i386-pc-qnx
12351249 exit ;;
1250 NEO-?:NONSTOP_KERNEL:*:*)
1251 echo neo-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
12361253 NSE-?:NONSTOP_KERNEL:*:*)
12371254 echo nse-tandem-nsk${UNAME_RELEASE}
12381255 exit ;;
12781295 echo pdp10-unknown-its
12791296 exit ;;
12801297 SEI:*:*:SEIUX)
1281 echo mips-sei-seiux${UNAME_RELEASE}
1298 echo mips-sei-seiux${UNAME_RELEASE}
12821299 exit ;;
12831300 *:DragonFly:*:*)
12841301 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12851302 exit ;;
12861303 *:*VMS:*:*)
1287 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1304 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12881305 case "${UNAME_MACHINE}" in
12891306 A*) echo alpha-dec-vms ; exit ;;
12901307 I*) echo ia64-dec-vms ; exit ;;
13241341 #include <sys/param.h>
13251342 printf ("m68k-sony-newsos%s\n",
13261343 #ifdef NEWSOS4
1327 "4"
1344 "4"
13281345 #else
1329 ""
1330 #endif
1331 ); exit (0);
1346 ""
1347 #endif
1348 ); exit (0);
13321349 #endif
13331350 #endif
13341351
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-09-11'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-11-11'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
7575 GNU config.sub ($timestamp)
7676
7777 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
7979 Software Foundation, Inc.
8080
8181 This is free software; see the source for copying conditions. There is NO
157157 os=
158158 basic_machine=$1
159159 ;;
160 -bluegene*)
161 os=-cnk
160 -bluegene*)
161 os=-cnk
162162 ;;
163163 -sim | -cisco | -oki | -wec | -winbond)
164164 os=
174174 os=-chorusos
175175 basic_machine=$1
176176 ;;
177 -chorusrdb)
178 os=-chorusrdb
177 -chorusrdb)
178 os=-chorusrdb
179179 basic_machine=$1
180 ;;
180 ;;
181181 -hiux*)
182182 os=-hiuxwe2
183183 ;;
250250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251251 | am33_2.0 \
252252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | be32 | be64 \
253254 | bfin \
254255 | c4x | clipper \
255256 | d10v | d30v | dlx | dsp16xx \
257 | epiphany \
256258 | fido | fr30 | frv \
257259 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
260 | hexagon \
258261 | i370 | i860 | i960 | ia64 \
259262 | ip2k | iq2000 \
263 | le32 | le64 \
260264 | lm32 \
261265 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262266 | maxq | mb | microblaze | mcore | mep | metag \
285289 | nds32 | nds32le | nds32be \
286290 | nios | nios2 \
287291 | ns16k | ns32k \
292 | open8 \
288293 | or32 \
289294 | pdp10 | pdp11 | pj | pjl \
290 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
295 | powerpc | powerpc64 | powerpc64le | powerpcle \
291296 | pyramid \
292 | rx \
297 | rl78 | rx \
293298 | score \
294299 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
295300 | sh64 | sh64le \
296301 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
297302 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
298 | spu | strongarm \
299 | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
303 | spu \
304 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
300305 | ubicom32 \
301 | v850 | v850e \
306 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
302307 | we32k \
303 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
308 | x86 | xc16x | xstormy16 | xtensa \
304309 | z8k | z80)
305310 basic_machine=$basic_machine-unknown
306311 ;;
322327 ;;
323328 ms1)
324329 basic_machine=mt-unknown
330 ;;
331
332 strongarm | thumb | xscale)
333 basic_machine=arm-unknown
334 ;;
335
336 xscaleeb)
337 basic_machine=armeb-unknown
338 ;;
339
340 xscaleel)
341 basic_machine=armel-unknown
325342 ;;
326343
327344 # We use `pc' rather than `unknown'
343360 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
344361 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
345362 | avr-* | avr32-* \
363 | be32-* | be64-* \
346364 | bfin-* | bs2000-* \
347365 | c[123]* | c30-* | [cjt]90-* | c4x-* \
348366 | clipper-* | craynv-* | cydra-* \
351369 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
352370 | h8300-* | h8500-* \
353371 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
372 | hexagon-* \
354373 | i*86-* | i860-* | i960-* | ia64-* \
355374 | ip2k-* | iq2000-* \
375 | le32-* | le64-* \
356376 | lm32-* \
357377 | m32c-* | m32r-* | m32rle-* \
358378 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
381401 | nds32-* | nds32le-* | nds32be-* \
382402 | nios-* | nios2-* \
383403 | none-* | np1-* | ns16k-* | ns32k-* \
404 | open8-* \
384405 | orion-* \
385406 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
386 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
407 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
387408 | pyramid-* \
388 | romp-* | rs6000-* | rx-* \
409 | rl78-* | romp-* | rs6000-* | rx-* \
389410 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
390411 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
391412 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
392413 | sparclite-* \
393 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
394 | tahoe-* | thumb-* \
414 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
415 | tahoe-* \
395416 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
396 | tile-* | tilegx-* \
417 | tile*-* \
397418 | tron-* \
398419 | ubicom32-* \
399 | v850-* | v850e-* | vax-* \
420 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
421 | vax-* \
400422 | we32k-* \
401 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
423 | x86-* | x86_64-* | xc16x-* | xps100-* \
402424 | xstormy16-* | xtensa*-* \
403425 | ymp-* \
404426 | z8k-* | z80-*)
423445 basic_machine=a29k-amd
424446 os=-udi
425447 ;;
426 abacus)
448 abacus)
427449 basic_machine=abacus-unknown
428450 ;;
429451 adobe68k)
506528 basic_machine=c90-cray
507529 os=-unicos
508530 ;;
509 cegcc)
531 cegcc)
510532 basic_machine=arm-unknown
511533 os=-cegcc
512534 ;;
538560 basic_machine=craynv-cray
539561 os=-unicosmp
540562 ;;
541 cr16)
563 cr16 | cr16-*)
542564 basic_machine=cr16-unknown
543565 os=-elf
544566 ;;
754776 basic_machine=ns32k-utek
755777 os=-sysv
756778 ;;
757 microblaze)
779 microblaze)
758780 basic_machine=microblaze-xilinx
759781 ;;
760782 mingw32)
793815 ms1-*)
794816 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
795817 ;;
818 msys)
819 basic_machine=i386-pc
820 os=-msys
821 ;;
796822 mvs)
797823 basic_machine=i370-ibm
798824 os=-mvs
825 ;;
826 nacl)
827 basic_machine=le32-unknown
828 os=-nacl
799829 ;;
800830 ncr3000)
801831 basic_machine=i486-ncr
861891 np1)
862892 basic_machine=np1-gould
863893 ;;
864 neo-tandem)
894 neo-tandem)
865895 basic_machine=neo-tandem
866896 ;;
867 nse-tandem)
897 nse-tandem)
868898 basic_machine=nse-tandem
869899 ;;
870900 nsr-tandem)
949979 ;;
950980 power) basic_machine=power-ibm
951981 ;;
952 ppc) basic_machine=powerpc-unknown
953 ;;
954 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
982 ppc | ppcbe) basic_machine=powerpc-unknown
983 ;;
984 ppc-* | ppcbe-*)
985 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
955986 ;;
956987 ppcle | powerpclittle | ppc-le | powerpc-little)
957988 basic_machine=powerpcle-unknown
10451076 basic_machine=i860-stratus
10461077 os=-sysv4
10471078 ;;
1079 strongarm-* | thumb-*)
1080 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1081 ;;
10481082 sun2)
10491083 basic_machine=m68000-sun
10501084 ;;
11011135 basic_machine=t90-cray
11021136 os=-unicos
11031137 ;;
1104 # This must be matched before tile*.
1105 tilegx*)
1106 basic_machine=tilegx-unknown
1107 os=-linux-gnu
1108 ;;
11091138 tile*)
1110 basic_machine=tile-unknown
1139 basic_machine=$basic_machine-unknown
11111140 os=-linux-gnu
11121141 ;;
11131142 tx39)
11761205 ;;
11771206 xps | xps100)
11781207 basic_machine=xps100-honeywell
1208 ;;
1209 xscale-* | xscalee[bl]-*)
1210 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11791211 ;;
11801212 ymp)
11811213 basic_machine=ymp-cray
12741306 if [ x"$os" != x"" ]
12751307 then
12761308 case $os in
1277 # First match some system type aliases
1278 # that might get confused with valid system types.
1309 # First match some system type aliases
1310 # that might get confused with valid system types.
12791311 # -solaris* is a basic system type, with this one exception.
1280 -auroraux)
1281 os=-auroraux
1312 -auroraux)
1313 os=-auroraux
12821314 ;;
12831315 -solaris1 | -solaris1.*)
12841316 os=`echo $os | sed -e 's|solaris1|sunos4|'`
13141346 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13151347 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13161348 | -chorusos* | -chorusrdb* | -cegcc* \
1317 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1349 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13181350 | -mingw32* | -linux-gnu* | -linux-android* \
13191351 | -linux-newlib* | -linux-uclibc* \
13201352 | -uxpv* | -beos* | -mpeix* | -udk* \
13631395 -opened*)
13641396 os=-openedition
13651397 ;;
1366 -os400*)
1398 -os400*)
13671399 os=-os400
13681400 ;;
13691401 -wince*)
14121444 -sinix*)
14131445 os=-sysv4
14141446 ;;
1415 -tpf*)
1447 -tpf*)
14161448 os=-tpf
14171449 ;;
14181450 -triton*)
14571489 -dicos*)
14581490 os=-dicos
14591491 ;;
1460 -nacl*)
1461 ;;
1492 -nacl*)
1493 ;;
14621494 -none)
14631495 ;;
14641496 *)
14811513 # system, and we'll never get to this point.
14821514
14831515 case $basic_machine in
1484 score-*)
1516 score-*)
14851517 os=-elf
14861518 ;;
1487 spu-*)
1519 spu-*)
14881520 os=-elf
14891521 ;;
14901522 *-acorn)
14961528 arm*-semi)
14971529 os=-aout
14981530 ;;
1499 c4x-* | tic4x-*)
1500 os=-coff
1531 c4x-* | tic4x-*)
1532 os=-coff
15011533 ;;
15021534 tic54x-*)
15031535 os=-coff
15331565 m68*-cisco)
15341566 os=-aout
15351567 ;;
1536 mep-*)
1568 mep-*)
15371569 os=-elf
15381570 ;;
15391571 mips*-cisco)
15601592 *-ibm)
15611593 os=-aix
15621594 ;;
1563 *-knuth)
1595 *-knuth)
15641596 os=-mmixware
15651597 ;;
15661598 *-wec)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for xgc 1.0.3.
2 # Generated by GNU Autoconf 2.68 for xgc 1.0.4.
33 #
44 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
55 #
560560 # Identity of this package.
561561 PACKAGE_NAME='xgc'
562562 PACKAGE_TARNAME='xgc'
563 PACKAGE_VERSION='1.0.3'
564 PACKAGE_STRING='xgc 1.0.3'
563 PACKAGE_VERSION='1.0.4'
564 PACKAGE_STRING='xgc 1.0.4'
565565 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
566566 PACKAGE_URL=''
567567
568 ac_unique_file="Makefile.am"
568569 # Factoring default headers for most tests.
569570 ac_includes_default="\
570571 #include <stdio.h>
642643 INSTALL_CMD
643644 PKG_CONFIG
644645 CHANGELOG_CMD
646 STRICT_CFLAGS
645647 CWARNFLAGS
648 BASE_CFLAGS
646649 EGREP
647650 GREP
648651 CPP
649652 am__fastdepCC_FALSE
650653 am__fastdepCC_TRUE
651654 CCDEPMODE
655 am__nodep
652656 AMDEPBACKSLASH
653657 AMDEP_FALSE
654658 AMDEP_TRUE
731735 enable_option_checking
732736 enable_maintainer_mode
733737 enable_dependency_tracking
738 enable_selective_werror
734739 enable_strict_compilation
735740 enable_silent_rules
736741 with_appdefaultdir
12911296 # Omit some internal or obsolete options to make the list less imposing.
12921297 # This message is too long to be a string in the A/UX 3.1 sh.
12931298 cat <<_ACEOF
1294 \`configure' configures xgc 1.0.3 to adapt to many kinds of systems.
1299 \`configure' configures xgc 1.0.4 to adapt to many kinds of systems.
12951300
12961301 Usage: $0 [OPTION]... [VAR=VALUE]...
12971302
13611366
13621367 if test -n "$ac_init_help"; then
13631368 case $ac_init_help in
1364 short | recursive ) echo "Configuration of xgc 1.0.3:";;
1369 short | recursive ) echo "Configuration of xgc 1.0.4:";;
13651370 esac
13661371 cat <<\_ACEOF
13671372
13731378 (and sometimes confusing) to the casual installer
13741379 --disable-dependency-tracking speeds up one-time build
13751380 --enable-dependency-tracking do not reject slow dependency extractors
1381 --disable-selective-werror
1382 Turn off selective compiler errors. (default:
1383 enabled)
13761384 --enable-strict-compilation
13771385 Enable all warnings from compiler and make them
13781386 errors (default: disabled)
14711479 test -n "$ac_init_help" && exit $ac_status
14721480 if $ac_init_version; then
14731481 cat <<\_ACEOF
1474 xgc configure 1.0.3
1482 xgc configure 1.0.4
14751483 generated by GNU Autoconf 2.68
14761484
14771485 Copyright (C) 2010 Free Software Foundation, Inc.
17281736 This file contains any messages produced by compilers while
17291737 running configure, to aid debugging if configure makes a mistake.
17301738
1731 It was created by xgc $as_me 1.0.3, which was
1739 It was created by xgc $as_me 1.0.4, which was
17321740 generated by GNU Autoconf 2.68. Invocation command line was
17331741
17341742 $ $0 $@
20762084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20772085
20782086
2087
2088 ac_config_headers="$ac_config_headers config.h"
2089
2090
2091 # Initialize Automake
20792092 am__api_version='1.11'
20802093
20812094 ac_aux_dir=
25432556
25442557 # Define the identity of the package.
25452558 PACKAGE='xgc'
2546 VERSION='1.0.3'
2559 VERSION='1.0.4'
25472560
25482561
25492562 cat >>confdefs.h <<_ACEOF
26052618
26062619 MAINT=$MAINTAINER_MODE_TRUE
26072620
2608
2609 ac_config_headers="$ac_config_headers config.h"
26102621
26112622
26122623 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
26732684 if test "x$enable_dependency_tracking" != xno; then
26742685 am_depcomp="$ac_aux_dir/depcomp"
26752686 AMDEPBACKSLASH='\'
2687 am__nodep='_no'
26762688 fi
26772689 if test "x$enable_dependency_tracking" != xno; then
26782690 AMDEP_TRUE=
34863498 # instance it was reported that on HP-UX the gcc test will end up
34873499 # making a dummy file named `D' -- because `-MD' means `put the output
34883500 # in D'.
3501 rm -rf conftest.dir
34893502 mkdir conftest.dir
34903503 # Copy depcomp to subdir because otherwise we won't find it if we're
34913504 # using a relative directory.
35453558 break
35463559 fi
35473560 ;;
3548 msvisualcpp | msvcmsys)
3561 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
35493562 # This compiler won't grok `-c -o', but also, the minuso test has
35503563 # not run yet. These depmodes are late enough in the game, and
35513564 # so weak that their functioning should not be impacted.
41734186 fi
41744187
41754188 done
4189
4190
4191
4192
4193
4194
4195 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4196 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4197 CLANGCC="yes"
4198 else
4199 CLANGCC="no"
4200 fi
4201
4202 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4203 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4204 INTELCC="yes"
4205 else
4206 INTELCC="no"
4207 fi
4208
4209 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4210 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4211 SUNCC="yes"
4212 else
4213 SUNCC="no"
4214 fi
41764215
41774216
41784217
44354474
44364475
44374476
4438 if test "x$GCC" = xyes ; then
4439 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4440 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4441 -Wbad-function-cast -Wformat=2"
4442 case `$CC -dumpversion` in
4443 3.4.* | 4.*)
4444 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4445 ;;
4446 esac
4447 else
4448 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4449 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4450 SUNCC="yes"
4451 else
4452 SUNCC="no"
4453 fi
4454
4455 if test "x$SUNCC" = "xyes"; then
4456 CWARNFLAGS="-v"
4457 fi
4458 fi
4459
4460
4461
4462 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4477
4478 # Check whether --enable-selective-werror was given.
4479 if test "${enable_selective_werror+set}" = set; then :
4480 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4481 else
4482 SELECTIVE_WERROR=yes
4483 fi
4484
4485
4486
4487
4488
4489 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4490 if test "x$SUNCC" = "xyes"; then
4491 BASE_CFLAGS="-v"
4492 else
4493 BASE_CFLAGS=""
4494 fi
4495
4496 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510 xorg_testset_save_CFLAGS="$CFLAGS"
4511
4512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4516 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521 int i;
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524 xorg_cv_cc_flag_unknown_warning_option=yes
4525 else
4526 xorg_cv_cc_flag_unknown_warning_option=no
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4531 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4533 CFLAGS="$xorg_testset_save_CFLAGS"
4534 fi
4535
4536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4539 fi
4540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4542 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4543 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 int i;
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 xorg_cv_cc_flag_unused_command_line_argument=yes
4552 else
4553 xorg_cv_cc_flag_unused_command_line_argument=no
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4558 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4560 CFLAGS="$xorg_testset_save_CFLAGS"
4561 fi
4562
4563 found="no"
4564
4565 if test $found = "no" ; then
4566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4568 fi
4569
4570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4572 fi
4573
4574 CFLAGS="$CFLAGS -Wall"
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4577 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4578 cacheid=xorg_cv_cc_flag__Wall
4579 if eval \${$cacheid+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 int i;
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_link "$LINENO"; then :
4594 eval $cacheid=yes
4595 else
4596 eval $cacheid=no
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext \
4599 conftest$ac_exeext conftest.$ac_ext
4600 fi
4601
4602
4603 CFLAGS="$xorg_testset_save_CFLAGS"
4604
4605 eval supported=\$$cacheid
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4607 $as_echo "$supported" >&6; }
4608 if test "$supported" = "yes" ; then
4609 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4610 found="yes"
4611 fi
4612 fi
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 xorg_testset_save_CFLAGS="$CFLAGS"
4629
4630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 int i;
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 xorg_cv_cc_flag_unknown_warning_option=yes
4643 else
4644 xorg_cv_cc_flag_unknown_warning_option=no
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4651 CFLAGS="$xorg_testset_save_CFLAGS"
4652 fi
4653
4654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4657 fi
4658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 int i;
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 xorg_cv_cc_flag_unused_command_line_argument=yes
4670 else
4671 xorg_cv_cc_flag_unused_command_line_argument=no
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4678 CFLAGS="$xorg_testset_save_CFLAGS"
4679 fi
4680
4681 found="no"
4682
4683 if test $found = "no" ; then
4684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4686 fi
4687
4688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4690 fi
4691
4692 CFLAGS="$CFLAGS -Wpointer-arith"
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4695 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4696 cacheid=xorg_cv_cc_flag__Wpointer_arith
4697 if eval \${$cacheid+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 int i;
4703 int
4704 main ()
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_link "$LINENO"; then :
4712 eval $cacheid=yes
4713 else
4714 eval $cacheid=no
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext \
4717 conftest$ac_exeext conftest.$ac_ext
4718 fi
4719
4720
4721 CFLAGS="$xorg_testset_save_CFLAGS"
4722
4723 eval supported=\$$cacheid
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4725 $as_echo "$supported" >&6; }
4726 if test "$supported" = "yes" ; then
4727 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4728 found="yes"
4729 fi
4730 fi
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 xorg_testset_save_CFLAGS="$CFLAGS"
4747
4748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4751 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4752 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 int i;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 xorg_cv_cc_flag_unknown_warning_option=yes
4761 else
4762 xorg_cv_cc_flag_unknown_warning_option=no
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4767 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4769 CFLAGS="$xorg_testset_save_CFLAGS"
4770 fi
4771
4772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4775 fi
4776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4778 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4779 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 int i;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 xorg_cv_cc_flag_unused_command_line_argument=yes
4788 else
4789 xorg_cv_cc_flag_unused_command_line_argument=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4794 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4796 CFLAGS="$xorg_testset_save_CFLAGS"
4797 fi
4798
4799 found="no"
4800
4801 if test $found = "no" ; then
4802 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804 fi
4805
4806 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4808 fi
4809
4810 CFLAGS="$CFLAGS -Wmissing-declarations"
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4813 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4814 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4815 if eval \${$cacheid+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 int i;
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_c_try_link "$LINENO"; then :
4830 eval $cacheid=yes
4831 else
4832 eval $cacheid=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext \
4835 conftest$ac_exeext conftest.$ac_ext
4836 fi
4837
4838
4839 CFLAGS="$xorg_testset_save_CFLAGS"
4840
4841 eval supported=\$$cacheid
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4843 $as_echo "$supported" >&6; }
4844 if test "$supported" = "yes" ; then
4845 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4846 found="yes"
4847 fi
4848 fi
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 xorg_testset_save_CFLAGS="$CFLAGS"
4865
4866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 int i;
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 xorg_cv_cc_flag_unknown_warning_option=yes
4879 else
4880 xorg_cv_cc_flag_unknown_warning_option=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888 fi
4889
4890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893 fi
4894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unused_command_line_argument=yes
4906 else
4907 xorg_cv_cc_flag_unused_command_line_argument=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 found="no"
4918
4919 if test $found = "no" ; then
4920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 fi
4923
4924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926 fi
4927
4928 CFLAGS="$CFLAGS -Wformat=2"
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4931 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4932 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4933 if eval \${$cacheid+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 int i;
4939 int
4940 main ()
4941 {
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_link "$LINENO"; then :
4948 eval $cacheid=yes
4949 else
4950 eval $cacheid=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext conftest.$ac_ext
4954 fi
4955
4956
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958
4959 eval supported=\$$cacheid
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4961 $as_echo "$supported" >&6; }
4962 if test "$supported" = "yes" ; then
4963 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4964 found="yes"
4965 fi
4966 fi
4967
4968 if test $found = "no" ; then
4969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971 fi
4972
4973 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4975 fi
4976
4977 CFLAGS="$CFLAGS -Wformat"
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4980 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
4981 cacheid=xorg_cv_cc_flag__Wformat
4982 if eval \${$cacheid+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 int i;
4988 int
4989 main ()
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_link "$LINENO"; then :
4997 eval $cacheid=yes
4998 else
4999 eval $cacheid=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5003 fi
5004
5005
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008 eval supported=\$$cacheid
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010 $as_echo "$supported" >&6; }
5011 if test "$supported" = "yes" ; then
5012 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5013 found="yes"
5014 fi
5015 fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 xorg_testset_save_CFLAGS="$CFLAGS"
5034
5035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 int i;
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 xorg_cv_cc_flag_unknown_warning_option=yes
5048 else
5049 xorg_cv_cc_flag_unknown_warning_option=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5056 CFLAGS="$xorg_testset_save_CFLAGS"
5057 fi
5058
5059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5062 fi
5063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 int i;
5072 _ACEOF
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 xorg_cv_cc_flag_unused_command_line_argument=yes
5075 else
5076 xorg_cv_cc_flag_unused_command_line_argument=no
5077 fi
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5083 CFLAGS="$xorg_testset_save_CFLAGS"
5084 fi
5085
5086 found="no"
5087
5088 if test $found = "no" ; then
5089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091 fi
5092
5093 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5095 fi
5096
5097 CFLAGS="$CFLAGS -Wstrict-prototypes"
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5100 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5101 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5102 if eval \${$cacheid+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 int i;
5108 int
5109 main ()
5110 {
5111
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 if ac_fn_c_try_link "$LINENO"; then :
5117 eval $cacheid=yes
5118 else
5119 eval $cacheid=no
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123 fi
5124
5125
5126 CFLAGS="$xorg_testset_save_CFLAGS"
5127
5128 eval supported=\$$cacheid
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5130 $as_echo "$supported" >&6; }
5131 if test "$supported" = "yes" ; then
5132 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5133 found="yes"
5134 fi
5135 fi
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 xorg_cv_cc_flag_unknown_warning_option=yes
5166 else
5167 xorg_cv_cc_flag_unknown_warning_option=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5172 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5175 fi
5176
5177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180 fi
5181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5183 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5184 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 int i;
5190 _ACEOF
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 xorg_cv_cc_flag_unused_command_line_argument=yes
5193 else
5194 xorg_cv_cc_flag_unused_command_line_argument=no
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5199 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5201 CFLAGS="$xorg_testset_save_CFLAGS"
5202 fi
5203
5204 found="no"
5205
5206 if test $found = "no" ; then
5207 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209 fi
5210
5211 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5213 fi
5214
5215 CFLAGS="$CFLAGS -Wmissing-prototypes"
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5218 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5219 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5220 if eval \${$cacheid+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 int i;
5226 int
5227 main ()
5228 {
5229
5230 ;
5231 return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_link "$LINENO"; then :
5235 eval $cacheid=yes
5236 else
5237 eval $cacheid=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241 fi
5242
5243
5244 CFLAGS="$xorg_testset_save_CFLAGS"
5245
5246 eval supported=\$$cacheid
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5248 $as_echo "$supported" >&6; }
5249 if test "$supported" = "yes" ; then
5250 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5251 found="yes"
5252 fi
5253 fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 xorg_testset_save_CFLAGS="$CFLAGS"
5270
5271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5274 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5275 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 int i;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 xorg_cv_cc_flag_unknown_warning_option=yes
5284 else
5285 xorg_cv_cc_flag_unknown_warning_option=no
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5290 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5292 CFLAGS="$xorg_testset_save_CFLAGS"
5293 fi
5294
5295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 fi
5299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5301 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5302 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 xorg_cv_cc_flag_unused_command_line_argument=yes
5311 else
5312 xorg_cv_cc_flag_unused_command_line_argument=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5317 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 found="no"
5323
5324 if test $found = "no" ; then
5325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 fi
5328
5329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331 fi
5332
5333 CFLAGS="$CFLAGS -Wnested-externs"
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5336 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5337 cacheid=xorg_cv_cc_flag__Wnested_externs
5338 if eval \${$cacheid+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 int i;
5344 int
5345 main ()
5346 {
5347
5348 ;
5349 return 0;
5350 }
5351 _ACEOF
5352 if ac_fn_c_try_link "$LINENO"; then :
5353 eval $cacheid=yes
5354 else
5355 eval $cacheid=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5359 fi
5360
5361
5362 CFLAGS="$xorg_testset_save_CFLAGS"
5363
5364 eval supported=\$$cacheid
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5366 $as_echo "$supported" >&6; }
5367 if test "$supported" = "yes" ; then
5368 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5369 found="yes"
5370 fi
5371 fi
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 xorg_cv_cc_flag_unknown_warning_option=yes
5402 else
5403 xorg_cv_cc_flag_unknown_warning_option=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411 fi
5412
5413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416 fi
5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unused_command_line_argument=yes
5429 else
5430 xorg_cv_cc_flag_unused_command_line_argument=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 found="no"
5441
5442 if test $found = "no" ; then
5443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446
5447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 fi
5450
5451 CFLAGS="$CFLAGS -Wbad-function-cast"
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5454 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5455 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5456 if eval \${$cacheid+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"; then :
5471 eval $cacheid=yes
5472 else
5473 eval $cacheid=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext \
5476 conftest$ac_exeext conftest.$ac_ext
5477 fi
5478
5479
5480 CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482 eval supported=\$$cacheid
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484 $as_echo "$supported" >&6; }
5485 if test "$supported" = "yes" ; then
5486 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5487 found="yes"
5488 fi
5489 fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 xorg_cv_cc_flag_unknown_warning_option=yes
5520 else
5521 xorg_cv_cc_flag_unknown_warning_option=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528 CFLAGS="$xorg_testset_save_CFLAGS"
5529 fi
5530
5531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534 fi
5535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unused_command_line_argument=yes
5547 else
5548 xorg_cv_cc_flag_unused_command_line_argument=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 found="no"
5559
5560 if test $found = "no" ; then
5561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564
5565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 fi
5568
5569 CFLAGS="$CFLAGS -Wold-style-definition"
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5572 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5573 cacheid=xorg_cv_cc_flag__Wold_style_definition
5574 if eval \${$cacheid+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_link "$LINENO"; then :
5589 eval $cacheid=yes
5590 else
5591 eval $cacheid=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595 fi
5596
5597
5598 CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600 eval supported=\$$cacheid
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602 $as_echo "$supported" >&6; }
5603 if test "$supported" = "yes" ; then
5604 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5605 found="yes"
5606 fi
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 xorg_testset_save_CFLAGS="$CFLAGS"
5624
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 xorg_cv_cc_flag_unknown_warning_option=yes
5638 else
5639 xorg_cv_cc_flag_unknown_warning_option=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646 CFLAGS="$xorg_testset_save_CFLAGS"
5647 fi
5648
5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 fi
5653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unused_command_line_argument=yes
5665 else
5666 xorg_cv_cc_flag_unused_command_line_argument=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 found="no"
5677
5678 if test $found = "no" ; then
5679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682
5683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685 fi
5686
5687 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5690 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5691 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5692 if eval \${$cacheid+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_link "$LINENO"; then :
5707 eval $cacheid=yes
5708 else
5709 eval $cacheid=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 fi
5714
5715
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718 eval supported=\$$cacheid
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720 $as_echo "$supported" >&6; }
5721 if test "$supported" = "yes" ; then
5722 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5723 found="yes"
5724 fi
5725 fi
5726
5727
5728
5729
5730
5731 # This chunk adds additional warnings that could catch undesired effects.
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 xorg_testset_save_CFLAGS="$CFLAGS"
5746
5747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 xorg_cv_cc_flag_unknown_warning_option=yes
5760 else
5761 xorg_cv_cc_flag_unknown_warning_option=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774 fi
5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 int i;
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 xorg_cv_cc_flag_unused_command_line_argument=yes
5787 else
5788 xorg_cv_cc_flag_unused_command_line_argument=no
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5795 CFLAGS="$xorg_testset_save_CFLAGS"
5796 fi
5797
5798 found="no"
5799
5800 if test $found = "no" ; then
5801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803 fi
5804
5805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807 fi
5808
5809 CFLAGS="$CFLAGS -Wunused"
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5812 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5813 cacheid=xorg_cv_cc_flag__Wunused
5814 if eval \${$cacheid+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_c_try_link "$LINENO"; then :
5829 eval $cacheid=yes
5830 else
5831 eval $cacheid=no
5832 fi
5833 rm -f core conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 fi
5836
5837
5838 CFLAGS="$xorg_testset_save_CFLAGS"
5839
5840 eval supported=\$$cacheid
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5842 $as_echo "$supported" >&6; }
5843 if test "$supported" = "yes" ; then
5844 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5845 found="yes"
5846 fi
5847 fi
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 xorg_testset_save_CFLAGS="$CFLAGS"
5864
5865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877 xorg_cv_cc_flag_unknown_warning_option=yes
5878 else
5879 xorg_cv_cc_flag_unknown_warning_option=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5886 CFLAGS="$xorg_testset_save_CFLAGS"
5887 fi
5888
5889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892 fi
5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 int i;
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 xorg_cv_cc_flag_unused_command_line_argument=yes
5905 else
5906 xorg_cv_cc_flag_unused_command_line_argument=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914 fi
5915
5916 found="no"
5917
5918 if test $found = "no" ; then
5919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 fi
5922
5923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925 fi
5926
5927 CFLAGS="$CFLAGS -Wuninitialized"
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5930 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5931 cacheid=xorg_cv_cc_flag__Wuninitialized
5932 if eval \${$cacheid+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int i;
5938 int
5939 main ()
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"; then :
5947 eval $cacheid=yes
5948 else
5949 eval $cacheid=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 fi
5954
5955
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957
5958 eval supported=\$$cacheid
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5960 $as_echo "$supported" >&6; }
5961 if test "$supported" = "yes" ; then
5962 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5963 found="yes"
5964 fi
5965 fi
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 xorg_testset_save_CFLAGS="$CFLAGS"
5982
5983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 xorg_cv_cc_flag_unknown_warning_option=yes
5996 else
5997 xorg_cv_cc_flag_unknown_warning_option=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005 fi
6006
6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 xorg_cv_cc_flag_unused_command_line_argument=yes
6023 else
6024 xorg_cv_cc_flag_unused_command_line_argument=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6032 fi
6033
6034 found="no"
6035
6036 if test $found = "no" ; then
6037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 fi
6040
6041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043 fi
6044
6045 CFLAGS="$CFLAGS -Wshadow"
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6048 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6049 cacheid=xorg_cv_cc_flag__Wshadow
6050 if eval \${$cacheid+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 int i;
6056 int
6057 main ()
6058 {
6059
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 eval $cacheid=yes
6066 else
6067 eval $cacheid=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 fi
6072
6073
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076 eval supported=\$$cacheid
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078 $as_echo "$supported" >&6; }
6079 if test "$supported" = "yes" ; then
6080 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6081 found="yes"
6082 fi
6083 fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099 xorg_testset_save_CFLAGS="$CFLAGS"
6100
6101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 xorg_cv_cc_flag_unknown_warning_option=yes
6114 else
6115 xorg_cv_cc_flag_unknown_warning_option=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128 fi
6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 int i;
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 xorg_cv_cc_flag_unused_command_line_argument=yes
6141 else
6142 xorg_cv_cc_flag_unused_command_line_argument=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 fi
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149 CFLAGS="$xorg_testset_save_CFLAGS"
6150 fi
6151
6152 found="no"
6153
6154 if test $found = "no" ; then
6155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 fi
6158
6159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161 fi
6162
6163 CFLAGS="$CFLAGS -Wcast-qual"
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6166 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6167 cacheid=xorg_cv_cc_flag__Wcast_qual
6168 if eval \${$cacheid+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 int i;
6174 int
6175 main ()
6176 {
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 eval $cacheid=yes
6184 else
6185 eval $cacheid=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 fi
6190
6191
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194 eval supported=\$$cacheid
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196 $as_echo "$supported" >&6; }
6197 if test "$supported" = "yes" ; then
6198 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6199 found="yes"
6200 fi
6201 fi
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 xorg_testset_save_CFLAGS="$CFLAGS"
6218
6219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 xorg_cv_cc_flag_unknown_warning_option=yes
6232 else
6233 xorg_cv_cc_flag_unknown_warning_option=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246 fi
6247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 xorg_cv_cc_flag_unused_command_line_argument=yes
6259 else
6260 xorg_cv_cc_flag_unused_command_line_argument=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6267 CFLAGS="$xorg_testset_save_CFLAGS"
6268 fi
6269
6270 found="no"
6271
6272 if test $found = "no" ; then
6273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 fi
6276
6277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6279 fi
6280
6281 CFLAGS="$CFLAGS -Wmissing-noreturn"
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6284 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6285 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6286 if eval \${$cacheid+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 int i;
6292 int
6293 main ()
6294 {
6295
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 if ac_fn_c_try_link "$LINENO"; then :
6301 eval $cacheid=yes
6302 else
6303 eval $cacheid=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 fi
6308
6309
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311
6312 eval supported=\$$cacheid
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6314 $as_echo "$supported" >&6; }
6315 if test "$supported" = "yes" ; then
6316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6317 found="yes"
6318 fi
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 xorg_testset_save_CFLAGS="$CFLAGS"
6336
6337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6341 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 xorg_cv_cc_flag_unknown_warning_option=yes
6350 else
6351 xorg_cv_cc_flag_unknown_warning_option=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6356 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6359 fi
6360
6361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364 fi
6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6367 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6368 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 int i;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"; then :
6376 xorg_cv_cc_flag_unused_command_line_argument=yes
6377 else
6378 xorg_cv_cc_flag_unused_command_line_argument=no
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6383 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6385 CFLAGS="$xorg_testset_save_CFLAGS"
6386 fi
6387
6388 found="no"
6389
6390 if test $found = "no" ; then
6391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393 fi
6394
6395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6397 fi
6398
6399 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6402 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6403 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6404 if eval \${$cacheid+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 int i;
6410 int
6411 main ()
6412 {
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_link "$LINENO"; then :
6419 eval $cacheid=yes
6420 else
6421 eval $cacheid=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext \
6424 conftest$ac_exeext conftest.$ac_ext
6425 fi
6426
6427
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429
6430 eval supported=\$$cacheid
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6432 $as_echo "$supported" >&6; }
6433 if test "$supported" = "yes" ; then
6434 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6435 found="yes"
6436 fi
6437 fi
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 xorg_testset_save_CFLAGS="$CFLAGS"
6454
6455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6458 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6459 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 xorg_cv_cc_flag_unknown_warning_option=yes
6468 else
6469 xorg_cv_cc_flag_unknown_warning_option=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6474 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6476 CFLAGS="$xorg_testset_save_CFLAGS"
6477 fi
6478
6479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482 fi
6483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6485 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6486 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 int i;
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 xorg_cv_cc_flag_unused_command_line_argument=yes
6495 else
6496 xorg_cv_cc_flag_unused_command_line_argument=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6501 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6503 CFLAGS="$xorg_testset_save_CFLAGS"
6504 fi
6505
6506 found="no"
6507
6508 if test $found = "no" ; then
6509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511 fi
6512
6513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6515 fi
6516
6517 CFLAGS="$CFLAGS -Wredundant-decls"
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6520 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6521 cacheid=xorg_cv_cc_flag__Wredundant_decls
6522 if eval \${$cacheid+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 int i;
6528 int
6529 main ()
6530 {
6531
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_link "$LINENO"; then :
6537 eval $cacheid=yes
6538 else
6539 eval $cacheid=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543 fi
6544
6545
6546 CFLAGS="$xorg_testset_save_CFLAGS"
6547
6548 eval supported=\$$cacheid
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6550 $as_echo "$supported" >&6; }
6551 if test "$supported" = "yes" ; then
6552 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6553 found="yes"
6554 fi
6555 fi
6556
6557
6558
6559 # These are currently disabled because they are noisy. They will be enabled
6560 # in the future once the codebase is sufficiently modernized to silence
6561 # them. For now, I don't want them to drown out the other warnings.
6562 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6563 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6564 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6565
6566 # Turn some warnings into errors, so we don't accidently get successful builds
6567 # when there are problems that should be fixed.
6568
6569 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 xorg_testset_save_CFLAGS="$CFLAGS"
6584
6585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6588 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6589 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 xorg_cv_cc_flag_unknown_warning_option=yes
6598 else
6599 xorg_cv_cc_flag_unknown_warning_option=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6604 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6607 fi
6608
6609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 fi
6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6615 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6616 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 xorg_cv_cc_flag_unused_command_line_argument=yes
6625 else
6626 xorg_cv_cc_flag_unused_command_line_argument=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6631 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6633 CFLAGS="$xorg_testset_save_CFLAGS"
6634 fi
6635
6636 found="no"
6637
6638 if test $found = "no" ; then
6639 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641 fi
6642
6643 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6645 fi
6646
6647 CFLAGS="$CFLAGS -Werror=implicit"
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6650 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6651 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6652 if eval \${$cacheid+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 int i;
6658 int
6659 main ()
6660 {
6661
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667 eval $cacheid=yes
6668 else
6669 eval $cacheid=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 fi
6674
6675
6676 CFLAGS="$xorg_testset_save_CFLAGS"
6677
6678 eval supported=\$$cacheid
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6680 $as_echo "$supported" >&6; }
6681 if test "$supported" = "yes" ; then
6682 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6683 found="yes"
6684 fi
6685 fi
6686
6687 if test $found = "no" ; then
6688 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 fi
6691
6692 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6694 fi
6695
6696 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6697
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6699 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6700 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6701 if eval \${$cacheid+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 int i;
6707 int
6708 main ()
6709 {
6710
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 if ac_fn_c_try_link "$LINENO"; then :
6716 eval $cacheid=yes
6717 else
6718 eval $cacheid=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6722 fi
6723
6724
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726
6727 eval supported=\$$cacheid
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6729 $as_echo "$supported" >&6; }
6730 if test "$supported" = "yes" ; then
6731 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6732 found="yes"
6733 fi
6734 fi
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750 xorg_testset_save_CFLAGS="$CFLAGS"
6751
6752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 int i;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 xorg_cv_cc_flag_unknown_warning_option=yes
6765 else
6766 xorg_cv_cc_flag_unknown_warning_option=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6773 CFLAGS="$xorg_testset_save_CFLAGS"
6774 fi
6775
6776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6779 fi
6780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 xorg_cv_cc_flag_unused_command_line_argument=yes
6792 else
6793 xorg_cv_cc_flag_unused_command_line_argument=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6798 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6801 fi
6802
6803 found="no"
6804
6805 if test $found = "no" ; then
6806 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 fi
6809
6810 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6812 fi
6813
6814 CFLAGS="$CFLAGS -Werror=nonnull"
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6817 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6818 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6819 if eval \${$cacheid+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int i;
6825 int
6826 main ()
6827 {
6828
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_link "$LINENO"; then :
6834 eval $cacheid=yes
6835 else
6836 eval $cacheid=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6840 fi
6841
6842
6843 CFLAGS="$xorg_testset_save_CFLAGS"
6844
6845 eval supported=\$$cacheid
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6847 $as_echo "$supported" >&6; }
6848 if test "$supported" = "yes" ; then
6849 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6850 found="yes"
6851 fi
6852 fi
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 xorg_testset_save_CFLAGS="$CFLAGS"
6869
6870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882 xorg_cv_cc_flag_unknown_warning_option=yes
6883 else
6884 xorg_cv_cc_flag_unknown_warning_option=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6891 CFLAGS="$xorg_testset_save_CFLAGS"
6892 fi
6893
6894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897 fi
6898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 int i;
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 xorg_cv_cc_flag_unused_command_line_argument=yes
6910 else
6911 xorg_cv_cc_flag_unused_command_line_argument=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6918 CFLAGS="$xorg_testset_save_CFLAGS"
6919 fi
6920
6921 found="no"
6922
6923 if test $found = "no" ; then
6924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 fi
6927
6928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930 fi
6931
6932 CFLAGS="$CFLAGS -Werror=init-self"
6933
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6935 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6936 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6937 if eval \${$cacheid+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 int i;
6943 int
6944 main ()
6945 {
6946
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 if ac_fn_c_try_link "$LINENO"; then :
6952 eval $cacheid=yes
6953 else
6954 eval $cacheid=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6958 fi
6959
6960
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962
6963 eval supported=\$$cacheid
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6965 $as_echo "$supported" >&6; }
6966 if test "$supported" = "yes" ; then
6967 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6968 found="yes"
6969 fi
6970 fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986 xorg_testset_save_CFLAGS="$CFLAGS"
6987
6988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 xorg_cv_cc_flag_unknown_warning_option=yes
7001 else
7002 xorg_cv_cc_flag_unknown_warning_option=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010 fi
7011
7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015 fi
7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int i;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 xorg_cv_cc_flag_unused_command_line_argument=yes
7028 else
7029 xorg_cv_cc_flag_unused_command_line_argument=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036 CFLAGS="$xorg_testset_save_CFLAGS"
7037 fi
7038
7039 found="no"
7040
7041 if test $found = "no" ; then
7042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 fi
7045
7046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048 fi
7049
7050 CFLAGS="$CFLAGS -Werror=main"
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7053 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7054 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7055 if eval \${$cacheid+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 int i;
7061 int
7062 main ()
7063 {
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"; then :
7070 eval $cacheid=yes
7071 else
7072 eval $cacheid=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7076 fi
7077
7078
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081 eval supported=\$$cacheid
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083 $as_echo "$supported" >&6; }
7084 if test "$supported" = "yes" ; then
7085 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7086 found="yes"
7087 fi
7088 fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 xorg_testset_save_CFLAGS="$CFLAGS"
7105
7106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 xorg_cv_cc_flag_unknown_warning_option=yes
7119 else
7120 xorg_cv_cc_flag_unknown_warning_option=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7127 CFLAGS="$xorg_testset_save_CFLAGS"
7128 fi
7129
7130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133 fi
7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 int i;
7143 _ACEOF
7144 if ac_fn_c_try_compile "$LINENO"; then :
7145 xorg_cv_cc_flag_unused_command_line_argument=yes
7146 else
7147 xorg_cv_cc_flag_unused_command_line_argument=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155 fi
7156
7157 found="no"
7158
7159 if test $found = "no" ; then
7160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 fi
7163
7164 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7166 fi
7167
7168 CFLAGS="$CFLAGS -Werror=missing-braces"
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7171 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7172 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7173 if eval \${$cacheid+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 int i;
7179 int
7180 main ()
7181 {
7182
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 if ac_fn_c_try_link "$LINENO"; then :
7188 eval $cacheid=yes
7189 else
7190 eval $cacheid=no
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 fi
7195
7196
7197 CFLAGS="$xorg_testset_save_CFLAGS"
7198
7199 eval supported=\$$cacheid
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7201 $as_echo "$supported" >&6; }
7202 if test "$supported" = "yes" ; then
7203 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7204 found="yes"
7205 fi
7206 fi
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 xorg_cv_cc_flag_unknown_warning_option=yes
7237 else
7238 xorg_cv_cc_flag_unknown_warning_option=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7245 CFLAGS="$xorg_testset_save_CFLAGS"
7246 fi
7247
7248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251 fi
7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 int i;
7261 _ACEOF
7262 if ac_fn_c_try_compile "$LINENO"; then :
7263 xorg_cv_cc_flag_unused_command_line_argument=yes
7264 else
7265 xorg_cv_cc_flag_unused_command_line_argument=no
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7272 CFLAGS="$xorg_testset_save_CFLAGS"
7273 fi
7274
7275 found="no"
7276
7277 if test $found = "no" ; then
7278 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 fi
7281
7282 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7284 fi
7285
7286 CFLAGS="$CFLAGS -Werror=sequence-point"
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7289 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7290 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7291 if eval \${$cacheid+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 int i;
7297 int
7298 main ()
7299 {
7300
7301 ;
7302 return 0;
7303 }
7304 _ACEOF
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 eval $cacheid=yes
7307 else
7308 eval $cacheid=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 fi
7313
7314
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316
7317 eval supported=\$$cacheid
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7319 $as_echo "$supported" >&6; }
7320 if test "$supported" = "yes" ; then
7321 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7322 found="yes"
7323 fi
7324 fi
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 xorg_testset_save_CFLAGS="$CFLAGS"
7341
7342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 _ACEOF
7353 if ac_fn_c_try_compile "$LINENO"; then :
7354 xorg_cv_cc_flag_unknown_warning_option=yes
7355 else
7356 xorg_cv_cc_flag_unknown_warning_option=no
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7363 CFLAGS="$xorg_testset_save_CFLAGS"
7364 fi
7365
7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369 fi
7370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 int i;
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"; then :
7381 xorg_cv_cc_flag_unused_command_line_argument=yes
7382 else
7383 xorg_cv_cc_flag_unused_command_line_argument=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7390 CFLAGS="$xorg_testset_save_CFLAGS"
7391 fi
7392
7393 found="no"
7394
7395 if test $found = "no" ; then
7396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398 fi
7399
7400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7402 fi
7403
7404 CFLAGS="$CFLAGS -Werror=return-type"
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7407 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7408 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7409 if eval \${$cacheid+:} false; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 int i;
7415 int
7416 main ()
7417 {
7418
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_link "$LINENO"; then :
7424 eval $cacheid=yes
7425 else
7426 eval $cacheid=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 fi
7431
7432
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435 eval supported=\$$cacheid
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437 $as_echo "$supported" >&6; }
7438 if test "$supported" = "yes" ; then
7439 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7440 found="yes"
7441 fi
7442 fi
7443
7444 if test $found = "no" ; then
7445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447 fi
7448
7449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7451 fi
7452
7453 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7456 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7457 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7458 if eval \${$cacheid+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473 eval $cacheid=yes
7474 else
7475 eval $cacheid=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 fi
7480
7481
7482 CFLAGS="$xorg_testset_save_CFLAGS"
7483
7484 eval supported=\$$cacheid
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7486 $as_echo "$supported" >&6; }
7487 if test "$supported" = "yes" ; then
7488 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7489 found="yes"
7490 fi
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 xorg_testset_save_CFLAGS="$CFLAGS"
7508
7509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 xorg_cv_cc_flag_unknown_warning_option=yes
7522 else
7523 xorg_cv_cc_flag_unknown_warning_option=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7531 fi
7532
7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536 fi
7537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 xorg_cv_cc_flag_unused_command_line_argument=yes
7549 else
7550 xorg_cv_cc_flag_unused_command_line_argument=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 found="no"
7561
7562 if test $found = "no" ; then
7563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 fi
7566
7567 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569 fi
7570
7571 CFLAGS="$CFLAGS -Werror=trigraphs"
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7574 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7575 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7576 if eval \${$cacheid+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 int
7583 main ()
7584 {
7585
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"; then :
7591 eval $cacheid=yes
7592 else
7593 eval $cacheid=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7597 fi
7598
7599
7600 CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602 eval supported=\$$cacheid
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604 $as_echo "$supported" >&6; }
7605 if test "$supported" = "yes" ; then
7606 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7607 found="yes"
7608 fi
7609 fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 xorg_cv_cc_flag_unknown_warning_option=yes
7640 else
7641 xorg_cv_cc_flag_unknown_warning_option=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649 fi
7650
7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 fi
7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 int i;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 xorg_cv_cc_flag_unused_command_line_argument=yes
7667 else
7668 xorg_cv_cc_flag_unused_command_line_argument=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676 fi
7677
7678 found="no"
7679
7680 if test $found = "no" ; then
7681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 fi
7684
7685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687 fi
7688
7689 CFLAGS="$CFLAGS -Werror=array-bounds"
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7692 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7693 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7694 if eval \${$cacheid+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 int
7701 main ()
7702 {
7703
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 if ac_fn_c_try_link "$LINENO"; then :
7709 eval $cacheid=yes
7710 else
7711 eval $cacheid=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 fi
7716
7717
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720 eval supported=\$$cacheid
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722 $as_echo "$supported" >&6; }
7723 if test "$supported" = "yes" ; then
7724 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7725 found="yes"
7726 fi
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 xorg_cv_cc_flag_unknown_warning_option=yes
7758 else
7759 xorg_cv_cc_flag_unknown_warning_option=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 xorg_cv_cc_flag_unused_command_line_argument=yes
7785 else
7786 xorg_cv_cc_flag_unused_command_line_argument=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 found="no"
7797
7798 if test $found = "no" ; then
7799 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 fi
7802
7803 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805 fi
7806
7807 CFLAGS="$CFLAGS -Werror=write-strings"
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7810 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7811 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7812 if eval \${$cacheid+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int i;
7818 int
7819 main ()
7820 {
7821
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"; then :
7827 eval $cacheid=yes
7828 else
7829 eval $cacheid=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833 fi
7834
7835
7836 CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838 eval supported=\$$cacheid
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840 $as_echo "$supported" >&6; }
7841 if test "$supported" = "yes" ; then
7842 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7843 found="yes"
7844 fi
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 xorg_testset_save_CFLAGS="$CFLAGS"
7862
7863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7866 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7867 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 xorg_cv_cc_flag_unknown_warning_option=yes
7876 else
7877 xorg_cv_cc_flag_unknown_warning_option=no
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7882 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7884 CFLAGS="$xorg_testset_save_CFLAGS"
7885 fi
7886
7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890 fi
7891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7893 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7894 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 int i;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 xorg_cv_cc_flag_unused_command_line_argument=yes
7903 else
7904 xorg_cv_cc_flag_unused_command_line_argument=no
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7909 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7911 CFLAGS="$xorg_testset_save_CFLAGS"
7912 fi
7913
7914 found="no"
7915
7916 if test $found = "no" ; then
7917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 fi
7920
7921 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7923 fi
7924
7925 CFLAGS="$CFLAGS -Werror=address"
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7928 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7929 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7930 if eval \${$cacheid+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 int i;
7936 int
7937 main ()
7938 {
7939
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"; then :
7945 eval $cacheid=yes
7946 else
7947 eval $cacheid=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952
7953
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955
7956 eval supported=\$$cacheid
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7958 $as_echo "$supported" >&6; }
7959 if test "$supported" = "yes" ; then
7960 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7961 found="yes"
7962 fi
7963 fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 xorg_testset_save_CFLAGS="$CFLAGS"
7980
7981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7984 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7985 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993 xorg_cv_cc_flag_unknown_warning_option=yes
7994 else
7995 xorg_cv_cc_flag_unknown_warning_option=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8000 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8002 CFLAGS="$xorg_testset_save_CFLAGS"
8003 fi
8004
8005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008 fi
8009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8011 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8012 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 int i;
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020 xorg_cv_cc_flag_unused_command_line_argument=yes
8021 else
8022 xorg_cv_cc_flag_unused_command_line_argument=no
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8027 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8029 CFLAGS="$xorg_testset_save_CFLAGS"
8030 fi
8031
8032 found="no"
8033
8034 if test $found = "no" ; then
8035 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 fi
8038
8039 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041 fi
8042
8043 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8046 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8047 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8048 if eval \${$cacheid+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 int i;
8054 int
8055 main ()
8056 {
8057
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 eval $cacheid=yes
8064 else
8065 eval $cacheid=no
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 fi
8070
8071
8072 CFLAGS="$xorg_testset_save_CFLAGS"
8073
8074 eval supported=\$$cacheid
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8076 $as_echo "$supported" >&6; }
8077 if test "$supported" = "yes" ; then
8078 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8079 found="yes"
8080 fi
8081 fi
8082
8083 if test $found = "no" ; then
8084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086 fi
8087
8088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8090 fi
8091
8092 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8095 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8096 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8097 if eval \${$cacheid+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 int i;
8103 int
8104 main ()
8105 {
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 eval $cacheid=yes
8113 else
8114 eval $cacheid=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 fi
8119
8120
8121 CFLAGS="$xorg_testset_save_CFLAGS"
8122
8123 eval supported=\$$cacheid
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8125 $as_echo "$supported" >&6; }
8126 if test "$supported" = "yes" ; then
8127 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8128 found="yes"
8129 fi
8130 fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 xorg_testset_save_CFLAGS="$CFLAGS"
8147
8148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160 xorg_cv_cc_flag_unknown_warning_option=yes
8161 else
8162 xorg_cv_cc_flag_unknown_warning_option=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8169 CFLAGS="$xorg_testset_save_CFLAGS"
8170 fi
8171
8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175 fi
8176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 xorg_cv_cc_flag_unused_command_line_argument=yes
8188 else
8189 xorg_cv_cc_flag_unused_command_line_argument=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 found="no"
8200
8201 if test $found = "no" ; then
8202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 fi
8205
8206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208 fi
8209
8210 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8213 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8214 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8215 if eval \${$cacheid+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 int
8222 main ()
8223 {
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 eval $cacheid=yes
8231 else
8232 eval $cacheid=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
8236 fi
8237
8238
8239 CFLAGS="$xorg_testset_save_CFLAGS"
8240
8241 eval supported=\$$cacheid
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8243 $as_echo "$supported" >&6; }
8244 if test "$supported" = "yes" ; then
8245 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8246 found="yes"
8247 fi
8248 fi
8249
8250 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8253 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267 xorg_testset_save_CFLAGS="$CFLAGS"
8268
8269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 int i;
8279 _ACEOF
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281 xorg_cv_cc_flag_unknown_warning_option=yes
8282 else
8283 xorg_cv_cc_flag_unknown_warning_option=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8291 fi
8292
8293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 fi
8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 int i;
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"; then :
8308 xorg_cv_cc_flag_unused_command_line_argument=yes
8309 else
8310 xorg_cv_cc_flag_unused_command_line_argument=no
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8317 CFLAGS="$xorg_testset_save_CFLAGS"
8318 fi
8319
8320 found="no"
8321
8322 if test $found = "no" ; then
8323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 fi
8326
8327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329 fi
8330
8331 CFLAGS="$CFLAGS -Wimplicit"
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8334 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8335 cacheid=xorg_cv_cc_flag__Wimplicit
8336 if eval \${$cacheid+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341 int i;
8342 int
8343 main ()
8344 {
8345
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 eval $cacheid=yes
8352 else
8353 eval $cacheid=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 fi
8358
8359
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361
8362 eval supported=\$$cacheid
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8364 $as_echo "$supported" >&6; }
8365 if test "$supported" = "yes" ; then
8366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8367 found="yes"
8368 fi
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385 xorg_testset_save_CFLAGS="$CFLAGS"
8386
8387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8390 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8391 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 int i;
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 xorg_cv_cc_flag_unknown_warning_option=yes
8400 else
8401 xorg_cv_cc_flag_unknown_warning_option=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8406 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409 fi
8410
8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8417 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8418 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 int i;
8424 _ACEOF
8425 if ac_fn_c_try_compile "$LINENO"; then :
8426 xorg_cv_cc_flag_unused_command_line_argument=yes
8427 else
8428 xorg_cv_cc_flag_unused_command_line_argument=no
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8433 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8435 CFLAGS="$xorg_testset_save_CFLAGS"
8436 fi
8437
8438 found="no"
8439
8440 if test $found = "no" ; then
8441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443 fi
8444
8445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8447 fi
8448
8449 CFLAGS="$CFLAGS -Wnonnull"
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8452 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8453 cacheid=xorg_cv_cc_flag__Wnonnull
8454 if eval \${$cacheid+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 int i;
8460 int
8461 main ()
8462 {
8463
8464 ;
8465 return 0;
8466 }
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 eval $cacheid=yes
8470 else
8471 eval $cacheid=no
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 fi
8476
8477
8478 CFLAGS="$xorg_testset_save_CFLAGS"
8479
8480 eval supported=\$$cacheid
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8482 $as_echo "$supported" >&6; }
8483 if test "$supported" = "yes" ; then
8484 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8485 found="yes"
8486 fi
8487 fi
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 xorg_testset_save_CFLAGS="$CFLAGS"
8504
8505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 xorg_cv_cc_flag_unknown_warning_option=yes
8518 else
8519 xorg_cv_cc_flag_unknown_warning_option=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8526 CFLAGS="$xorg_testset_save_CFLAGS"
8527 fi
8528
8529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532 fi
8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 int i;
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544 xorg_cv_cc_flag_unused_command_line_argument=yes
8545 else
8546 xorg_cv_cc_flag_unused_command_line_argument=no
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8553 CFLAGS="$xorg_testset_save_CFLAGS"
8554 fi
8555
8556 found="no"
8557
8558 if test $found = "no" ; then
8559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561 fi
8562
8563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8565 fi
8566
8567 CFLAGS="$CFLAGS -Winit-self"
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8570 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8571 cacheid=xorg_cv_cc_flag__Winit_self
8572 if eval \${$cacheid+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 int i;
8578 int
8579 main ()
8580 {
8581
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_link "$LINENO"; then :
8587 eval $cacheid=yes
8588 else
8589 eval $cacheid=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 fi
8594
8595
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597
8598 eval supported=\$$cacheid
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8600 $as_echo "$supported" >&6; }
8601 if test "$supported" = "yes" ; then
8602 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8603 found="yes"
8604 fi
8605 fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 xorg_testset_save_CFLAGS="$CFLAGS"
8622
8623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"; then :
8635 xorg_cv_cc_flag_unknown_warning_option=yes
8636 else
8637 xorg_cv_cc_flag_unknown_warning_option=no
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8644 CFLAGS="$xorg_testset_save_CFLAGS"
8645 fi
8646
8647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650 fi
8651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 int i;
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"; then :
8662 xorg_cv_cc_flag_unused_command_line_argument=yes
8663 else
8664 xorg_cv_cc_flag_unused_command_line_argument=no
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672 fi
8673
8674 found="no"
8675
8676 if test $found = "no" ; then
8677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 fi
8680
8681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683 fi
8684
8685 CFLAGS="$CFLAGS -Wmain"
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8688 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8689 cacheid=xorg_cv_cc_flag__Wmain
8690 if eval \${$cacheid+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 int
8697 main ()
8698 {
8699
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"; then :
8705 eval $cacheid=yes
8706 else
8707 eval $cacheid=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 fi
8712
8713
8714 CFLAGS="$xorg_testset_save_CFLAGS"
8715
8716 eval supported=\$$cacheid
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8718 $as_echo "$supported" >&6; }
8719 if test "$supported" = "yes" ; then
8720 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8721 found="yes"
8722 fi
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739 xorg_testset_save_CFLAGS="$CFLAGS"
8740
8741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"; then :
8753 xorg_cv_cc_flag_unknown_warning_option=yes
8754 else
8755 xorg_cv_cc_flag_unknown_warning_option=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8762 CFLAGS="$xorg_testset_save_CFLAGS"
8763 fi
8764
8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768 fi
8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777 int i;
8778 _ACEOF
8779 if ac_fn_c_try_compile "$LINENO"; then :
8780 xorg_cv_cc_flag_unused_command_line_argument=yes
8781 else
8782 xorg_cv_cc_flag_unused_command_line_argument=no
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8789 CFLAGS="$xorg_testset_save_CFLAGS"
8790 fi
8791
8792 found="no"
8793
8794 if test $found = "no" ; then
8795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797 fi
8798
8799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8801 fi
8802
8803 CFLAGS="$CFLAGS -Wmissing-braces"
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8806 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8807 cacheid=xorg_cv_cc_flag__Wmissing_braces
8808 if eval \${$cacheid+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 int i;
8814 int
8815 main ()
8816 {
8817
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_link "$LINENO"; then :
8823 eval $cacheid=yes
8824 else
8825 eval $cacheid=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 fi
8830
8831
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833
8834 eval supported=\$$cacheid
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8836 $as_echo "$supported" >&6; }
8837 if test "$supported" = "yes" ; then
8838 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8839 found="yes"
8840 fi
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 xorg_testset_save_CFLAGS="$CFLAGS"
8858
8859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 xorg_cv_cc_flag_unknown_warning_option=yes
8872 else
8873 xorg_cv_cc_flag_unknown_warning_option=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 xorg_cv_cc_flag_unused_command_line_argument=yes
8899 else
8900 xorg_cv_cc_flag_unused_command_line_argument=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908 fi
8909
8910 found="no"
8911
8912 if test $found = "no" ; then
8913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 fi
8916
8917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919 fi
8920
8921 CFLAGS="$CFLAGS -Wsequence-point"
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8924 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8925 cacheid=xorg_cv_cc_flag__Wsequence_point
8926 if eval \${$cacheid+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 int i;
8932 int
8933 main ()
8934 {
8935
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 eval $cacheid=yes
8942 else
8943 eval $cacheid=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 fi
8948
8949
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8951
8952 eval supported=\$$cacheid
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8954 $as_echo "$supported" >&6; }
8955 if test "$supported" = "yes" ; then
8956 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8957 found="yes"
8958 fi
8959 fi
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975 xorg_testset_save_CFLAGS="$CFLAGS"
8976
8977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8980 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8981 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"; then :
8989 xorg_cv_cc_flag_unknown_warning_option=yes
8990 else
8991 xorg_cv_cc_flag_unknown_warning_option=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8996 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999 fi
9000
9001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 fi
9005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9007 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9008 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 int i;
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"; then :
9016 xorg_cv_cc_flag_unused_command_line_argument=yes
9017 else
9018 xorg_cv_cc_flag_unused_command_line_argument=no
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9023 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9025 CFLAGS="$xorg_testset_save_CFLAGS"
9026 fi
9027
9028 found="no"
9029
9030 if test $found = "no" ; then
9031 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033 fi
9034
9035 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9037 fi
9038
9039 CFLAGS="$CFLAGS -Wreturn-type"
9040
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9042 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9043 cacheid=xorg_cv_cc_flag__Wreturn_type
9044 if eval \${$cacheid+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int i;
9050 int
9051 main ()
9052 {
9053
9054 ;
9055 return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"; then :
9059 eval $cacheid=yes
9060 else
9061 eval $cacheid=no
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 fi
9066
9067
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069
9070 eval supported=\$$cacheid
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072 $as_echo "$supported" >&6; }
9073 if test "$supported" = "yes" ; then
9074 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9075 found="yes"
9076 fi
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093 xorg_testset_save_CFLAGS="$CFLAGS"
9094
9095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9098 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9099 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 xorg_cv_cc_flag_unknown_warning_option=yes
9108 else
9109 xorg_cv_cc_flag_unknown_warning_option=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9114 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9116 CFLAGS="$xorg_testset_save_CFLAGS"
9117 fi
9118
9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122 fi
9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9125 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9126 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 int i;
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"; then :
9134 xorg_cv_cc_flag_unused_command_line_argument=yes
9135 else
9136 xorg_cv_cc_flag_unused_command_line_argument=no
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9141 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9143 CFLAGS="$xorg_testset_save_CFLAGS"
9144 fi
9145
9146 found="no"
9147
9148 if test $found = "no" ; then
9149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 fi
9152
9153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9155 fi
9156
9157 CFLAGS="$CFLAGS -Wtrigraphs"
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9160 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9161 cacheid=xorg_cv_cc_flag__Wtrigraphs
9162 if eval \${$cacheid+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 int i;
9168 int
9169 main ()
9170 {
9171
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 eval $cacheid=yes
9178 else
9179 eval $cacheid=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi
9184
9185
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188 eval supported=\$$cacheid
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190 $as_echo "$supported" >&6; }
9191 if test "$supported" = "yes" ; then
9192 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9193 found="yes"
9194 fi
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 xorg_cv_cc_flag_unknown_warning_option=yes
9226 else
9227 xorg_cv_cc_flag_unknown_warning_option=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9232 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9234 CFLAGS="$xorg_testset_save_CFLAGS"
9235 fi
9236
9237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240 fi
9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9243 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9244 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 int i;
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"; then :
9252 xorg_cv_cc_flag_unused_command_line_argument=yes
9253 else
9254 xorg_cv_cc_flag_unused_command_line_argument=no
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9259 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9261 CFLAGS="$xorg_testset_save_CFLAGS"
9262 fi
9263
9264 found="no"
9265
9266 if test $found = "no" ; then
9267 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 fi
9270
9271 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9273 fi
9274
9275 CFLAGS="$CFLAGS -Warray-bounds"
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9278 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9279 cacheid=xorg_cv_cc_flag__Warray_bounds
9280 if eval \${$cacheid+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 int i;
9286 int
9287 main ()
9288 {
9289
9290 ;
9291 return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 eval $cacheid=yes
9296 else
9297 eval $cacheid=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi
9302
9303
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305
9306 eval supported=\$$cacheid
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9308 $as_echo "$supported" >&6; }
9309 if test "$supported" = "yes" ; then
9310 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9311 found="yes"
9312 fi
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 xorg_testset_save_CFLAGS="$CFLAGS"
9330
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 _ACEOF
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 xorg_cv_cc_flag_unknown_warning_option=yes
9344 else
9345 xorg_cv_cc_flag_unknown_warning_option=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9352 CFLAGS="$xorg_testset_save_CFLAGS"
9353 fi
9354
9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358 fi
9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 int i;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"; then :
9370 xorg_cv_cc_flag_unused_command_line_argument=yes
9371 else
9372 xorg_cv_cc_flag_unused_command_line_argument=no
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380 fi
9381
9382 found="no"
9383
9384 if test $found = "no" ; then
9385 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 fi
9388
9389 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391 fi
9392
9393 CFLAGS="$CFLAGS -Wwrite-strings"
9394
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9396 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9397 cacheid=xorg_cv_cc_flag__Wwrite_strings
9398 if eval \${$cacheid+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 int i;
9404 int
9405 main ()
9406 {
9407
9408 ;
9409 return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9413 eval $cacheid=yes
9414 else
9415 eval $cacheid=no
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 fi
9420
9421
9422 CFLAGS="$xorg_testset_save_CFLAGS"
9423
9424 eval supported=\$$cacheid
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9426 $as_echo "$supported" >&6; }
9427 if test "$supported" = "yes" ; then
9428 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9429 found="yes"
9430 fi
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 xorg_testset_save_CFLAGS="$CFLAGS"
9448
9449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 _ACEOF
9460 if ac_fn_c_try_compile "$LINENO"; then :
9461 xorg_cv_cc_flag_unknown_warning_option=yes
9462 else
9463 xorg_cv_cc_flag_unknown_warning_option=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9470 CFLAGS="$xorg_testset_save_CFLAGS"
9471 fi
9472
9473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476 fi
9477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 int i;
9486 _ACEOF
9487 if ac_fn_c_try_compile "$LINENO"; then :
9488 xorg_cv_cc_flag_unused_command_line_argument=yes
9489 else
9490 xorg_cv_cc_flag_unused_command_line_argument=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497 CFLAGS="$xorg_testset_save_CFLAGS"
9498 fi
9499
9500 found="no"
9501
9502 if test $found = "no" ; then
9503 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 fi
9506
9507 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509 fi
9510
9511 CFLAGS="$CFLAGS -Waddress"
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9514 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9515 cacheid=xorg_cv_cc_flag__Waddress
9516 if eval \${$cacheid+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int i;
9522 int
9523 main ()
9524 {
9525
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 eval $cacheid=yes
9532 else
9533 eval $cacheid=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 fi
9538
9539
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542 eval supported=\$$cacheid
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544 $as_echo "$supported" >&6; }
9545 if test "$supported" = "yes" ; then
9546 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9547 found="yes"
9548 fi
9549 fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 _ACEOF
9578 if ac_fn_c_try_compile "$LINENO"; then :
9579 xorg_cv_cc_flag_unknown_warning_option=yes
9580 else
9581 xorg_cv_cc_flag_unknown_warning_option=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588 CFLAGS="$xorg_testset_save_CFLAGS"
9589 fi
9590
9591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594 fi
9595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 int i;
9604 _ACEOF
9605 if ac_fn_c_try_compile "$LINENO"; then :
9606 xorg_cv_cc_flag_unused_command_line_argument=yes
9607 else
9608 xorg_cv_cc_flag_unused_command_line_argument=no
9609 fi
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9615 CFLAGS="$xorg_testset_save_CFLAGS"
9616 fi
9617
9618 found="no"
9619
9620 if test $found = "no" ; then
9621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623 fi
9624
9625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9627 fi
9628
9629 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9632 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9633 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9634 if eval \${$cacheid+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 int i;
9640 int
9641 main ()
9642 {
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649 eval $cacheid=yes
9650 else
9651 eval $cacheid=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 fi
9656
9657
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659
9660 eval supported=\$$cacheid
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9662 $as_echo "$supported" >&6; }
9663 if test "$supported" = "yes" ; then
9664 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9665 found="yes"
9666 fi
9667 fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683 xorg_testset_save_CFLAGS="$CFLAGS"
9684
9685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 _ACEOF
9696 if ac_fn_c_try_compile "$LINENO"; then :
9697 xorg_cv_cc_flag_unknown_warning_option=yes
9698 else
9699 xorg_cv_cc_flag_unknown_warning_option=no
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9706 CFLAGS="$xorg_testset_save_CFLAGS"
9707 fi
9708
9709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712 fi
9713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 int i;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 xorg_cv_cc_flag_unused_command_line_argument=yes
9725 else
9726 xorg_cv_cc_flag_unused_command_line_argument=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9733 CFLAGS="$xorg_testset_save_CFLAGS"
9734 fi
9735
9736 found="no"
9737
9738 if test $found = "no" ; then
9739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 fi
9742
9743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9745 fi
9746
9747 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9750 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9751 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9752 if eval \${$cacheid+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 int i;
9758 int
9759 main ()
9760 {
9761
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 eval $cacheid=yes
9768 else
9769 eval $cacheid=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774
9775
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777
9778 eval supported=\$$cacheid
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9780 $as_echo "$supported" >&6; }
9781 if test "$supported" = "yes" ; then
9782 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9783 found="yes"
9784 fi
9785 fi
9786
9787
9788 fi
9789
9790
9791
9792
9793
9794
9795
9796 CWARNFLAGS="$BASE_CFLAGS"
9797 if test "x$GCC" = xyes ; then
9798 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9799 fi
9800
9801
9802
9803
9804
44639805
44649806
44659807
44709812 STRICT_COMPILE=no
44719813 fi
44729814
9815
9816
9817
9818
9819
9820 STRICT_CFLAGS=""
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834 xorg_testset_save_CFLAGS="$CFLAGS"
9835
9836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 int i;
9846 _ACEOF
9847 if ac_fn_c_try_compile "$LINENO"; then :
9848 xorg_cv_cc_flag_unknown_warning_option=yes
9849 else
9850 xorg_cv_cc_flag_unknown_warning_option=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9857 CFLAGS="$xorg_testset_save_CFLAGS"
9858 fi
9859
9860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863 fi
9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 int i;
9873 _ACEOF
9874 if ac_fn_c_try_compile "$LINENO"; then :
9875 xorg_cv_cc_flag_unused_command_line_argument=yes
9876 else
9877 xorg_cv_cc_flag_unused_command_line_argument=no
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9884 CFLAGS="$xorg_testset_save_CFLAGS"
9885 fi
9886
9887 found="no"
9888
9889 if test $found = "no" ; then
9890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 fi
9893
9894 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9896 fi
9897
9898 CFLAGS="$CFLAGS -pedantic"
9899
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9901 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9902 cacheid=xorg_cv_cc_flag__pedantic
9903 if eval \${$cacheid+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int i;
9909 int
9910 main ()
9911 {
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"; then :
9918 eval $cacheid=yes
9919 else
9920 eval $cacheid=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 fi
9925
9926
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928
9929 eval supported=\$$cacheid
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9931 $as_echo "$supported" >&6; }
9932 if test "$supported" = "yes" ; then
9933 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9934 found="yes"
9935 fi
9936 fi
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952 xorg_testset_save_CFLAGS="$CFLAGS"
9953
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 int i;
9964 _ACEOF
9965 if ac_fn_c_try_compile "$LINENO"; then :
9966 xorg_cv_cc_flag_unknown_warning_option=yes
9967 else
9968 xorg_cv_cc_flag_unknown_warning_option=no
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9975 CFLAGS="$xorg_testset_save_CFLAGS"
9976 fi
9977
9978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981 fi
9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"; then :
9993 xorg_cv_cc_flag_unused_command_line_argument=yes
9994 else
9995 xorg_cv_cc_flag_unused_command_line_argument=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10002 CFLAGS="$xorg_testset_save_CFLAGS"
10003 fi
10004
10005 found="no"
10006
10007 if test $found = "no" ; then
10008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010 fi
10011
10012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10014 fi
10015
10016 CFLAGS="$CFLAGS -Werror"
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10019 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10020 cacheid=xorg_cv_cc_flag__Werror
10021 if eval \${$cacheid+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026 int i;
10027 int
10028 main ()
10029 {
10030
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 eval $cacheid=yes
10037 else
10038 eval $cacheid=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 fi
10043
10044
10045 CFLAGS="$xorg_testset_save_CFLAGS"
10046
10047 eval supported=\$$cacheid
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10049 $as_echo "$supported" >&6; }
10050 if test "$supported" = "yes" ; then
10051 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10052 found="yes"
10053 fi
10054 fi
10055
10056 if test $found = "no" ; then
10057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10059 fi
10060
10061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10063 fi
10064
10065 CFLAGS="$CFLAGS -errwarn"
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10068 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10069 cacheid=xorg_cv_cc_flag__errwarn
10070 if eval \${$cacheid+:} false; then :
10071 $as_echo_n "(cached) " >&6
10072 else
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 int i;
10076 int
10077 main ()
10078 {
10079
10080 ;
10081 return 0;
10082 }
10083 _ACEOF
10084 if ac_fn_c_try_link "$LINENO"; then :
10085 eval $cacheid=yes
10086 else
10087 eval $cacheid=no
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 fi
10092
10093
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095
10096 eval supported=\$$cacheid
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10098 $as_echo "$supported" >&6; }
10099 if test "$supported" = "yes" ; then
10100 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10101 found="yes"
10102 fi
10103 fi
10104
10105
10106
10107 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10108 # activate it with -Werror, so we add it here explicitly.
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 xorg_testset_save_CFLAGS="$CFLAGS"
10123
10124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10127 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10128 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 int i;
10134 _ACEOF
10135 if ac_fn_c_try_compile "$LINENO"; then :
10136 xorg_cv_cc_flag_unknown_warning_option=yes
10137 else
10138 xorg_cv_cc_flag_unknown_warning_option=no
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10143 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10145 CFLAGS="$xorg_testset_save_CFLAGS"
10146 fi
10147
10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151 fi
10152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10154 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10155 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 int i;
10161 _ACEOF
10162 if ac_fn_c_try_compile "$LINENO"; then :
10163 xorg_cv_cc_flag_unused_command_line_argument=yes
10164 else
10165 xorg_cv_cc_flag_unused_command_line_argument=no
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10170 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10172 CFLAGS="$xorg_testset_save_CFLAGS"
10173 fi
10174
10175 found="no"
10176
10177 if test $found = "no" ; then
10178 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10180 fi
10181
10182 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184 fi
10185
10186 CFLAGS="$CFLAGS -Werror=attributes"
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10189 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10190 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10191 if eval \${$cacheid+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 int i;
10197 int
10198 main ()
10199 {
10200
10201 ;
10202 return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206 eval $cacheid=yes
10207 else
10208 eval $cacheid=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212 fi
10213
10214
10215 CFLAGS="$xorg_testset_save_CFLAGS"
10216
10217 eval supported=\$$cacheid
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10219 $as_echo "$supported" >&6; }
10220 if test "$supported" = "yes" ; then
10221 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10222 found="yes"
10223 fi
10224 fi
10225
10226
10227
447310228 if test "x$STRICT_COMPILE" = "xyes"; then
4474 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4475 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4476 SUNCC="yes"
4477 else
4478 SUNCC="no"
4479 fi
4480
4481 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4482 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4483 INTELCC="yes"
4484 else
4485 INTELCC="no"
4486 fi
4487
4488 if test "x$GCC" = xyes ; then
4489 STRICT_CFLAGS="-pedantic -Werror"
4490 elif test "x$SUNCC" = "xyes"; then
4491 STRICT_CFLAGS="-errwarn"
4492 elif test "x$INTELCC" = "xyes"; then
4493 STRICT_CFLAGS="-Werror"
4494 fi
4495 fi
4496 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10229 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10230 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10231 fi
10232
10233
449710234
449810235
449910236
488210619 fi
488310620
488410621
4885 as_ac_File=`$as_echo "ac_cv_file_$srcdir/gram.c" | $as_tr_sh`
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/gram.c" >&5
4887 $as_echo_n "checking for $srcdir/gram.c... " >&6; }
4888 if eval \${$as_ac_File+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 test "$cross_compiling" = yes &&
4892 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4893 if test -r "$srcdir/gram.c"; then
4894 eval "$as_ac_File=yes"
4895 else
4896 eval "$as_ac_File=no"
4897 fi
4898 fi
4899 eval ac_res=\$$as_ac_File
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4901 $as_echo "$ac_res" >&6; }
4902 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
4903
4904 else
4905 test -z "$YACC_INST" && as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
4906 fi
4907
10622 if test ! -f "gram.c"; then
10623 if test -z "$YACC_INST"; then
10624 as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10625 fi
10626 fi
490810627
490910628
491010629 pkg_failed=no
500310722
500410723
500510724
5006 ac_config_files="$ac_config_files Makefile"
10725 ac_config_files="$ac_config_files Makefile man/Makefile"
500710726
500810727 cat >confcache <<\_ACEOF
500910728 # This file is a shell script that caches the results of configure
554311262 # report actual input values of CONFIG_FILES etc. instead of their
554411263 # values after options handling.
554511264 ac_log="
5546 This file was extended by xgc $as_me 1.0.3, which was
11265 This file was extended by xgc $as_me 1.0.4, which was
554711266 generated by GNU Autoconf 2.68. Invocation command line was
554811267
554911268 CONFIG_FILES = $CONFIG_FILES
560911328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
561011329 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
561111330 ac_cs_version="\\
5612 xgc config.status 1.0.3
11331 xgc config.status 1.0.4
561311332 configured by $0, generated by GNU Autoconf 2.68,
561411333 with options \\"\$ac_cs_config\\"
561511334
574111460 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
574211461 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
574311462 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11463 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
574411464
574511465 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
574611466 esac
1919 dnl
2020 dnl Process this file with autoconf to create configure.
2121
22 # Initialize Autoconf
2223 AC_PREREQ([2.60])
23 AC_INIT([xgc], [1.0.3],
24 AC_INIT([xgc], [1.0.4],
2425 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xgc])
26 AC_CONFIG_SRCDIR([Makefile.am])
27 AC_CONFIG_HEADERS([config.h])
28
29 # Initialize Automake
2530 AM_INIT_AUTOMAKE([foreign dist-bzip2])
2631 AM_MAINTAINER_MODE
27 AM_CONFIG_HEADER(config.h)
2832
2933 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3034 m4_ifndef([XORG_MACROS_VERSION],
3539 AC_PROG_LEX
3640 AC_PROG_YACC
3741 AC_PATH_PROG([YACC_INST], $YACC)
38 AC_CHECK_FILE([$srcdir/gram.c], [],
39 [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile gram.y])])
42 if test ! -f "gram.c"; then
43 if test -z "$YACC_INST"; then
44 AC_MSG_ERROR([yacc not found - unable to compile gram.y])
45 fi
46 fi
4047
4148 PKG_CHECK_MODULES(XGC, xaw7 xt)
4249 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
4350 AC_ARG_WITH(appdefaultdir,
44 AC_HELP_STRING([--with-appdefaultdir=<pathname>],
51 AS_HELP_STRING([--with-appdefaultdir=<pathname>],
4552 [specify directory for app-defaults files (default is autodetected)]),
4653 [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
4754 AC_SUBST(appdefaultdir)
4855
49 AC_OUTPUT([Makefile])
56 AC_CONFIG_FILES([
57 Makefile
58 man/Makefile])
59 AC_OUTPUT
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
4343 object Object file output by `PROGRAMS ARGS'.
4444 DEPDIR directory where to store dependencies.
4545 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
46 tmpdepfile Temporary file to use when outputting dependencies.
4747 libtool Whether libtool is used (yes/no).
4848
4949 Report bugs to <bug-automake@gnu.org>.
8989 # This is just like msvisualcpp but w/o cygpath translation.
9090 # Just convert the backslash-escaped backslashes to single forward
9191 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
92 cygpath_u='sed s,\\\\,/,g'
9393 depmode=msvisualcpp
94 fi
95
96 if test "$depmode" = msvc7msys; then
97 # This is just like msvc7 but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvc7
94102 fi
95103
96104 case "$depmode" in
157165 ' < "$tmpdepfile" |
158166 ## Some versions of gcc put a space before the `:'. On the theory
159167 ## that the space means something, we add a space to the output as
160 ## well.
168 ## well. hp depmode also adds that space, but also prefixes the VPATH
169 ## to the object. Take care to not repeat it in the output.
161170 ## Some versions of the HPUX 10.20 sed can't process this invocation
162171 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
172 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
173 | sed -e 's/$/ :/' >> "$depfile"
164174 rm -f "$tmpdepfile"
165175 ;;
166176
404414 rm -f "$tmpdepfile"
405415 ;;
406416
417 msvc7)
418 if test "$libtool" = yes; then
419 showIncludes=-Wc,-showIncludes
420 else
421 showIncludes=-showIncludes
422 fi
423 "$@" $showIncludes > "$tmpdepfile"
424 stat=$?
425 grep -v '^Note: including file: ' "$tmpdepfile"
426 if test "$stat" = 0; then :
427 else
428 rm -f "$tmpdepfile"
429 exit $stat
430 fi
431 rm -f "$depfile"
432 echo "$object : \\" > "$depfile"
433 # The first sed program below extracts the file names and escapes
434 # backslashes for cygpath. The second sed program outputs the file
435 # name when reading, but also accumulates all include files in the
436 # hold buffer in order to output them again at the end. This only
437 # works with sed implementations that can handle large buffers.
438 sed < "$tmpdepfile" -n '
439 /^Note: including file: *\(.*\)/ {
440 s//\1/
441 s/\\/\\\\/g
442 p
443 }' | $cygpath_u | sort -u | sed -n '
444 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
446 s/.\(.*\) \\/\1:/
447 H
448 $ {
449 s/.*/ /
450 G
451 p
452 }' >> "$depfile"
453 rm -f "$tmpdepfile"
454 ;;
455
456 msvc7msys)
457 # This case exists only to let depend.m4 do its work. It works by
458 # looking at the text of this script. This case will never be run,
459 # since it is checked for above.
460 exit 1
461 ;;
462
407463 #nosideeffect)
408464 # This comment above is used by automake to tell side-effect
409465 # dependency tracking mechanisms from slower ones.
502558 touch "$tmpdepfile"
503559 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504560 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
561 # makedepend may prepend the VPATH from the source file name to the object.
562 # No need to regex-escape $object, excess matching of '.' is harmless.
563 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
506564 sed '1,2d' "$tmpdepfile" | tr ' ' '
507565 ' | \
508566 ## Some versions of the HPUX 10.20 sed can't process this invocation
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-01-19.21; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for `test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
0
1 appmandir = $(APP_MAN_DIR)
2 appman_PRE = xgc.man
3 appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
4
5 EXTRA_DIST = $(appman_PRE)
6 CLEANFILES = $(appman_DATA)
7 SUFFIXES = .$(APP_MAN_SUFFIX) .man
8
9 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
10 .man.$(APP_MAN_SUFFIX):
11 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
0 # Makefile.in generated by automake 1.11.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = man
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
40 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
41 $(ACLOCAL_M4)
42 mkinstalldirs = $(install_sh) -d
43 CONFIG_HEADER = $(top_builddir)/config.h
44 CONFIG_CLEAN_FILES =
45 CONFIG_CLEAN_VPATH_FILES =
46 AM_V_GEN = $(am__v_GEN_$(V))
47 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
48 am__v_GEN_0 = @echo " GEN " $@;
49 AM_V_at = $(am__v_at_$(V))
50 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
51 am__v_at_0 = @
52 SOURCES =
53 DIST_SOURCES =
54 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55 am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
60 am__install_max = 40
61 am__nobase_strip_setup = \
62 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
63 am__nobase_strip = \
64 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
65 am__nobase_list = $(am__nobase_strip_setup); \
66 for p in $$list; do echo "$$p $$p"; done | \
67 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
68 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
69 if (++n[$$2] == $(am__install_max)) \
70 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
71 END { for (dir in files) print dir, files[dir] }'
72 am__base_list = \
73 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
75 am__uninstall_files_from_dir = { \
76 test -z "$$files" \
77 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
78 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
79 $(am__cd) "$$dir" && rm -f $$files; }; \
80 }
81 am__installdirs = "$(DESTDIR)$(appmandir)"
82 DATA = $(appman_DATA)
83 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
84 ACLOCAL = @ACLOCAL@
85 ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
86 ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
87 AMTAR = @AMTAR@
88 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
89 APP_MAN_DIR = @APP_MAN_DIR@
90 APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
91 AUTOCONF = @AUTOCONF@
92 AUTOHEADER = @AUTOHEADER@
93 AUTOMAKE = @AUTOMAKE@
94 AWK = @AWK@
95 BASE_CFLAGS = @BASE_CFLAGS@
96 CC = @CC@
97 CCDEPMODE = @CCDEPMODE@
98 CFLAGS = @CFLAGS@
99 CHANGELOG_CMD = @CHANGELOG_CMD@
100 CPP = @CPP@
101 CPPFLAGS = @CPPFLAGS@
102 CWARNFLAGS = @CWARNFLAGS@
103 CYGPATH_W = @CYGPATH_W@
104 DEFS = @DEFS@
105 DEPDIR = @DEPDIR@
106 DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
107 DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
108 ECHO_C = @ECHO_C@
109 ECHO_N = @ECHO_N@
110 ECHO_T = @ECHO_T@
111 EGREP = @EGREP@
112 EXEEXT = @EXEEXT@
113 FILE_MAN_DIR = @FILE_MAN_DIR@
114 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
115 GREP = @GREP@
116 INSTALL = @INSTALL@
117 INSTALL_CMD = @INSTALL_CMD@
118 INSTALL_DATA = @INSTALL_DATA@
119 INSTALL_PROGRAM = @INSTALL_PROGRAM@
120 INSTALL_SCRIPT = @INSTALL_SCRIPT@
121 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
122 LDFLAGS = @LDFLAGS@
123 LEX = @LEX@
124 LEXLIB = @LEXLIB@
125 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
126 LIBOBJS = @LIBOBJS@
127 LIBS = @LIBS@
128 LIB_MAN_DIR = @LIB_MAN_DIR@
129 LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
130 LTLIBOBJS = @LTLIBOBJS@
131 MAINT = @MAINT@
132 MAKEINFO = @MAKEINFO@
133 MAN_SUBSTS = @MAN_SUBSTS@
134 MISC_MAN_DIR = @MISC_MAN_DIR@
135 MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
136 MKDIR_P = @MKDIR_P@
137 OBJEXT = @OBJEXT@
138 PACKAGE = @PACKAGE@
139 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
140 PACKAGE_NAME = @PACKAGE_NAME@
141 PACKAGE_STRING = @PACKAGE_STRING@
142 PACKAGE_TARNAME = @PACKAGE_TARNAME@
143 PACKAGE_URL = @PACKAGE_URL@
144 PACKAGE_VERSION = @PACKAGE_VERSION@
145 PATH_SEPARATOR = @PATH_SEPARATOR@
146 PKG_CONFIG = @PKG_CONFIG@
147 SED = @SED@
148 SET_MAKE = @SET_MAKE@
149 SHELL = @SHELL@
150 STRICT_CFLAGS = @STRICT_CFLAGS@
151 STRIP = @STRIP@
152 VERSION = @VERSION@
153 XGC_CFLAGS = @XGC_CFLAGS@
154 XGC_LIBS = @XGC_LIBS@
155 XORG_MAN_PAGE = @XORG_MAN_PAGE@
156 YACC = @YACC@
157 YACC_INST = @YACC_INST@
158 YFLAGS = @YFLAGS@
159 abs_builddir = @abs_builddir@
160 abs_srcdir = @abs_srcdir@
161 abs_top_builddir = @abs_top_builddir@
162 abs_top_srcdir = @abs_top_srcdir@
163 ac_ct_CC = @ac_ct_CC@
164 am__include = @am__include@
165 am__leading_dot = @am__leading_dot@
166 am__quote = @am__quote@
167 am__tar = @am__tar@
168 am__untar = @am__untar@
169 appdefaultdir = @appdefaultdir@
170 bindir = @bindir@
171 build = @build@
172 build_alias = @build_alias@
173 build_cpu = @build_cpu@
174 build_os = @build_os@
175 build_vendor = @build_vendor@
176 builddir = @builddir@
177 datadir = @datadir@
178 datarootdir = @datarootdir@
179 docdir = @docdir@
180 dvidir = @dvidir@
181 exec_prefix = @exec_prefix@
182 host = @host@
183 host_alias = @host_alias@
184 host_cpu = @host_cpu@
185 host_os = @host_os@
186 host_vendor = @host_vendor@
187 htmldir = @htmldir@
188 includedir = @includedir@
189 infodir = @infodir@
190 install_sh = @install_sh@
191 libdir = @libdir@
192 libexecdir = @libexecdir@
193 localedir = @localedir@
194 localstatedir = @localstatedir@
195 mandir = @mandir@
196 mkdir_p = @mkdir_p@
197 oldincludedir = @oldincludedir@
198 pdfdir = @pdfdir@
199 prefix = @prefix@
200 program_transform_name = @program_transform_name@
201 psdir = @psdir@
202 sbindir = @sbindir@
203 sharedstatedir = @sharedstatedir@
204 srcdir = @srcdir@
205 sysconfdir = @sysconfdir@
206 target_alias = @target_alias@
207 top_build_prefix = @top_build_prefix@
208 top_builddir = @top_builddir@
209 top_srcdir = @top_srcdir@
210 appmandir = $(APP_MAN_DIR)
211 appman_PRE = xgc.man
212 appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
213 EXTRA_DIST = $(appman_PRE)
214 CLEANFILES = $(appman_DATA)
215 SUFFIXES = .$(APP_MAN_SUFFIX) .man
216 all: all-am
217
218 .SUFFIXES:
219 .SUFFIXES: .$(APP_MAN_SUFFIX) .man
220 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
221 @for dep in $?; do \
222 case '$(am__configure_deps)' in \
223 *$$dep*) \
224 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
225 && { if test -f $@; then exit 0; else break; fi; }; \
226 exit 1;; \
227 esac; \
228 done; \
229 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
230 $(am__cd) $(top_srcdir) && \
231 $(AUTOMAKE) --foreign man/Makefile
232 .PRECIOUS: Makefile
233 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
234 @case '$?' in \
235 *config.status*) \
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
237 *) \
238 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
239 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
240 esac;
241
242 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
245 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
247 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
249 $(am__aclocal_m4_deps):
250 install-appmanDATA: $(appman_DATA)
251 @$(NORMAL_INSTALL)
252 test -z "$(appmandir)" || $(MKDIR_P) "$(DESTDIR)$(appmandir)"
253 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
254 for p in $$list; do \
255 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
256 echo "$$d$$p"; \
257 done | $(am__base_list) | \
258 while read files; do \
259 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appmandir)'"; \
260 $(INSTALL_DATA) $$files "$(DESTDIR)$(appmandir)" || exit $$?; \
261 done
262
263 uninstall-appmanDATA:
264 @$(NORMAL_UNINSTALL)
265 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
266 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
267 dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir)
268 tags: TAGS
269 TAGS:
270
271 ctags: CTAGS
272 CTAGS:
273
274
275 distdir: $(DISTFILES)
276 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
277 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
278 list='$(DISTFILES)'; \
279 dist_files=`for file in $$list; do echo $$file; done | \
280 sed -e "s|^$$srcdirstrip/||;t" \
281 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
282 case $$dist_files in \
283 */*) $(MKDIR_P) `echo "$$dist_files" | \
284 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
285 sort -u` ;; \
286 esac; \
287 for file in $$dist_files; do \
288 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
289 if test -d $$d/$$file; then \
290 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
291 if test -d "$(distdir)/$$file"; then \
292 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
293 fi; \
294 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
295 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
296 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
297 fi; \
298 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
299 else \
300 test -f "$(distdir)/$$file" \
301 || cp -p $$d/$$file "$(distdir)/$$file" \
302 || exit 1; \
303 fi; \
304 done
305 check-am: all-am
306 check: check-am
307 all-am: Makefile $(DATA)
308 installdirs:
309 for dir in "$(DESTDIR)$(appmandir)"; do \
310 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
311 done
312 install: install-am
313 install-exec: install-exec-am
314 install-data: install-data-am
315 uninstall: uninstall-am
316
317 install-am: all-am
318 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
319
320 installcheck: installcheck-am
321 install-strip:
322 if test -z '$(STRIP)'; then \
323 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
324 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
325 install; \
326 else \
327 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
328 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
329 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
330 fi
331 mostlyclean-generic:
332
333 clean-generic:
334 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
335
336 distclean-generic:
337 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
338 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
339
340 maintainer-clean-generic:
341 @echo "This command is intended for maintainers to use"
342 @echo "it deletes files that may require special tools to rebuild."
343 clean: clean-am
344
345 clean-am: clean-generic mostlyclean-am
346
347 distclean: distclean-am
348 -rm -f Makefile
349 distclean-am: clean-am distclean-generic
350
351 dvi: dvi-am
352
353 dvi-am:
354
355 html: html-am
356
357 html-am:
358
359 info: info-am
360
361 info-am:
362
363 install-data-am: install-appmanDATA
364
365 install-dvi: install-dvi-am
366
367 install-dvi-am:
368
369 install-exec-am:
370
371 install-html: install-html-am
372
373 install-html-am:
374
375 install-info: install-info-am
376
377 install-info-am:
378
379 install-man:
380
381 install-pdf: install-pdf-am
382
383 install-pdf-am:
384
385 install-ps: install-ps-am
386
387 install-ps-am:
388
389 installcheck-am:
390
391 maintainer-clean: maintainer-clean-am
392 -rm -f Makefile
393 maintainer-clean-am: distclean-am maintainer-clean-generic
394
395 mostlyclean: mostlyclean-am
396
397 mostlyclean-am: mostlyclean-generic
398
399 pdf: pdf-am
400
401 pdf-am:
402
403 ps: ps-am
404
405 ps-am:
406
407 uninstall-am: uninstall-appmanDATA
408
409 .MAKE: install-am install-strip
410
411 .PHONY: all all-am check check-am clean clean-generic distclean \
412 distclean-generic distdir dvi dvi-am html html-am info info-am \
413 install install-am install-appmanDATA install-data \
414 install-data-am install-dvi install-dvi-am install-exec \
415 install-exec-am install-html install-html-am install-info \
416 install-info-am install-man install-pdf install-pdf-am \
417 install-ps install-ps-am install-strip installcheck \
418 installcheck-am installdirs maintainer-clean \
419 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
420 pdf-am ps ps-am uninstall uninstall-am uninstall-appmanDATA
421
422
423 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
424 .man.$(APP_MAN_SUFFIX):
425 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
426
427 # Tell versions [3.59,3.63) of GNU make to not export all variables.
428 # Otherwise a system limit (for SysV at least) may be exceeded.
429 .NOEXPORT:
0 .\" Copyright (c) 1991 X Consortium
1 .\"
2 .\" Permission is hereby granted, free of charge, to any person obtaining
3 .\" a copy of this software and associated documentation files (the
4 .\" "Software"), to deal in the Software without restriction, including
5 .\" without limitation the rights to use, copy, modify, merge, publish,
6 .\" distribute, sublicense, and/or sell copies of the Software, and to
7 .\" permit persons to whom the Software is furnished to do so, subject to
8 .\" the following conditions:
9 .\"
10 .\" The above copyright notice and this permission notice shall be included
11 .\" in all copies or substantial portions of the Software.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 .\" OTHER DEALINGS IN THE SOFTWARE.
20 .\"
21 .\" Except as contained in this notice, the name of the X Consortium shall
22 .\" not be used in advertising or otherwise to promote the sale, use or
23 .\" other dealings in this Software without prior written authorization
24 .\" from the X Consortium.
25 .\"
26 .\" Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
27 .\"
28 .\" Permission is hereby granted, free of charge, to any person obtaining a
29 .\" copy of this software and associated documentation files (the "Software"),
30 .\" to deal in the Software without restriction, including without limitation
31 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
32 .\" and/or sell copies of the Software, and to permit persons to whom the
33 .\" Software is furnished to do so, subject to the following conditions:
34 .\"
35 .\" The above copyright notice and this permission notice (including the next
36 .\" paragraph) shall be included in all copies or substantial portions of the
37 .\" Software.
38 .\"
39 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
42 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45 .\" DEALINGS IN THE SOFTWARE.
46 .\"
47 .TH XGC 1 __xorgversion__
48 .SH NAME
49 xgc - X graphics demo
50 .SH SYNOPSIS
51 .ta 8n
52 \fBxgc\fP [-\fItoolkitoption\fP ...]
53 .SH DESCRIPTION
54 The
55 .I xgc
56 program demonstrates various features of the X graphics primitives.
57 In X, most of the details about the graphics to be generated are
58 stored in a resource called a graphics context (GC). The
59 .B xgc
60 program provides a user interface for setting various GC components.
61 Pressing the "Run" button causes these results to be displayed in
62 the large drawing window on the right. Timing information is
63 displayed in the window immediately below.
64 .PP
65 The items in the upper left hand window work as follows:
66 .PP
67 .I Function
68 \- specify the logical function with which primitives
69 will drawn. The most usual setting is "set", i.e. simply to render
70 pixels without regard to what has been drawn before.
71 .PP
72 .I LineStyle
73 \- specify whether lines should be drawn solid in foreground,
74 dashed in foreground or alternating foreground and background.
75 .PP
76 .I CapStyle
77 \- specify the appearance of the ends of a line.
78 .PP
79 .I JoinStyle
80 \- specify the appearance of joints between consecutive
81 lines drawn within a single graphics primitive.
82 .PP
83 .I FillStyle
84 \- specify whether lines, text and fill requests are
85 solid, tiled with a pixmap or stippled.
86 .PP
87 .I FillRule
88 \- specifies the rule used to fill polygons. The EvenOdd
89 rule means that if areas overlap an odd number of times, they are not
90 drawn. Winding rule means that overlapping areas are always filled,
91 regardless of how many times they overlap.
92 .PP
93 .I ArcMode
94 \- specifies the rule for filling of arcs. The boundary
95 of the arc is either a Chord or two radii.
96 .PP
97 .I planemask
98 \- specifies which planes of the drawing window are
99 modified. By default, all planes are modified.
100 .PP
101 .I dashlist
102 \- specifies a pattern to be used when drawing dashed lines.
103 .PP
104 .I Line Width
105 \- specifies the width in pixels of lines to be drawn.
106 Zero means to draw using the server's fastest algorithm with a line width of
107 one pixel.
108 .PP
109 .I Font
110 \- specifies the font to be used for text primitives.
111 .PP
112 .I Foreground
113 and
114 .I Background
115 \- specify the pixel values to be
116 applied when drawing primitives.
117 The Foreground value is used as the
118 pixel value for set bits in the source in all primitives.
119 The Background value is used as the
120 pixel value for unset bits in the source when using Copy Plane, drawing
121 lines with LineStyle of DoubleDash and filling with FillStyle of
122 OpaqueStippled.
123 .PP
124 .I Percentage of Test
125 \- scrollbar permits specifying only
126 a percentage of the test to be run. The number at the left indicates
127 the current setting, which defaults to 100%.
128 .sp
129 The window labeled "Test" permits choice of one a number of graphics
130 primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs,
131 8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws,
132 as well as Copy Plane and Copy Area.
133 .PP
134 The window to the right of this has buttons which permit record/playback
135 of the primitives rendered.
136 .SH OPTIONS
137 .I Xgc
138 accepts all of the standard X Toolkit command line options.
139 .SH X DEFAULTS
140 This program accepts the usual defaults for toolkit applications.
141 .SH ENVIRONMENT
142 .PP
143 .TP 8
144 .B DISPLAY
145 to get the default host and display number.
146 .TP 8
147 .B XENVIRONMENT
148 to get the name of a resource file that overrides the global resources
149 stored in the RESOURCE_MANAGER property.
150 .SH "SEE ALSO"
151 X(__miscmansuffix__)
152 .SH BUGS
153 This program isn't really finished yet, but it probably never will be,
154 since it only demonstrates the original X11 core protocol rendering
155 operations, which few modern programs use anymore.
156 .SH AUTHORS
157 Dan Schmidt, MIT
146146 int type; /* which string # to send */
147147
148148 type = atoi(params[0]);
149 if (type < 0 || type >= NUMTEXTWIDGETS) {
150 fprintf(stderr, "Invalid value %s in WriteText()\n", params[0]);
151 return;
152 }
149153 if (strcmp(textstrings[type],oldtextstrings[type])) {
150154 strcpy(oldtextstrings[type],textstrings[type]);
151155 snprintf(mbuf,sizeof mbuf,"%s%s\n",
+0
-158
xgc/xgc.man less more
0 .\" Copyright (c) 1991 X Consortium
1 .\"
2 .\" Permission is hereby granted, free of charge, to any person obtaining
3 .\" a copy of this software and associated documentation files (the
4 .\" "Software"), to deal in the Software without restriction, including
5 .\" without limitation the rights to use, copy, modify, merge, publish,
6 .\" distribute, sublicense, and/or sell copies of the Software, and to
7 .\" permit persons to whom the Software is furnished to do so, subject to
8 .\" the following conditions:
9 .\"
10 .\" The above copyright notice and this permission notice shall be included
11 .\" in all copies or substantial portions of the Software.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 .\" OTHER DEALINGS IN THE SOFTWARE.
20 .\"
21 .\" Except as contained in this notice, the name of the X Consortium shall
22 .\" not be used in advertising or otherwise to promote the sale, use or
23 .\" other dealings in this Software without prior written authorization
24 .\" from the X Consortium.
25 .\"
26 .\" Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
27 .\"
28 .\" Permission is hereby granted, free of charge, to any person obtaining a
29 .\" copy of this software and associated documentation files (the "Software"),
30 .\" to deal in the Software without restriction, including without limitation
31 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
32 .\" and/or sell copies of the Software, and to permit persons to whom the
33 .\" Software is furnished to do so, subject to the following conditions:
34 .\"
35 .\" The above copyright notice and this permission notice (including the next
36 .\" paragraph) shall be included in all copies or substantial portions of the
37 .\" Software.
38 .\"
39 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
42 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45 .\" DEALINGS IN THE SOFTWARE.
46 .\"
47 .TH XGC 1 __xorgversion__
48 .SH NAME
49 xgc - X graphics demo
50 .SH SYNOPSIS
51 .ta 8n
52 \fBxgc\fP [-\fItoolkitoption\fP ...]
53 .SH DESCRIPTION
54 The
55 .I xgc
56 program demonstrates various features of the X graphics primitives.
57 In X, most of the details about the graphics to be generated are
58 stored in a resource called a graphics context (GC). The
59 .B xgc
60 program provides a user interface for setting various GC components.
61 Pressing the "Run" button causes these results to be displayed in
62 the large drawing window on the right. Timing information is
63 displayed in the window immediately below.
64 .PP
65 The items in the upper left hand window work as follows:
66 .PP
67 .I Function
68 \- specify the logical function with which primitives
69 will drawn. The most usual setting is "set", i.e. simply to render
70 pixels without regard to what has been drawn before.
71 .PP
72 .I LineStyle
73 \- specify whether lines should be drawn solid in foreground,
74 dashed in foreground or alternating foreground and background.
75 .PP
76 .I CapStyle
77 \- specify the appearance of the ends of a line.
78 .PP
79 .I JoinStyle
80 \- specify the appearance of joints between consecutive
81 lines drawn within a single graphics primitive.
82 .PP
83 .I FillStyle
84 \- specify whether lines, text and fill requests are
85 solid, tiled with a pixmap or stippled.
86 .PP
87 .I FillRule
88 \- specifies the rule used to fill polygons. The EvenOdd
89 rule means that if areas overlap an odd number of times, they are not
90 drawn. Winding rule means that overlapping areas are always filled,
91 regardless of how many times they overlap.
92 .PP
93 .I ArcMode
94 \- specifies the rule for filling of arcs. The boundary
95 of the arc is either a Chord or two radii.
96 .PP
97 .I planemask
98 \- specifies which planes of the drawing window are
99 modified. By default, all planes are modified.
100 .PP
101 .I dashlist
102 \- specifies a pattern to be used when drawing dashed lines.
103 .PP
104 .I Line Width
105 \- specifies the width in pixels of lines to be drawn.
106 Zero means to draw using the server's fastest algorithm with a line width of
107 one pixel.
108 .PP
109 .I Font
110 \- specifies the font to be used for text primitives.
111 .PP
112 .I Foreground
113 and
114 .I Background
115 \- specify the pixel values to be
116 applied when drawing primitives.
117 The Foreground value is used as the
118 pixel value for set bits in the source in all primitives.
119 The Background value is used as the
120 pixel value for unset bits in the source when using Copy Plane, drawing
121 lines with LineStyle of DoubleDash and filling with FillStyle of
122 OpaqueStippled.
123 .PP
124 .I Percentage of Test
125 \- scrollbar permits specifying only
126 a percentage of the test to be run. The number at the left indicates
127 the current setting, which defaults to 100%.
128 .sp
129 The window labeled "Test" permits choice of one a number of graphics
130 primitive tests, including Points, Segments, Lines, Arcs and Filled Arcs,
131 8-bit Text and Image Text, Rectangles and Filled Rectangles, Image draws,
132 as well as Copy Plane and Copy Area.
133 .PP
134 The window to the right of this has buttons which permit record/playback
135 of the primitives rendered.
136 .SH OPTIONS
137 .I Xgc
138 accepts all of the standard X Toolkit command line options.
139 .SH X DEFAULTS
140 This program accepts the usual defaults for toolkit applications.
141 .SH ENVIRONMENT
142 .PP
143 .TP 8
144 .B DISPLAY
145 to get the default host and display number.
146 .TP 8
147 .B XENVIRONMENT
148 to get the name of a resource file that overrides the global resources
149 stored in the RESOURCE_MANAGER property.
150 .SH "SEE ALSO"
151 X(__miscmansuffix__)
152 .SH BUGS
153 This program isn't really finished yet, but it probably never will be,
154 since it only demonstrates the original X11 core protocol rendering
155 operations, which few modern programs use anymore.
156 .SH AUTHORS
157 Dan Schmidt, MIT
00 #! /bin/sh
11 # ylwrap - wrapper for lex/yacc invocations.
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-08-25.18; # UTC
44
55 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
6 # 2007, 2009 Free Software Foundation, Inc.
6 # 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
77 #
88 # Written by Tom Tromey <tromey@cygnus.com>.
99 #
9898 # FIXME: add hostname here for parallel makes that run commands on
9999 # other machines. But that might take us over the 14-char limit.
100100 dirname=ylwrap$$
101 trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
101 do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
102 trap "ret=129; $do_exit" 1
103 trap "ret=130; $do_exit" 2
104 trap "ret=141; $do_exit" 13
105 trap "ret=143; $do_exit" 15
102106 mkdir $dirname || exit 1
103107
104108 cd $dirname
132136 # Handle y_tab.c and y_tab.h output by DOS
133137 if test $y_tab_nodot = "yes"; then
134138 if test $from = "y.tab.c"; then
135 from="y_tab.c"
139 from="y_tab.c"
136140 else
137 if test $from = "y.tab.h"; then
138 from="y_tab.h"
139 fi
141 if test $from = "y.tab.h"; then
142 from="y_tab.h"
143 fi
140144 fi
141145 fi
142146 if test -f "$from"; then
143147 # If $2 is an absolute path name, then just use that,
144148 # otherwise prepend `../'.
145149 case "$2" in
146 [\\/]* | ?:[\\/]*) target="$2";;
147 *) target="../$2";;
150 [\\/]* | ?:[\\/]*) target="$2";;
151 *) target="../$2";;
148152 esac
149153
150154 # We do not want to overwrite a header file if it hasn't
154158 # Makefile. Divert the output of all other files to a temporary
155159 # file so we can compare them to existing versions.
156160 if test $first = no; then
157 realtarget="$target"
158 target="tmp-`echo $target | sed s/.*[\\/]//g`"
161 realtarget="$target"
162 target="tmp-`echo $target | sed s/.*[\\/]//g`"
159163 fi
160164 # Edit out `#line' or `#' directives.
161165 #
179183
180184 # Check whether header files must be updated.
181185 if test $first = no; then
182 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
183 echo "$2" is unchanged
184 rm -f "$target"
185 else
186 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
187 echo "$2" is unchanged
188 rm -f "$target"
189 else
186190 echo updating "$2"
187191 mv -f "$target" "$realtarget"
188192 fi