mirror of OpenBSD xenocara tree github.com/openbsd/xenocara
openbsd
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update to xeyes 1.3.0

matthieu e053fd02 63990854

+4000 -3355
+88
app/xeyes/ChangeLog
··· 1 + commit 637b948ec83fd61a8ee59a9d8ea9f363f74af0df 2 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 3 + Date: Thu Jul 13 15:54:29 2023 -0700 4 + 5 + xeyes 1.3.0 6 + 7 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 8 + 9 + commit 6f6c975d2cdc1f615f83576c9d1f828e1cdabda3 10 + Author: Serge Bazanski <q3k@q3k.org> 11 + Date: Sun May 28 14:21:56 2023 +0200 12 + 13 + Implement multi-ocular support, add biblical example 14 + 15 + This removes the assumption that an xeyes instance displays just a pair 16 + of eyes, and instead allows future developers to implement different 17 + kinds of ocular layouts. 18 + 19 + Currently, the ocular layout system only allows for specifying offsets, 20 + but a future change might also make different parts of the eye geometry 21 + configurable: size of different elements, padding, etc. 22 + 23 + Signed-off-by: Serge Bazanski <q3k@q3k.org> 24 + 25 + commit f30ef4e0f3e464f6304bdc85d28ebec0c2ba5e4f 26 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 27 + Date: Fri Feb 10 11:51:01 2023 -0800 28 + 29 + Print which argument was unknown before giving usage message 30 + 31 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 32 + 33 + commit e7a54da926969631340942c5f850dd196a0df97b 34 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 35 + Date: Sat Feb 4 14:35:07 2023 -0800 36 + 37 + Add -help & -version options 38 + 39 + Processed before the display is opened so they work even if a 40 + connection to the display can't be opened. 41 + 42 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 43 + 44 + commit e38962ed83081fe00b99c8b8c3d82ba053f88d94 45 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 46 + Date: Thu Jul 28 17:30:21 2022 -0700 47 + 48 + gitlab CI: stop requiring Signed-off-by in commits 49 + 50 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 51 + 52 + commit c060e6d25349073b36c85f0d5f29ec197c80b6b9 53 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 54 + Date: Sat Apr 2 11:53:10 2022 -0700 55 + 56 + man page: remove out-of-date reference to X(7) 57 + 58 + The X(7) man page doesn't list any license information as this had claimed. 59 + 60 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 61 + 62 + commit ebbd57a53d3b3f50276fe5a0c3fcb101b686af25 63 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 64 + Date: Sun Jan 9 13:17:22 2022 -0800 65 + 66 + Fix spelling/wording issues 67 + 68 + Found by using: 69 + codespell --builtin clear,rare,usage,informal,code,names 70 + 71 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 72 + 73 + commit bdd57f33b50f8735da8ae5f7cf4ca28588eef0f4 74 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 75 + Date: Mon Dec 6 11:51:36 2021 -0800 76 + 77 + Build xz tarballs instead of bzip2 78 + 79 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 80 + 81 + commit 700a55129d4d653a6ebc09cd3ff372d52912d137 82 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 83 + Date: Mon Dec 6 11:51:33 2021 -0800 84 + 85 + gitlab CI: add a basic build test 86 + 87 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 88 + 1 89 commit adde23dc8724dc6f793b0c68143dc34818f7f6f4 2 90 Author: Alan Coopersmith <alan.coopersmith@oracle.com> 3 91 Date: Sun Aug 1 16:41:00 2021 -0700
+117 -40
app/xeyes/Eyes.c
··· 1 1 /* 2 2 3 3 Copyright (c) 1991 X Consortium 4 + Copyright (c) 2023 q3k 4 5 5 6 Permission is hereby granted, free of charge, to any person obtaining 6 7 a copy of this software and associated documentation files (the ··· 49 50 # include <X11/Xlibint.h> 50 51 # include <stdlib.h> 51 52 # include <X11/extensions/XInput2.h> 53 + # include <assert.h> 52 54 53 55 #define offset(field) XtOffsetOf(EyesRec, eyes.field) 54 56 #define goffset(field) XtOffsetOf(WidgetRec, core.field) ··· 83 85 #endif 84 86 {(char *) XtNdistance, (char *) XtCBoolean, XtRBoolean, sizeof(Boolean), 85 87 offset(distance), XtRImmediate, (XtPointer) FALSE }, 88 + {(char *) XtNbiblicallyAccurate, (char *) XtCBoolean, XtRBoolean, sizeof(Boolean), 89 + offset(biblically_accurate), XtRImmediate, (XtPointer) FALSE }, 86 90 }; 87 91 88 92 #undef offset 89 93 #undef goffset 90 94 91 - # define EYE_X(n) ((n) * 2.0) 92 - # define EYE_Y(n) (0.0) 93 95 # define EYE_OFFSET (0.1) /* padding between eyes */ 94 96 # define EYE_THICK (0.175) /* thickness of eye rim */ 95 97 # define BALL_DIAM (0.3) 96 98 # define BALL_PAD (0.175) 97 99 # define EYE_DIAM (2.0 - (EYE_THICK + EYE_OFFSET) * 2) 98 100 # define BALL_DIST ((EYE_DIAM - BALL_DIAM) / 2.0 - BALL_PAD) 99 - # define W_MIN_X (-1.0 + EYE_OFFSET) 100 - # define W_MAX_X (3.0 - EYE_OFFSET) 101 - # define W_MIN_Y (-1.0 + EYE_OFFSET) 102 - # define W_MAX_Y (1.0 - EYE_OFFSET) 103 101 104 102 # define TPOINT_NONE (-1000) /* special value meaning "not yet set" */ 105 103 # define TPointEqual(a, b) ((a).x == (b).x && (a).y == (b).y) ··· 108 106 A0 <= A || A <= A1) 109 107 110 108 static int delays[] = { 50, 100, 200, 400, 0 }; 109 + 110 + static EyeLayout layout_standard[] = { 111 + { .x = 0.0, .y = 0.0, }, 112 + { .x = 2.0, .y = 0.0, }, 113 + }; 114 + 115 + static EyeLayout layout_biblical[] = { 116 + { .x = 0.0+0.75, .y = 0.0, }, 117 + { .x = 1.5+0.75, .y = 0.0, }, 118 + { .x = 3.0+0.75, .y = 0.0, }, 119 + 120 + { .x = 0.0+0.00, .y = 1.4, }, 121 + { .x = 1.5+0.00, .y = 1.4, }, 122 + { .x = 3.0+0.00, .y = 1.4, }, 123 + { .x = 4.5+0.00, .y = 1.4, }, 124 + 125 + { .x = 0.0+0.75, .y = 2.8, }, 126 + { .x = 1.5+0.75, .y = 2.8, }, 127 + { .x = 3.0+0.75, .y = 2.8, }, 128 + }; 129 + 130 + static EyeConfiguration *EyesConfigure(Boolean biblically_accurate) 131 + { 132 + EyeConfiguration *c = calloc(sizeof(EyeConfiguration), 1); 133 + assert(c != NULL); 134 + 135 + if (biblically_accurate) { 136 + c->eyes = layout_biblical; 137 + c->count = sizeof(layout_biblical) / sizeof(EyeLayout); 138 + } else { 139 + c->eyes = layout_standard; 140 + c->count = sizeof(layout_standard) / sizeof(EyeLayout); 141 + } 142 + 143 + // Calculate the bounding box of the eyes. 144 + c->w_min_x = c->eyes[0].x; 145 + c->w_max_x = c->eyes[0].x; 146 + c->w_min_y = c->eyes[0].y; 147 + c->w_max_y = c->eyes[0].y; 148 + 149 + for (int i = 0; i < c->count; i++) { 150 + EyeLayout *l = &c->eyes[i]; 151 + if (l->x > c->w_max_x) { 152 + c->w_max_x = l->x; 153 + } 154 + if (l->x < c->w_min_x) { 155 + c->w_min_x = l->x; 156 + } 157 + if (l->y > c->w_max_y) { 158 + c->w_max_y = l->y; 159 + } 160 + if (l->y < c->w_min_y) { 161 + c->w_min_y = l->y; 162 + } 163 + } 164 + 165 + // Add half size of eye (2.0) minus padding to each edge. 166 + c->w_min_x -= (1.0 - EYE_OFFSET); 167 + c->w_max_x += (1.0 - EYE_OFFSET); 168 + c->w_min_y -= (1.0 - EYE_OFFSET); 169 + c->w_max_y += (1.0 - EYE_OFFSET); 170 + return c; 171 + } 111 172 112 173 static void ClassInitialize(void) 113 174 { ··· 344 405 enum EyesPart i; 345 406 #endif 346 407 408 + EyeConfiguration *config = EyesConfigure(w->eyes.biblically_accurate); 409 + TPoint *pupils = calloc(sizeof(TPoint), config->count); 410 + assert(pupils != NULL); 411 + for (int j = 0; j < config->count; j++) { 412 + pupils[j].x = TPOINT_NONE; 413 + pupils[j].y = TPOINT_NONE; 414 + } 415 + w->eyes.configuration = config; 416 + w->eyes.pupils = pupils; 417 + 418 + 347 419 /* 348 420 * set the colors if reverse video; these are the colors used: 349 421 * ··· 385 457 w->eyes.update = 0; 386 458 /* wait for Realize to add the timeout */ 387 459 w->eyes.interval_id = 0; 388 - 389 - w->eyes.pupil[0].x = w->eyes.pupil[1].x = TPOINT_NONE; 390 - w->eyes.pupil[0].y = w->eyes.pupil[1].y = TPOINT_NONE; 391 460 392 461 w->eyes.mouse.x = w->eyes.mouse.y = TPOINT_NONE; 393 462 ··· 511 580 Boolean draw, 512 581 int num) 513 582 { 583 + EyeLayout *l = &w->eyes.configuration->eyes[num]; 514 584 drawEllipse(w, draw ? PART_OUTLINE : PART_SHAPE, 515 - EYE_X(num), EYE_Y(num), 585 + l->x, l->y, 516 586 TPOINT_NONE, TPOINT_NONE, 517 587 EYE_DIAM + 2.0*EYE_THICK); 518 588 if (draw) { 519 - drawEllipse(w, PART_CENTER, EYE_X(num), EYE_Y(num), 589 + drawEllipse(w, PART_CENTER, l->x, l->y, 520 590 TPOINT_NONE, TPOINT_NONE, 521 591 EYE_DIAM); 522 592 } 523 593 } 524 594 525 595 static TPoint computePupil ( 526 - int num, 596 + EyeLayout *layout, 527 597 TPoint mouse, 528 598 const TRectangle *screen) 529 599 { ··· 534 604 double cosa, sina; 535 605 TPoint ret; 536 606 537 - cx = EYE_X(num); dx = mouse.x - cx; 538 - cy = EYE_Y(num); dy = mouse.y - cy; 607 + cx = layout->x; dx = mouse.x - cx; 608 + cy = layout->y; dy = mouse.y - cy; 539 609 if (dx == 0 && dy == 0); 540 610 else { 541 611 angle = atan2 ((double) dy, (double) dx); ··· 594 664 static void computePupils ( 595 665 EyesWidget w, 596 666 TPoint mouse, 597 - TPoint pupils[2]) 667 + TPoint *pupils) 598 668 { 599 669 TRectangle screen, *sp = NULL; 600 670 if (w->eyes.distance) { ··· 610 680 &w->eyes.t); 611 681 sp = &screen; 612 682 } 613 - pupils[0] = computePupil (0, mouse, sp); 614 - pupils[1] = computePupil (1, mouse, sp); 683 + for (int i = 0; i < w->eyes.configuration->count; i++) { 684 + pupils[i] = computePupil(&w->eyes.configuration->eyes[i], mouse, sp); 685 + } 615 686 } 616 687 617 688 static void ··· 620 691 TPoint *old, 621 692 int num) 622 693 { 694 + //printf("eyeBall(_, %d, %p, %d)\n", draw, old, num); 623 695 drawEllipse(w, draw ? PART_PUPIL : PART_CLEAR, 624 - w->eyes.pupil[num].x, w->eyes.pupil[num].y, 696 + w->eyes.pupils[num].x, w->eyes.pupils[num].y, 625 697 old ? old->x : TPOINT_NONE, old ? old->y : TPOINT_NONE, 626 698 BALL_DIAM); 627 699 } ··· 632 704 #ifdef PRESENT 633 705 MakePresentData(w); 634 706 #endif 635 - eyeLiner (w, TRUE, 0); 636 - eyeLiner (w, TRUE, 1); 637 - computePupils (w, w->eyes.mouse, w->eyes.pupil); 638 - eyeBall (w, TRUE, NULL, 0); 639 - eyeBall (w, TRUE, NULL, 1); 707 + for (int i = 0; i < w->eyes.configuration->count; i++) { 708 + eyeLiner (w, TRUE, i); 709 + } 710 + computePupils (w, w->eyes.mouse, w->eyes.pupils); 711 + for (int i = 0; i < w->eyes.configuration->count; i++) { 712 + eyeBall (w, TRUE, NULL, i); 713 + } 640 714 #ifdef PRESENT 641 715 UpdatePresent(w); 642 716 #endif ··· 648 722 { 649 723 XPoint xnewpupil, xpupil; 650 724 651 - xpupil.x = Xx(w->eyes.pupil[num].x, w->eyes.pupil[num].y, &w->eyes.t); 652 - xpupil.y = Xy(w->eyes.pupil[num].x, w->eyes.pupil[num].y, &w->eyes.t); 725 + xpupil.x = Xx(w->eyes.pupils[num].x, w->eyes.pupils[num].y, &w->eyes.t); 726 + xpupil.y = Xy(w->eyes.pupils[num].x, w->eyes.pupils[num].y, &w->eyes.t); 653 727 xnewpupil.x = Xx(newpupil.x, newpupil.y, &w->eyes.t); 654 728 xnewpupil.y = Xy(newpupil.x, newpupil.y, &w->eyes.t); 655 729 if ( 656 730 #ifdef XRENDER 657 - w->eyes.picture ? !TPointEqual(w->eyes.pupil[num], newpupil) : 731 + w->eyes.picture ? !TPointEqual(w->eyes.pupils[num], newpupil) : 658 732 #endif 659 733 !XPointEqual(xpupil, xnewpupil)) { 660 - TPoint oldpupil = w->eyes.pupil[num]; 661 - w->eyes.pupil[num] = newpupil; 734 + TPoint oldpupil = w->eyes.pupils[num]; 735 + w->eyes.pupils[num] = newpupil; 662 736 eyeBall (w, TRUE, &oldpupil, num); 663 737 } 664 738 } ··· 666 740 static void 667 741 drawEyes(EyesWidget w, TPoint mouse) 668 742 { 669 - TPoint newpupil[2]; 670 743 int num; 744 + TPoint newpupils[w->eyes.configuration->count]; 671 745 672 746 #ifdef PRESENT 673 747 MakePresentData(w); ··· 677 751 ++w->eyes.update; 678 752 return; 679 753 } 680 - computePupils (w, mouse, newpupil); 681 - for (num = 0; num < 2; num ++) { 682 - drawEye(w, newpupil[num], num); 754 + computePupils (w, mouse, newpupils); 755 + for (num = 0; num < w->eyes.configuration->count; num++) { 756 + drawEye(w, newpupils[num], num); 683 757 } 684 758 685 759 w->eyes.mouse = mouse; ··· 737 811 SetTransform (&w->eyes.t, 738 812 0, w->core.width, 739 813 w->core.height, 0, 740 - W_MIN_X, W_MAX_X, 741 - W_MIN_Y, W_MAX_Y); 814 + w->eyes.configuration->w_min_x, 815 + w->eyes.configuration->w_max_x, 816 + w->eyes.configuration->w_min_y, 817 + w->eyes.configuration->w_max_y); 742 818 #ifdef PRESENT 743 819 if (w->eyes.back_buffer) { 744 820 xcb_free_pixmap(xt_xcb(w), ··· 769 845 XFillRectangle (dpy, w->eyes.shape_mask, w->eyes.gc[PART_SHAPE], 770 846 0, 0, w->core.width, w->core.height); 771 847 XSetForeground (dpy, w->eyes.gc[PART_SHAPE], 1); 772 - eyeLiner (w, FALSE, 0); 773 - eyeLiner (w, FALSE, 1); 848 + for (int i = 0; i < w->eyes.configuration->count; i++) { 849 + eyeLiner (w, FALSE, i); 850 + } 774 851 x = y = 0; 775 852 for (parent = (Widget) w; XtParent (parent); parent = XtParent (parent)) { 776 853 x += parent->core.x + parent->core.border_width; ··· 842 919 EyesWidget w; 843 920 844 921 w = (EyesWidget) gw; 845 - w->eyes.pupil[0].x = TPOINT_NONE; 846 - w->eyes.pupil[0].y = TPOINT_NONE; 847 - w->eyes.pupil[1].x = TPOINT_NONE; 848 - w->eyes.pupil[1].y = TPOINT_NONE; 922 + for (int i = 0; i < w->eyes.configuration->count; i++) { 923 + w->eyes.pupils[i].x = TPOINT_NONE; 924 + w->eyes.pupils[i].y = TPOINT_NONE; 925 + } 849 926 (void) repaint_window ((EyesWidget)gw); 850 927 } 851 928
+1
app/xeyes/Eyes.h
··· 34 34 35 35 #define XtNrender "render" 36 36 #define XtNdistance "distance" 37 + #define XtNbiblicallyAccurate "biblicallyAccurate" 37 38 38 39 #define XtNpresent "present" 39 40
+20 -1
app/xeyes/EyesP.h
··· 18 18 19 19 #define SEG_BUFF_SIZE 128 20 20 21 + typedef struct { 22 + // X offset 23 + double x; 24 + // Y offset 25 + double y; 26 + } EyeLayout; 27 + 28 + typedef struct { 29 + EyeLayout *eyes; 30 + int count; 31 + 32 + double w_min_x; 33 + double w_max_x; 34 + double w_min_y; 35 + double w_max_y; 36 + } EyeConfiguration; 37 + 21 38 /* New fields for the eyes widget instance record */ 22 39 typedef struct { 23 40 Pixel pixel[PART_SHAPE]; ··· 28 45 Boolean shape_window; /* use SetWindowShapeMask */ 29 46 int update; /* current timeout index */ 30 47 TPoint mouse; /* old mouse position */ 31 - TPoint pupil[2]; /* pupil position */ 48 + Boolean biblically_accurate; 49 + EyeConfiguration *configuration; 50 + TPoint *pupils; 32 51 Transform t; 33 52 Transform maskt; 34 53 XtIntervalId interval_id;
+3 -6
app/xeyes/Makefile.in
··· 181 181 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ 182 182 done; \ 183 183 reldir="$$dir2" 184 - DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 184 + DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz 185 185 GZIP_ENV = --best 186 - DIST_TARGETS = dist-bzip2 dist-gzip 186 + DIST_TARGETS = dist-xz dist-gzip 187 187 distuninstallcheck_listfiles = find . -type f -print 188 188 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ 189 189 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' ··· 204 204 CCDEPMODE = @CCDEPMODE@ 205 205 CFLAGS = @CFLAGS@ 206 206 CHANGELOG_CMD = @CHANGELOG_CMD@ 207 - CPP = @CPP@ 208 207 CPPFLAGS = @CPPFLAGS@ 209 208 CWARNFLAGS = @CWARNFLAGS@ 210 209 CYGPATH_W = @CYGPATH_W@ ··· 215 214 ECHO_C = @ECHO_C@ 216 215 ECHO_N = @ECHO_N@ 217 216 ECHO_T = @ECHO_T@ 218 - EGREP = @EGREP@ 219 217 EXEEXT = @EXEEXT@ 220 218 FILE_MAN_DIR = @FILE_MAN_DIR@ 221 219 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ 222 - GREP = @GREP@ 223 220 INSTALL = @INSTALL@ 224 221 INSTALL_CMD = @INSTALL_CMD@ 225 222 INSTALL_DATA = @INSTALL_DATA@ ··· 655 652 dist-gzip: distdir 656 653 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 657 654 $(am__post_remove_distdir) 655 + 658 656 dist-bzip2: distdir 659 657 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 660 658 $(am__post_remove_distdir) ··· 662 660 dist-lzip: distdir 663 661 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz 664 662 $(am__post_remove_distdir) 665 - 666 663 dist-xz: distdir 667 664 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz 668 665 $(am__post_remove_distdir)
+1 -1
app/xeyes/README.md
··· 6 6 7 7 https://lists.x.org/mailman/listinfo/xorg 8 8 9 - The master development code repository can be found at: 9 + The primary development code repository can be found at: 10 10 11 11 https://gitlab.freedesktop.org/xorg/app/xeyes 12 12
+45 -25
app/xeyes/aclocal.m4
··· 13 13 14 14 m4_ifndef([AC_AUTOCONF_VERSION], 15 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16 - m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 17 - [m4_warning([this file was generated for autoconf 2.69. 16 + m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 17 + [m4_warning([this file was generated for autoconf 2.71. 18 18 You have another version of autoconf. It may work, but is not guaranteed to. 19 19 If you have problems, you may need to regenerate the build system entirely. 20 20 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) ··· 1318 1318 1319 1319 dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1320 1320 dnl 1321 - dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. 1321 + dnl Copyright (c) 2005, 2023, Oracle and/or its affiliates. 1322 1322 dnl 1323 1323 dnl Permission is hereby granted, free of charge, to any person obtaining a 1324 1324 dnl copy of this software and associated documentation files (the "Software"), ··· 1355 1355 # See the "minimum version" comment for each macro you use to see what 1356 1356 # version you require. 1357 1357 m4_defun([XORG_MACROS_VERSION],[ 1358 - m4_define([vers_have], [1.19.2]) 1358 + m4_define([vers_have], [1.20.0]) 1359 1359 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1360 1360 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1361 1361 m4_if(m4_cmp(maj_have, maj_needed), 0,, ··· 1376 1376 # such as man pages and config files 1377 1377 AC_DEFUN([XORG_PROG_RAWCPP],[ 1378 1378 AC_REQUIRE([AC_PROG_CPP]) 1379 - AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 1379 + AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}], 1380 1380 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1381 1381 1382 1382 # Check for flag to avoid builtin definitions - assumes unix is predefined, ··· 1686 1686 # Documentation tools are not always available on all platforms and sometimes 1687 1687 # not at the appropriate level. This macro enables a module to test for the 1688 1688 # presence of the tool and obtain it's path in separate variables. Coupled with 1689 - # the --with-xmlto option, it allows maximum flexibilty in making decisions 1689 + # the --with-xmlto option, it allows maximum flexibility in making decisions 1690 1690 # as whether or not to use the xmlto package. When DEFAULT is not specified, 1691 1691 # --with-xmlto assumes 'auto'. 1692 1692 # ··· 1900 1900 # Documentation tools are not always available on all platforms and sometimes 1901 1901 # not at the appropriate level. This macro enables a module to test for the 1902 1902 # presence of the tool and obtain it's path in separate variables. Coupled with 1903 - # the --with-asciidoc option, it allows maximum flexibilty in making decisions 1903 + # the --with-asciidoc option, it allows maximum flexibility in making decisions 1904 1904 # as whether or not to use the asciidoc package. When DEFAULT is not specified, 1905 1905 # --with-asciidoc assumes 'auto'. 1906 1906 # ··· 1970 1970 # Documentation tools are not always available on all platforms and sometimes 1971 1971 # not at the appropriate level. This macro enables a module to test for the 1972 1972 # presence of the tool and obtain it's path in separate variables. Coupled with 1973 - # the --with-doxygen option, it allows maximum flexibilty in making decisions 1973 + # the --with-doxygen option, it allows maximum flexibility in making decisions 1974 1974 # as whether or not to use the doxygen package. When DEFAULT is not specified, 1975 1975 # --with-doxygen assumes 'auto'. 1976 1976 # ··· 2054 2054 # Documentation tools are not always available on all platforms and sometimes 2055 2055 # not at the appropriate level. This macro enables a module to test for the 2056 2056 # presence of the tool and obtain it's path in separate variables. Coupled with 2057 - # the --with-groff option, it allows maximum flexibilty in making decisions 2057 + # the --with-groff option, it allows maximum flexibility in making decisions 2058 2058 # as whether or not to use the groff package. When DEFAULT is not specified, 2059 2059 # --with-groff assumes 'auto'. 2060 2060 # ··· 2162 2162 # Documentation tools are not always available on all platforms and sometimes 2163 2163 # not at the appropriate level. This macro enables a module to test for the 2164 2164 # presence of the tool and obtain it's path in separate variables. Coupled with 2165 - # the --with-fop option, it allows maximum flexibilty in making decisions 2165 + # the --with-fop option, it allows maximum flexibility in making decisions 2166 2166 # as whether or not to use the fop package. When DEFAULT is not specified, 2167 2167 # --with-fop assumes 'auto'. 2168 2168 # ··· 2256 2256 # Documentation tools are not always available on all platforms and sometimes 2257 2257 # not at the appropriate level. This macro enables a module to test for the 2258 2258 # presence of the tool and obtain it's path in separate variables. Coupled with 2259 - # the --with-ps2pdf option, it allows maximum flexibilty in making decisions 2259 + # the --with-ps2pdf option, it allows maximum flexibility in making decisions 2260 2260 # as whether or not to use the ps2pdf package. When DEFAULT is not specified, 2261 2261 # --with-ps2pdf assumes 'auto'. 2262 2262 # ··· 2311 2311 # not at the appropriate level. This macro enables a builder to skip all 2312 2312 # documentation targets except traditional man pages. 2313 2313 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2314 - # maximum flexibilty in controlling documentation building. 2314 + # maximum flexibility in controlling documentation building. 2315 2315 # Refer to: 2316 2316 # XORG_WITH_XMLTO --with-xmlto 2317 2317 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2344 2344 # 2345 2345 # This macro enables a builder to skip all developer documentation. 2346 2346 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2347 - # maximum flexibilty in controlling documentation building. 2347 + # maximum flexibility in controlling documentation building. 2348 2348 # Refer to: 2349 2349 # XORG_WITH_XMLTO --with-xmlto 2350 2350 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2377 2377 # 2378 2378 # This macro enables a builder to skip all functional specification targets. 2379 2379 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2380 - # maximum flexibilty in controlling documentation building. 2380 + # maximum flexibility in controlling documentation building. 2381 2381 # Refer to: 2382 2382 # XORG_WITH_XMLTO --with-xmlto 2383 2383 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2852 2852 AC_DEFUN([XORG_COMPILER_BRAND], [ 2853 2853 AC_LANG_CASE( 2854 2854 [C], [ 2855 - AC_REQUIRE([AC_PROG_CC_C99]) 2855 + dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC 2856 + dnl and complains that AC_PROG_CC_C99 is obsolete 2857 + m4_version_prereq([2.70], 2858 + [AC_REQUIRE([AC_PROG_CC])], 2859 + [AC_REQUIRE([AC_PROG_CC_C99])]) 2856 2860 ], 2857 2861 [C++], [ 2858 2862 AC_REQUIRE([AC_PROG_CXX]) ··· 2868 2872 # Minimum version: 1.16.0 2869 2873 # 2870 2874 # Test if the compiler works when passed the given flag as a command line argument. 2871 - # If it succeeds, the flag is appeneded to the given variable. If not, it tries the 2875 + # If it succeeds, the flag is appended to the given variable. If not, it tries the 2872 2876 # next flag in the list until there are no more options. 2873 2877 # 2874 2878 # Note that this does not guarantee that the compiler supports the flag as some ··· 2884 2888 2885 2889 AC_LANG_CASE( 2886 2890 [C], [ 2887 - AC_REQUIRE([AC_PROG_CC_C99]) 2891 + dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC 2892 + dnl and complains that AC_PROG_CC_C99 is obsolete 2893 + m4_version_prereq([2.70], 2894 + [AC_REQUIRE([AC_PROG_CC])], 2895 + [AC_REQUIRE([AC_PROG_CC_C99])]) 2888 2896 define([PREFIX], [C]) 2889 2897 define([CACHE_PREFIX], [cc]) 2890 2898 define([COMPILER], [$CC]) ··· 3025 3033 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 3026 3034 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 3027 3035 3028 - # Turn some warnings into errors, so we don't accidently get successful builds 3036 + # Turn some warnings into errors, so we don't accidentally get successful builds 3029 3037 # when there are problems that should be fixed. 3030 3038 3031 3039 if test "x$SELECTIVE_WERROR" = "xyes" ; then ··· 3134 3142 AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS])) 3135 3143 ]) # XORG_STRICT_OPTION 3136 3144 3145 + # XORG_DEFAULT_NOCODE_OPTIONS 3146 + # --------------------------- 3147 + # Minimum version: 1.20.0 3148 + # 3149 + # Defines default options for X.Org modules which don't compile code, 3150 + # such as fonts, bitmaps, cursors, and docs. 3151 + # 3152 + AC_DEFUN([XORG_DEFAULT_NOCODE_OPTIONS], [ 3153 + AC_REQUIRE([AC_PROG_INSTALL]) 3154 + XORG_RELEASE_VERSION 3155 + XORG_CHANGELOG 3156 + XORG_INSTALL 3157 + XORG_MANPAGE_SECTIONS 3158 + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3159 + [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3160 + ]) # XORG_DEFAULT_NOCODE_OPTIONS 3161 + 3137 3162 # XORG_DEFAULT_OPTIONS 3138 3163 # -------------------- 3139 3164 # Minimum version: 1.3.0 3140 3165 # 3141 - # Defines default options for X.Org modules. 3166 + # Defines default options for X.Org modules which compile code. 3142 3167 # 3143 3168 AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 3144 3169 AC_REQUIRE([AC_PROG_INSTALL]) 3145 3170 XORG_COMPILER_FLAGS 3146 3171 XORG_CWARNFLAGS 3147 3172 XORG_STRICT_OPTION 3148 - XORG_RELEASE_VERSION 3149 - XORG_CHANGELOG 3150 - XORG_INSTALL 3151 - XORG_MANPAGE_SECTIONS 3152 - m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3153 - [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3173 + XORG_DEFAULT_NOCODE_OPTIONS 3154 3174 ]) # XORG_DEFAULT_OPTIONS 3155 3175 3156 3176 # XORG_INSTALL()
+6 -4
app/xeyes/config.h.in
··· 3 3 /* Define to 1 if you have the <inttypes.h> header file. */ 4 4 #undef HAVE_INTTYPES_H 5 5 6 - /* Define to 1 if you have the <memory.h> header file. */ 7 - #undef HAVE_MEMORY_H 8 - 9 6 /* Define to 1 if you have the <stdint.h> header file. */ 10 7 #undef HAVE_STDINT_H 8 + 9 + /* Define to 1 if you have the <stdio.h> header file. */ 10 + #undef HAVE_STDIO_H 11 11 12 12 /* Define to 1 if you have the <stdlib.h> header file. */ 13 13 #undef HAVE_STDLIB_H ··· 60 60 /* Define to use X Present Extension */ 61 61 #undef PRESENT 62 62 63 - /* Define to 1 if you have the ANSI C header files. */ 63 + /* Define to 1 if all of the C90 standard headers exist (not just the ones 64 + required in a freestanding environment). This macro is provided for 65 + backward compatibility; new code need not use it. */ 64 66 #undef STDC_HEADERS 65 67 66 68 /* Version number of package */
+3452 -3055
app/xeyes/configure
··· 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 - # Generated by GNU Autoconf 2.69 for xeyes 1.2.0. 3 + # Generated by GNU Autoconf 2.71 for xeyes 1.3.0. 4 4 # 5 - # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>. 5 + # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues>. 6 6 # 7 7 # 8 - # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8 + # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 + # Inc. 9 10 # 10 11 # 11 12 # This configure script is free software; the Free Software Foundation ··· 16 17 17 18 # Be more Bourne compatible 18 19 DUALCASE=1; export DUALCASE # for MKS sh 19 - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 + as_nop=: 21 + if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 + then : 20 23 emulate sh 21 24 NULLCMD=: 22 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 26 # is contrary to our usage. Disable this feature. 24 27 alias -g '${1+"$@"}'='"$@"' 25 28 setopt NO_GLOB_SUBST 26 - else 29 + else $as_nop 27 30 case `(set -o) 2>/dev/null` in #( 28 31 *posix*) : 29 32 set -o posix ;; #( ··· 33 36 fi 34 37 35 38 39 + 40 + # Reset variables that may have inherited troublesome values from 41 + # the environment. 42 + 43 + # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 + # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 + # side effect of setting IFS to empty, thus disabling word splitting.) 46 + # Quoting is to prevent editors from complaining about space-tab. 36 47 as_nl=' 37 48 ' 38 49 export as_nl 39 - # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 - as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 - # Prefer a ksh shell builtin over an external printf program on Solaris, 44 - # but without wasting forks for bash or zsh. 45 - if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 - as_echo='print -r --' 48 - as_echo_n='print -rn --' 49 - elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 - as_echo='printf %s\n' 51 - as_echo_n='printf %s' 52 - else 53 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 - as_echo_n='/usr/ucb/echo -n' 56 - else 57 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 - as_echo_n_body='eval 59 - arg=$1; 60 - case $arg in #( 61 - *"$as_nl"*) 62 - expr "X$arg" : "X\\(.*\\)$as_nl"; 63 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 - esac; 65 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 - ' 67 - export as_echo_n_body 68 - as_echo_n='sh -c $as_echo_n_body as_echo' 69 - fi 70 - export as_echo_body 71 - as_echo='sh -c $as_echo_body as_echo' 72 - fi 50 + IFS=" "" $as_nl" 51 + 52 + PS1='$ ' 53 + PS2='> ' 54 + PS4='+ ' 55 + 56 + # Ensure predictable behavior from utilities with locale-dependent output. 57 + LC_ALL=C 58 + export LC_ALL 59 + LANGUAGE=C 60 + export LANGUAGE 61 + 62 + # We cannot yet rely on "unset" to work, but we need these variables 63 + # to be unset--not just set to an empty or harmless value--now, to 64 + # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 + # also avoids known problems related to "unset" and subshell syntax 66 + # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 + for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 + do eval test \${$as_var+y} \ 69 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 + done 71 + 72 + # Ensure that fds 0, 1, and 2 are open. 73 + if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 + if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 + if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 73 76 74 77 # The user is always right. 75 - if test "${PATH_SEPARATOR+set}" != set; then 78 + if ${PATH_SEPARATOR+false} :; then 76 79 PATH_SEPARATOR=: 77 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ··· 80 83 } 81 84 fi 82 85 83 - 84 - # IFS 85 - # We need space, tab and new line, in precisely that order. Quoting is 86 - # there to prevent editors from complaining about space-tab. 87 - # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 - # splitting by setting IFS to empty value.) 89 - IFS=" "" $as_nl" 90 86 91 87 # Find who we are. Look in the path if we contain no directory separator. 92 88 as_myself= ··· 96 92 for as_dir in $PATH 97 93 do 98 94 IFS=$as_save_IFS 99 - test -z "$as_dir" && as_dir=. 100 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 95 + case $as_dir in #((( 96 + '') as_dir=./ ;; 97 + */) ;; 98 + *) as_dir=$as_dir/ ;; 99 + esac 100 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 101 done 102 102 IFS=$as_save_IFS 103 103 ··· 109 109 as_myself=$0 110 110 fi 111 111 if test ! -f "$as_myself"; then 112 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 113 exit 1 114 114 fi 115 115 116 - # Unset variables that we do not need and which cause bugs (e.g. in 117 - # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 - # suppresses any "Segmentation fault" message there. '((' could 119 - # trigger a bug in pdksh 5.2.14. 120 - for as_var in BASH_ENV ENV MAIL MAILPATH 121 - do eval test x\${$as_var+set} = xset \ 122 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 - done 124 - PS1='$ ' 125 - PS2='> ' 126 - PS4='+ ' 127 - 128 - # NLS nuisances. 129 - LC_ALL=C 130 - export LC_ALL 131 - LANGUAGE=C 132 - export LANGUAGE 133 - 134 - # CDPATH. 135 - (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 116 137 117 # Use a proper internal environment variable to ensure we don't fall 138 118 # into an infinite loop, continuously re-executing ourselves. ··· 154 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 135 # Admittedly, this is quite paranoid, since all the known shells bail 156 136 # out after a failed `exec'. 157 - $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 - as_fn_exit 255 137 + printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 + exit 255 159 139 fi 160 140 # We don't want this to propagate to other subprocesses. 161 141 { _as_can_reexec=; unset _as_can_reexec;} 162 142 if test "x$CONFIG_SHELL" = x; then 163 - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 143 + as_bourne_compatible="as_nop=: 144 + if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 + then : 164 146 emulate sh 165 147 NULLCMD=: 166 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 149 # is contrary to our usage. Disable this feature. 168 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 151 setopt NO_GLOB_SUBST 170 - else 152 + else \$as_nop 171 153 case \`(set -o) 2>/dev/null\` in #( 172 154 *posix*) : 173 155 set -o posix ;; #( ··· 187 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 - if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 172 + if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 + then : 191 174 192 - else 175 + else \$as_nop 193 176 exitcode=1; echo positional parameters were not saved. 194 177 fi 195 178 test x\$exitcode = x0 || exit 1 179 + blah=\$(echo \$(echo blah)) 180 + test x\"\$blah\" = xblah || exit 1 196 181 test -x / || exit 1" 197 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 186 test \$(( 1 + 1 )) = 2 || exit 1" 202 - if (eval "$as_required") 2>/dev/null; then : 187 + if (eval "$as_required") 2>/dev/null 188 + then : 203 189 as_have_required=yes 204 - else 190 + else $as_nop 205 191 as_have_required=no 206 192 fi 207 - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 193 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 + then : 208 195 209 - else 196 + else $as_nop 210 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 198 as_found=false 212 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 200 do 214 201 IFS=$as_save_IFS 215 - test -z "$as_dir" && as_dir=. 202 + case $as_dir in #((( 203 + '') as_dir=./ ;; 204 + */) ;; 205 + *) as_dir=$as_dir/ ;; 206 + esac 216 207 as_found=: 217 208 case $as_dir in #( 218 209 /*) 219 210 for as_base in sh bash ksh sh5; do 220 211 # Try only shells that exist, to save several forks. 221 - as_shell=$as_dir/$as_base 212 + as_shell=$as_dir$as_base 222 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 214 + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215 + then : 224 216 CONFIG_SHELL=$as_shell as_have_required=yes 225 - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 217 + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218 + then : 226 219 break 2 227 220 fi 228 221 fi ··· 230 223 esac 231 224 as_found=false 232 225 done 233 - $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 - CONFIG_SHELL=$SHELL as_have_required=yes 236 - fi; } 237 226 IFS=$as_save_IFS 227 + if $as_found 228 + then : 238 229 230 + else $as_nop 231 + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233 + then : 234 + CONFIG_SHELL=$SHELL as_have_required=yes 235 + fi 236 + fi 239 237 240 - if test "x$CONFIG_SHELL" != x; then : 238 + 239 + if test "x$CONFIG_SHELL" != x 240 + then : 241 241 export CONFIG_SHELL 242 242 # We cannot yet assume a decent shell, so we have to provide a 243 243 # neutralization value for shells without unset; and this also ··· 255 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 257 # out after a failed `exec'. 258 - $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258 + printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 259 exit 255 260 260 fi 261 261 262 - if test x$as_have_required = xno; then : 263 - $as_echo "$0: This script requires a shell more modern than all" 264 - $as_echo "$0: the shells that I found on your system." 265 - if test x${ZSH_VERSION+set} = xset ; then 266 - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 - $as_echo "$0: be upgraded to zsh 4.3.4 or later." 262 + if test x$as_have_required = xno 263 + then : 264 + printf "%s\n" "$0: This script requires a shell more modern than all" 265 + printf "%s\n" "$0: the shells that I found on your system." 266 + if test ${ZSH_VERSION+y} ; then 267 + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 268 269 else 269 - $as_echo "$0: Please tell bug-autoconf@gnu.org and 270 - $0: https://gitlab.freedesktop.org/xorg/app/xeyes/issues 270 + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271 + $0: https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues 271 272 $0: about your system, including any error possibly output 272 273 $0: before this message. Then install a modern shell, or 273 274 $0: manually run the script under such a shell if you do ··· 295 296 } 296 297 as_unset=as_fn_unset 297 298 299 + 298 300 # as_fn_set_status STATUS 299 301 # ----------------------- 300 302 # Set $? to STATUS, without forking. ··· 312 314 as_fn_set_status $1 313 315 exit $1 314 316 } # as_fn_exit 317 + # as_fn_nop 318 + # --------- 319 + # Do nothing but, unlike ":", preserve the value of $?. 320 + as_fn_nop () 321 + { 322 + return $? 323 + } 324 + as_nop=as_fn_nop 315 325 316 326 # as_fn_mkdir_p 317 327 # ------------- ··· 326 336 as_dirs= 327 337 while :; do 328 338 case $as_dir in #( 329 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 340 *) as_qdir=$as_dir;; 331 341 esac 332 342 as_dirs="'$as_qdir' $as_dirs" ··· 335 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 346 X"$as_dir" : 'X\(//\)$' \| \ 337 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 - $as_echo X"$as_dir" | 348 + printf "%s\n" X"$as_dir" | 339 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 350 s//\1/ 341 351 q ··· 374 384 # advantage of any shell optimizations that allow amortized linear growth over 375 385 # repeated appends, instead of the typical quadratic growth present in naive 376 386 # implementations. 377 - if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 387 + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 + then : 378 389 eval 'as_fn_append () 379 390 { 380 391 eval $1+=\$2 381 392 }' 382 - else 393 + else $as_nop 383 394 as_fn_append () 384 395 { 385 396 eval $1=\$$1\$2 ··· 391 402 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 403 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 404 # must be portable across $(()) and expr. 394 - if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 405 + if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 + then : 395 407 eval 'as_fn_arith () 396 408 { 397 409 as_val=$(( $* )) 398 410 }' 399 - else 411 + else $as_nop 400 412 as_fn_arith () 401 413 { 402 414 as_val=`expr "$@" || test $? -eq 1` 403 415 } 404 416 fi # as_fn_arith 405 417 418 + # as_fn_nop 419 + # --------- 420 + # Do nothing but, unlike ":", preserve the value of $?. 421 + as_fn_nop () 422 + { 423 + return $? 424 + } 425 + as_nop=as_fn_nop 406 426 407 427 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 428 # ---------------------------------------- ··· 414 434 as_status=$1; test $as_status -eq 0 && as_status=1 415 435 if test "$4"; then 416 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 438 fi 419 - $as_echo "$as_me: error: $2" >&2 439 + printf "%s\n" "$as_me: error: $2" >&2 420 440 as_fn_exit $as_status 421 441 } # as_fn_error 422 442 ··· 443 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 464 X"$0" : 'X\(//\)$' \| \ 445 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 - $as_echo X/"$0" | 466 + printf "%s\n" X/"$0" | 447 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 468 s//\1/ 449 469 q ··· 487 507 s/-\n.*// 488 508 ' >$as_me.lineno && 489 509 chmod +x "$as_me.lineno" || 490 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 511 492 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 513 # already done that, so ensure we don't try to do so again and fall ··· 501 521 exit 502 522 } 503 523 524 + 525 + # Determine whether it's possible to make 'echo' print without a newline. 526 + # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 + # for compatibility with existing Makefiles. 504 528 ECHO_C= ECHO_N= ECHO_T= 505 529 case `echo -n x` in #((((( 506 530 -n*) ··· 514 538 ECHO_N='-n';; 515 539 esac 516 540 541 + # For backward compatibility with old third-party macros, we provide 542 + # the shell variables $as_echo and $as_echo_n. New code should use 543 + # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 + as_echo='printf %s\n' 545 + as_echo_n='printf %s' 546 + 547 + 517 548 rm -f conf$$ conf$$.exe conf$$.file 518 549 if test -d conf$$.dir; then 519 550 rm -f conf$$.dir/conf$$.file ··· 581 612 # Identity of this package. 582 613 PACKAGE_NAME='xeyes' 583 614 PACKAGE_TARNAME='xeyes' 584 - PACKAGE_VERSION='1.2.0' 585 - PACKAGE_STRING='xeyes 1.2.0' 586 - PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xeyes/issues' 615 + PACKAGE_VERSION='1.3.0' 616 + PACKAGE_STRING='xeyes 1.3.0' 617 + PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues' 587 618 PACKAGE_URL='' 588 619 589 620 ac_unique_file="Makefile.am" 590 621 # Factoring default headers for most tests. 591 622 ac_includes_default="\ 592 - #include <stdio.h> 593 - #ifdef HAVE_SYS_TYPES_H 594 - # include <sys/types.h> 623 + #include <stddef.h> 624 + #ifdef HAVE_STDIO_H 625 + # include <stdio.h> 595 626 #endif 596 - #ifdef HAVE_SYS_STAT_H 597 - # include <sys/stat.h> 598 - #endif 599 - #ifdef STDC_HEADERS 627 + #ifdef HAVE_STDLIB_H 600 628 # include <stdlib.h> 601 - # include <stddef.h> 602 - #else 603 - # ifdef HAVE_STDLIB_H 604 - # include <stdlib.h> 605 - # endif 606 629 #endif 607 630 #ifdef HAVE_STRING_H 608 - # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 - # include <memory.h> 610 - # endif 611 631 # include <string.h> 612 - #endif 613 - #ifdef HAVE_STRINGS_H 614 - # include <strings.h> 615 632 #endif 616 633 #ifdef HAVE_INTTYPES_H 617 634 # include <inttypes.h> ··· 619 636 #ifdef HAVE_STDINT_H 620 637 # include <stdint.h> 621 638 #endif 639 + #ifdef HAVE_STRINGS_H 640 + # include <strings.h> 641 + #endif 642 + #ifdef HAVE_SYS_TYPES_H 643 + # include <sys/types.h> 644 + #endif 645 + #ifdef HAVE_SYS_STAT_H 646 + # include <sys/stat.h> 647 + #endif 622 648 #ifdef HAVE_UNISTD_H 623 649 # include <unistd.h> 624 650 #endif" 625 651 652 + ac_header_c_list= 626 653 ac_subst_vars='am__EXEEXT_FALSE 627 654 am__EXEEXT_TRUE 628 655 LTLIBOBJS ··· 668 695 STRICT_CFLAGS 669 696 CWARNFLAGS 670 697 BASE_CFLAGS 671 - EGREP 672 - GREP 673 - CPP 674 698 am__fastdepCC_FALSE 675 699 am__fastdepCC_TRUE 676 700 CCDEPMODE ··· 772 796 LDFLAGS 773 797 LIBS 774 798 CPPFLAGS 775 - CPP 776 799 PKG_CONFIG 777 800 PKG_CONFIG_PATH 778 801 PKG_CONFIG_LIBDIR ··· 850 873 *) ac_optarg=yes ;; 851 874 esac 852 875 853 - # Accept the important Cygnus configure options, so we can diagnose typos. 854 - 855 876 case $ac_dashdash$ac_option in 856 877 --) 857 878 ac_dashdash=yes ;; ··· 892 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 914 # Reject names that are not valid shell variable names. 894 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 - as_fn_error $? "invalid feature name: $ac_useropt" 916 + as_fn_error $? "invalid feature name: \`$ac_useropt'" 896 917 ac_useropt_orig=$ac_useropt 897 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 898 919 case $ac_user_opts in 899 920 *" 900 921 "enable_$ac_useropt" ··· 918 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 940 # Reject names that are not valid shell variable names. 920 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 - as_fn_error $? "invalid feature name: $ac_useropt" 942 + as_fn_error $? "invalid feature name: \`$ac_useropt'" 922 943 ac_useropt_orig=$ac_useropt 923 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 924 945 case $ac_user_opts in 925 946 *" 926 947 "enable_$ac_useropt" ··· 1131 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 1153 # Reject names that are not valid shell variable names. 1133 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 - as_fn_error $? "invalid package name: $ac_useropt" 1155 + as_fn_error $? "invalid package name: \`$ac_useropt'" 1135 1156 ac_useropt_orig=$ac_useropt 1136 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 1158 case $ac_user_opts in 1138 1159 *" 1139 1160 "with_$ac_useropt" ··· 1147 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 1169 # Reject names that are not valid shell variable names. 1149 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 - as_fn_error $? "invalid package name: $ac_useropt" 1171 + as_fn_error $? "invalid package name: \`$ac_useropt'" 1151 1172 ac_useropt_orig=$ac_useropt 1152 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 1174 case $ac_user_opts in 1154 1175 *" 1155 1176 "with_$ac_useropt" ··· 1193 1214 1194 1215 *) 1195 1216 # FIXME: should be removed in autoconf 3.0. 1196 - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1197 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1198 - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1199 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1200 1221 ;; 1201 1222 ··· 1211 1232 case $enable_option_checking in 1212 1233 no) ;; 1213 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1214 - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 1236 esac 1216 1237 fi 1217 1238 ··· 1275 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 1297 X"$as_myself" : 'X\(//\)$' \| \ 1277 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278 - $as_echo X"$as_myself" | 1299 + printf "%s\n" X"$as_myself" | 1279 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 1301 s//\1/ 1281 1302 q ··· 1332 1353 # Omit some internal or obsolete options to make the list less imposing. 1333 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1334 1355 cat <<_ACEOF 1335 - \`configure' configures xeyes 1.2.0 to adapt to many kinds of systems. 1356 + \`configure' configures xeyes 1.3.0 to adapt to many kinds of systems. 1336 1357 1337 1358 Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1359 ··· 1403 1424 1404 1425 if test -n "$ac_init_help"; then 1405 1426 case $ac_init_help in 1406 - short | recursive ) echo "Configuration of xeyes 1.2.0:";; 1427 + short | recursive ) echo "Configuration of xeyes 1.3.0:";; 1407 1428 esac 1408 1429 cat <<\_ACEOF 1409 1430 ··· 1441 1462 LIBS libraries to pass to the linker, e.g. -l<library> 1442 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1443 1464 you have headers in a nonstandard directory <include dir> 1444 - CPP C preprocessor 1445 1465 PKG_CONFIG path to pkg-config utility 1446 1466 PKG_CONFIG_PATH 1447 1467 directories to add to pkg-config's search path ··· 1462 1482 Use these variables to override the choices made by `configure' or to help 1463 1483 it to find libraries and programs with nonstandard names/locations. 1464 1484 1465 - Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>. 1485 + Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues>. 1466 1486 _ACEOF 1467 1487 ac_status=$? 1468 1488 fi ··· 1478 1498 case "$ac_dir" in 1479 1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480 1500 *) 1481 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1482 1502 # A ".." for each directory in $ac_dir_suffix. 1483 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1484 1504 case $ac_top_builddir_sub in 1485 1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486 1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ··· 1508 1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1509 1529 1510 1530 cd "$ac_dir" || { ac_status=$?; continue; } 1511 - # Check for guested configure. 1531 + # Check for configure.gnu first; this name is used for a wrapper for 1532 + # Metaconfig's "Configure" on case-insensitive file systems. 1512 1533 if test -f "$ac_srcdir/configure.gnu"; then 1513 1534 echo && 1514 1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive ··· 1516 1537 echo && 1517 1538 $SHELL "$ac_srcdir/configure" --help=recursive 1518 1539 else 1519 - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1540 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 1541 fi || ac_status=$? 1521 1542 cd "$ac_pwd" || { ac_status=$?; break; } 1522 1543 done ··· 1525 1546 test -n "$ac_init_help" && exit $ac_status 1526 1547 if $ac_init_version; then 1527 1548 cat <<\_ACEOF 1528 - xeyes configure 1.2.0 1529 - generated by GNU Autoconf 2.69 1549 + xeyes configure 1.3.0 1550 + generated by GNU Autoconf 2.71 1530 1551 1531 - Copyright (C) 2012 Free Software Foundation, Inc. 1552 + Copyright (C) 2021 Free Software Foundation, Inc. 1532 1553 This configure script is free software; the Free Software Foundation 1533 1554 gives unlimited permission to copy, distribute and modify it. 1534 1555 _ACEOF ··· 1545 1566 ac_fn_c_try_compile () 1546 1567 { 1547 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 - rm -f conftest.$ac_objext 1569 + rm -f conftest.$ac_objext conftest.beam 1549 1570 if { { ac_try="$ac_compile" 1550 1571 case "(($ac_try" in 1551 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 1573 *) ac_try_echo=$ac_try;; 1553 1574 esac 1554 1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555 - $as_echo "$ac_try_echo"; } >&5 1576 + printf "%s\n" "$ac_try_echo"; } >&5 1556 1577 (eval "$ac_compile") 2>conftest.err 1557 1578 ac_status=$? 1558 1579 if test -s conftest.err; then ··· 1560 1581 cat conftest.er1 >&5 1561 1582 mv -f conftest.er1 conftest.err 1562 1583 fi 1563 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 1585 test $ac_status = 0; } && { 1565 1586 test -z "$ac_c_werror_flag" || 1566 1587 test ! -s conftest.err 1567 - } && test -s conftest.$ac_objext; then : 1588 + } && test -s conftest.$ac_objext 1589 + then : 1568 1590 ac_retval=0 1569 - else 1570 - $as_echo "$as_me: failed program was:" >&5 1591 + else $as_nop 1592 + printf "%s\n" "$as_me: failed program was:" >&5 1571 1593 sed 's/^/| /' conftest.$ac_ext >&5 1572 1594 1573 1595 ac_retval=1 ··· 1577 1599 1578 1600 } # ac_fn_c_try_compile 1579 1601 1580 - # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1581 - # --------------------------------------------- 1602 + # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1603 + # ------------------------------------------------------------------ 1582 1604 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1583 - # accordingly. 1584 - ac_fn_c_check_decl () 1605 + # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1606 + ac_fn_check_decl () 1585 1607 { 1586 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 1609 as_decl_name=`echo $2|sed 's/ *(.*//'` 1610 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1611 + printf %s "checking whether $as_decl_name is declared... " >&6; } 1612 + if eval test \${$3+y} 1613 + then : 1614 + printf %s "(cached) " >&6 1615 + else $as_nop 1588 1616 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1589 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1590 - $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1591 - if eval \${$3+:} false; then : 1592 - $as_echo_n "(cached) " >&6 1593 - else 1617 + eval ac_save_FLAGS=\$$6 1618 + as_fn_append $6 " $5" 1594 1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595 1620 /* end confdefs.h. */ 1596 1621 $4 1597 1622 int 1598 - main () 1623 + main (void) 1599 1624 { 1600 1625 #ifndef $as_decl_name 1601 1626 #ifdef __cplusplus ··· 1609 1634 return 0; 1610 1635 } 1611 1636 _ACEOF 1612 - if ac_fn_c_try_compile "$LINENO"; then : 1637 + if ac_fn_c_try_compile "$LINENO" 1638 + then : 1613 1639 eval "$3=yes" 1614 - else 1640 + else $as_nop 1615 1641 eval "$3=no" 1616 1642 fi 1617 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1618 - fi 1619 - eval ac_res=\$$3 1620 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1621 - $as_echo "$ac_res" >&6; } 1622 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 - 1624 - } # ac_fn_c_check_decl 1625 - 1626 - # ac_fn_c_try_cpp LINENO 1627 - # ---------------------- 1628 - # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1629 - ac_fn_c_try_cpp () 1630 - { 1631 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 - if { { ac_try="$ac_cpp conftest.$ac_ext" 1633 - case "(($ac_try" in 1634 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 - *) ac_try_echo=$ac_try;; 1636 - esac 1637 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638 - $as_echo "$ac_try_echo"; } >&5 1639 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1640 - ac_status=$? 1641 - if test -s conftest.err; then 1642 - grep -v '^ *+' conftest.err >conftest.er1 1643 - cat conftest.er1 >&5 1644 - mv -f conftest.er1 conftest.err 1645 - fi 1646 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 - test $ac_status = 0; } > conftest.i && { 1648 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1649 - test ! -s conftest.err 1650 - }; then : 1651 - ac_retval=0 1652 - else 1653 - $as_echo "$as_me: failed program was:" >&5 1654 - sed 's/^/| /' conftest.$ac_ext >&5 1655 - 1656 - ac_retval=1 1657 - fi 1658 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 - as_fn_set_status $ac_retval 1660 - 1661 - } # ac_fn_c_try_cpp 1662 - 1663 - # ac_fn_c_try_run LINENO 1664 - # ---------------------- 1665 - # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1666 - # that executables *can* be run. 1667 - ac_fn_c_try_run () 1668 - { 1669 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 - if { { ac_try="$ac_link" 1671 - case "(($ac_try" in 1672 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 - *) ac_try_echo=$ac_try;; 1674 - esac 1675 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676 - $as_echo "$ac_try_echo"; } >&5 1677 - (eval "$ac_link") 2>&5 1678 - ac_status=$? 1679 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1681 - { { case "(($ac_try" in 1682 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 - *) ac_try_echo=$ac_try;; 1684 - esac 1685 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686 - $as_echo "$ac_try_echo"; } >&5 1687 - (eval "$ac_try") 2>&5 1688 - ac_status=$? 1689 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 - test $ac_status = 0; }; }; then : 1691 - ac_retval=0 1692 - else 1693 - $as_echo "$as_me: program exited with status $ac_status" >&5 1694 - $as_echo "$as_me: failed program was:" >&5 1695 - sed 's/^/| /' conftest.$ac_ext >&5 1643 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1644 + eval $6=\$ac_save_FLAGS 1696 1645 1697 - ac_retval=$ac_status 1698 1646 fi 1699 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1647 + eval ac_res=\$$3 1648 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1649 + printf "%s\n" "$ac_res" >&6; } 1700 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 - as_fn_set_status $ac_retval 1702 1651 1703 - } # ac_fn_c_try_run 1652 + } # ac_fn_check_decl 1704 1653 1705 1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1706 1655 # ------------------------------------------------------- ··· 1709 1658 ac_fn_c_check_header_compile () 1710 1659 { 1711 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713 - $as_echo_n "checking for $2... " >&6; } 1714 - if eval \${$3+:} false; then : 1715 - $as_echo_n "(cached) " >&6 1716 - else 1661 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662 + printf %s "checking for $2... " >&6; } 1663 + if eval test \${$3+y} 1664 + then : 1665 + printf %s "(cached) " >&6 1666 + else $as_nop 1717 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718 1668 /* end confdefs.h. */ 1719 1669 $4 1720 1670 #include <$2> 1721 1671 _ACEOF 1722 - if ac_fn_c_try_compile "$LINENO"; then : 1672 + if ac_fn_c_try_compile "$LINENO" 1673 + then : 1723 1674 eval "$3=yes" 1724 - else 1675 + else $as_nop 1725 1676 eval "$3=no" 1726 1677 fi 1727 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1678 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728 1679 fi 1729 1680 eval ac_res=\$$3 1730 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731 - $as_echo "$ac_res" >&6; } 1681 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682 + printf "%s\n" "$ac_res" >&6; } 1732 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1684 1734 1685 } # ac_fn_c_check_header_compile ··· 1739 1690 ac_fn_c_try_link () 1740 1691 { 1741 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 - rm -f conftest.$ac_objext conftest$ac_exeext 1693 + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1743 1694 if { { ac_try="$ac_link" 1744 1695 case "(($ac_try" in 1745 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 1697 *) ac_try_echo=$ac_try;; 1747 1698 esac 1748 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749 - $as_echo "$ac_try_echo"; } >&5 1700 + printf "%s\n" "$ac_try_echo"; } >&5 1750 1701 (eval "$ac_link") 2>conftest.err 1751 1702 ac_status=$? 1752 1703 if test -s conftest.err; then ··· 1754 1705 cat conftest.er1 >&5 1755 1706 mv -f conftest.er1 conftest.err 1756 1707 fi 1757 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 1709 test $ac_status = 0; } && { 1759 1710 test -z "$ac_c_werror_flag" || 1760 1711 test ! -s conftest.err 1761 1712 } && test -s conftest$ac_exeext && { 1762 1713 test "$cross_compiling" = yes || 1763 1714 test -x conftest$ac_exeext 1764 - }; then : 1715 + } 1716 + then : 1765 1717 ac_retval=0 1766 - else 1767 - $as_echo "$as_me: failed program was:" >&5 1718 + else $as_nop 1719 + printf "%s\n" "$as_me: failed program was:" >&5 1768 1720 sed 's/^/| /' conftest.$ac_ext >&5 1769 1721 1770 1722 ac_retval=1 ··· 1778 1730 as_fn_set_status $ac_retval 1779 1731 1780 1732 } # ac_fn_c_try_link 1733 + ac_configure_args_raw= 1734 + for ac_arg 1735 + do 1736 + case $ac_arg in 1737 + *\'*) 1738 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1739 + esac 1740 + as_fn_append ac_configure_args_raw " '$ac_arg'" 1741 + done 1742 + 1743 + case $ac_configure_args_raw in 1744 + *$as_nl*) 1745 + ac_safe_unquote= ;; 1746 + *) 1747 + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1748 + ac_unsafe_a="$ac_unsafe_z#~" 1749 + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1750 + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1751 + esac 1752 + 1781 1753 cat >config.log <<_ACEOF 1782 1754 This file contains any messages produced by compilers while 1783 1755 running configure, to aid debugging if configure makes a mistake. 1784 1756 1785 - It was created by xeyes $as_me 1.2.0, which was 1786 - generated by GNU Autoconf 2.69. Invocation command line was 1757 + It was created by xeyes $as_me 1.3.0, which was 1758 + generated by GNU Autoconf 2.71. Invocation command line was 1787 1759 1788 - $ $0 $@ 1760 + $ $0$ac_configure_args_raw 1789 1761 1790 1762 _ACEOF 1791 1763 exec 5>>config.log ··· 1818 1790 for as_dir in $PATH 1819 1791 do 1820 1792 IFS=$as_save_IFS 1821 - test -z "$as_dir" && as_dir=. 1822 - $as_echo "PATH: $as_dir" 1793 + case $as_dir in #((( 1794 + '') as_dir=./ ;; 1795 + */) ;; 1796 + *) as_dir=$as_dir/ ;; 1797 + esac 1798 + printf "%s\n" "PATH: $as_dir" 1823 1799 done 1824 1800 IFS=$as_save_IFS 1825 1801 ··· 1854 1830 | -silent | --silent | --silen | --sile | --sil) 1855 1831 continue ;; 1856 1832 *\'*) 1857 - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1833 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1858 1834 esac 1859 1835 case $ac_pass in 1860 1836 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; ··· 1889 1865 # WARNING: Use '\'' to represent an apostrophe within the trap. 1890 1866 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1891 1867 trap 'exit_status=$? 1868 + # Sanitize IFS. 1869 + IFS=" "" $as_nl" 1892 1870 # Save into config.log some information that might help in debugging. 1893 1871 { 1894 1872 echo 1895 1873 1896 - $as_echo "## ---------------- ## 1874 + printf "%s\n" "## ---------------- ## 1897 1875 ## Cache variables. ## 1898 1876 ## ---------------- ##" 1899 1877 echo ··· 1904 1882 case $ac_val in #( 1905 1883 *${as_nl}*) 1906 1884 case $ac_var in #( 1907 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1908 - $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1885 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1886 + printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1909 1887 esac 1910 1888 case $ac_var in #( 1911 1889 _ | IFS | as_nl) ;; #( ··· 1929 1907 ) 1930 1908 echo 1931 1909 1932 - $as_echo "## ----------------- ## 1910 + printf "%s\n" "## ----------------- ## 1933 1911 ## Output variables. ## 1934 1912 ## ----------------- ##" 1935 1913 echo ··· 1937 1915 do 1938 1916 eval ac_val=\$$ac_var 1939 1917 case $ac_val in 1940 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1918 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1941 1919 esac 1942 - $as_echo "$ac_var='\''$ac_val'\''" 1920 + printf "%s\n" "$ac_var='\''$ac_val'\''" 1943 1921 done | sort 1944 1922 echo 1945 1923 1946 1924 if test -n "$ac_subst_files"; then 1947 - $as_echo "## ------------------- ## 1925 + printf "%s\n" "## ------------------- ## 1948 1926 ## File substitutions. ## 1949 1927 ## ------------------- ##" 1950 1928 echo ··· 1952 1930 do 1953 1931 eval ac_val=\$$ac_var 1954 1932 case $ac_val in 1955 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1933 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1956 1934 esac 1957 - $as_echo "$ac_var='\''$ac_val'\''" 1935 + printf "%s\n" "$ac_var='\''$ac_val'\''" 1958 1936 done | sort 1959 1937 echo 1960 1938 fi 1961 1939 1962 1940 if test -s confdefs.h; then 1963 - $as_echo "## ----------- ## 1941 + printf "%s\n" "## ----------- ## 1964 1942 ## confdefs.h. ## 1965 1943 ## ----------- ##" 1966 1944 echo ··· 1968 1946 echo 1969 1947 fi 1970 1948 test "$ac_signal" != 0 && 1971 - $as_echo "$as_me: caught signal $ac_signal" 1972 - $as_echo "$as_me: exit $exit_status" 1949 + printf "%s\n" "$as_me: caught signal $ac_signal" 1950 + printf "%s\n" "$as_me: exit $exit_status" 1973 1951 } >&5 1974 1952 rm -f core *.core core.conftest.* && 1975 1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ··· 1983 1961 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1984 1962 rm -f -r conftest* confdefs.h 1985 1963 1986 - $as_echo "/* confdefs.h */" > confdefs.h 1964 + printf "%s\n" "/* confdefs.h */" > confdefs.h 1987 1965 1988 1966 # Predefined preprocessor variables. 1989 1967 1990 - cat >>confdefs.h <<_ACEOF 1991 - #define PACKAGE_NAME "$PACKAGE_NAME" 1992 - _ACEOF 1968 + printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1993 1969 1994 - cat >>confdefs.h <<_ACEOF 1995 - #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1996 - _ACEOF 1970 + printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1997 1971 1998 - cat >>confdefs.h <<_ACEOF 1999 - #define PACKAGE_VERSION "$PACKAGE_VERSION" 2000 - _ACEOF 1972 + printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2001 1973 2002 - cat >>confdefs.h <<_ACEOF 2003 - #define PACKAGE_STRING "$PACKAGE_STRING" 2004 - _ACEOF 1974 + printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2005 1975 2006 - cat >>confdefs.h <<_ACEOF 2007 - #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2008 - _ACEOF 1976 + printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2009 1977 2010 - cat >>confdefs.h <<_ACEOF 2011 - #define PACKAGE_URL "$PACKAGE_URL" 2012 - _ACEOF 1978 + printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2013 1979 2014 1980 2015 1981 # Let the site file select an alternate cache file if it wants to. 2016 1982 # Prefer an explicitly selected file to automatically selected ones. 2017 - ac_site_file1=NONE 2018 - ac_site_file2=NONE 2019 1983 if test -n "$CONFIG_SITE"; then 2020 - # We do not want a PATH search for config.site. 2021 - case $CONFIG_SITE in #(( 2022 - -*) ac_site_file1=./$CONFIG_SITE;; 2023 - */*) ac_site_file1=$CONFIG_SITE;; 2024 - *) ac_site_file1=./$CONFIG_SITE;; 2025 - esac 1984 + ac_site_files="$CONFIG_SITE" 2026 1985 elif test "x$prefix" != xNONE; then 2027 - ac_site_file1=$prefix/share/config.site 2028 - ac_site_file2=$prefix/etc/config.site 1986 + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2029 1987 else 2030 - ac_site_file1=$ac_default_prefix/share/config.site 2031 - ac_site_file2=$ac_default_prefix/etc/config.site 1988 + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2032 1989 fi 2033 - for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1990 + 1991 + for ac_site_file in $ac_site_files 2034 1992 do 2035 - test "x$ac_site_file" = xNONE && continue 2036 - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2037 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2038 - $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1993 + case $ac_site_file in #( 1994 + */*) : 1995 + ;; #( 1996 + *) : 1997 + ac_site_file=./$ac_site_file ;; 1998 + esac 1999 + if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2000 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2001 + printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2039 2002 sed 's/^/| /' "$ac_site_file" >&5 2040 2003 . "$ac_site_file" \ 2041 - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2042 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2004 + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2005 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2043 2006 as_fn_error $? "failed to load site script $ac_site_file 2044 2007 See \`config.log' for more details" "$LINENO" 5; } 2045 2008 fi ··· 2049 2012 # Some versions of bash will fail to source /dev/null (special files 2050 2013 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2051 2014 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2052 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2053 - $as_echo "$as_me: loading cache $cache_file" >&6;} 2015 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2016 + printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2054 2017 case $cache_file in 2055 2018 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2056 2019 *) . "./$cache_file";; 2057 2020 esac 2058 2021 fi 2059 2022 else 2060 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2061 - $as_echo "$as_me: creating cache $cache_file" >&6;} 2023 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2024 + printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2062 2025 >$cache_file 2063 2026 fi 2064 2027 2028 + # Test code for whether the C compiler supports C89 (global declarations) 2029 + ac_c_conftest_c89_globals=' 2030 + /* Does the compiler advertise C89 conformance? 2031 + Do not test the value of __STDC__, because some compilers set it to 0 2032 + while being otherwise adequately conformant. */ 2033 + #if !defined __STDC__ 2034 + # error "Compiler does not advertise C89 conformance" 2035 + #endif 2036 + 2037 + #include <stddef.h> 2038 + #include <stdarg.h> 2039 + struct stat; 2040 + /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2041 + struct buf { int x; }; 2042 + struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2043 + static char *e (p, i) 2044 + char **p; 2045 + int i; 2046 + { 2047 + return p[i]; 2048 + } 2049 + static char *f (char * (*g) (char **, int), char **p, ...) 2050 + { 2051 + char *s; 2052 + va_list v; 2053 + va_start (v,p); 2054 + s = g (p, va_arg (v,int)); 2055 + va_end (v); 2056 + return s; 2057 + } 2058 + 2059 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2060 + function prototypes and stuff, but not \xHH hex character constants. 2061 + These do not provoke an error unfortunately, instead are silently treated 2062 + as an "x". The following induces an error, until -std is added to get 2063 + proper ANSI mode. Curiously \x00 != x always comes out true, for an 2064 + array size at least. It is necessary to write \x00 == 0 to get something 2065 + that is true only with -std. */ 2066 + int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2067 + 2068 + /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2069 + inside strings and character constants. */ 2070 + #define FOO(x) '\''x'\'' 2071 + int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2072 + 2073 + int test (int i, double x); 2074 + struct s1 {int (*f) (int a);}; 2075 + struct s2 {int (*f) (double a);}; 2076 + int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2077 + int, int);' 2078 + 2079 + # Test code for whether the C compiler supports C89 (body of main). 2080 + ac_c_conftest_c89_main=' 2081 + ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2082 + ' 2083 + 2084 + # Test code for whether the C compiler supports C99 (global declarations) 2085 + ac_c_conftest_c99_globals=' 2086 + // Does the compiler advertise C99 conformance? 2087 + #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2088 + # error "Compiler does not advertise C99 conformance" 2089 + #endif 2090 + 2091 + #include <stdbool.h> 2092 + extern int puts (const char *); 2093 + extern int printf (const char *, ...); 2094 + extern int dprintf (int, const char *, ...); 2095 + extern void *malloc (size_t); 2096 + 2097 + // Check varargs macros. These examples are taken from C99 6.10.3.5. 2098 + // dprintf is used instead of fprintf to avoid needing to declare 2099 + // FILE and stderr. 2100 + #define debug(...) dprintf (2, __VA_ARGS__) 2101 + #define showlist(...) puts (#__VA_ARGS__) 2102 + #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2103 + static void 2104 + test_varargs_macros (void) 2105 + { 2106 + int x = 1234; 2107 + int y = 5678; 2108 + debug ("Flag"); 2109 + debug ("X = %d\n", x); 2110 + showlist (The first, second, and third items.); 2111 + report (x>y, "x is %d but y is %d", x, y); 2112 + } 2113 + 2114 + // Check long long types. 2115 + #define BIG64 18446744073709551615ull 2116 + #define BIG32 4294967295ul 2117 + #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2118 + #if !BIG_OK 2119 + #error "your preprocessor is broken" 2120 + #endif 2121 + #if BIG_OK 2122 + #else 2123 + #error "your preprocessor is broken" 2124 + #endif 2125 + static long long int bignum = -9223372036854775807LL; 2126 + static unsigned long long int ubignum = BIG64; 2127 + 2128 + struct incomplete_array 2129 + { 2130 + int datasize; 2131 + double data[]; 2132 + }; 2133 + 2134 + struct named_init { 2135 + int number; 2136 + const wchar_t *name; 2137 + double average; 2138 + }; 2139 + 2140 + typedef const char *ccp; 2141 + 2142 + static inline int 2143 + test_restrict (ccp restrict text) 2144 + { 2145 + // See if C++-style comments work. 2146 + // Iterate through items via the restricted pointer. 2147 + // Also check for declarations in for loops. 2148 + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2149 + continue; 2150 + return 0; 2151 + } 2152 + 2153 + // Check varargs and va_copy. 2154 + static bool 2155 + test_varargs (const char *format, ...) 2156 + { 2157 + va_list args; 2158 + va_start (args, format); 2159 + va_list args_copy; 2160 + va_copy (args_copy, args); 2161 + 2162 + const char *str = ""; 2163 + int number = 0; 2164 + float fnumber = 0; 2165 + 2166 + while (*format) 2167 + { 2168 + switch (*format++) 2169 + { 2170 + case '\''s'\'': // string 2171 + str = va_arg (args_copy, const char *); 2172 + break; 2173 + case '\''d'\'': // int 2174 + number = va_arg (args_copy, int); 2175 + break; 2176 + case '\''f'\'': // float 2177 + fnumber = va_arg (args_copy, double); 2178 + break; 2179 + default: 2180 + break; 2181 + } 2182 + } 2183 + va_end (args_copy); 2184 + va_end (args); 2185 + 2186 + return *str && number && fnumber; 2187 + } 2188 + ' 2189 + 2190 + # Test code for whether the C compiler supports C99 (body of main). 2191 + ac_c_conftest_c99_main=' 2192 + // Check bool. 2193 + _Bool success = false; 2194 + success |= (argc != 0); 2195 + 2196 + // Check restrict. 2197 + if (test_restrict ("String literal") == 0) 2198 + success = true; 2199 + char *restrict newvar = "Another string"; 2200 + 2201 + // Check varargs. 2202 + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2203 + test_varargs_macros (); 2204 + 2205 + // Check flexible array members. 2206 + struct incomplete_array *ia = 2207 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2208 + ia->datasize = 10; 2209 + for (int i = 0; i < ia->datasize; ++i) 2210 + ia->data[i] = i * 1.234; 2211 + 2212 + // Check named initializers. 2213 + struct named_init ni = { 2214 + .number = 34, 2215 + .name = L"Test wide string", 2216 + .average = 543.34343, 2217 + }; 2218 + 2219 + ni.number = 58; 2220 + 2221 + int dynamic_array[ni.number]; 2222 + dynamic_array[0] = argv[0][0]; 2223 + dynamic_array[ni.number - 1] = 543; 2224 + 2225 + // work around unused variable warnings 2226 + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2227 + || dynamic_array[ni.number - 1] != 543); 2228 + ' 2229 + 2230 + # Test code for whether the C compiler supports C11 (global declarations) 2231 + ac_c_conftest_c11_globals=' 2232 + // Does the compiler advertise C11 conformance? 2233 + #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2234 + # error "Compiler does not advertise C11 conformance" 2235 + #endif 2236 + 2237 + // Check _Alignas. 2238 + char _Alignas (double) aligned_as_double; 2239 + char _Alignas (0) no_special_alignment; 2240 + extern char aligned_as_int; 2241 + char _Alignas (0) _Alignas (int) aligned_as_int; 2242 + 2243 + // Check _Alignof. 2244 + enum 2245 + { 2246 + int_alignment = _Alignof (int), 2247 + int_array_alignment = _Alignof (int[100]), 2248 + char_alignment = _Alignof (char) 2249 + }; 2250 + _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2251 + 2252 + // Check _Noreturn. 2253 + int _Noreturn does_not_return (void) { for (;;) continue; } 2254 + 2255 + // Check _Static_assert. 2256 + struct test_static_assert 2257 + { 2258 + int x; 2259 + _Static_assert (sizeof (int) <= sizeof (long int), 2260 + "_Static_assert does not work in struct"); 2261 + long int y; 2262 + }; 2263 + 2264 + // Check UTF-8 literals. 2265 + #define u8 syntax error! 2266 + char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2267 + 2268 + // Check duplicate typedefs. 2269 + typedef long *long_ptr; 2270 + typedef long int *long_ptr; 2271 + typedef long_ptr long_ptr; 2272 + 2273 + // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2274 + struct anonymous 2275 + { 2276 + union { 2277 + struct { int i; int j; }; 2278 + struct { int k; long int l; } w; 2279 + }; 2280 + int m; 2281 + } v1; 2282 + ' 2283 + 2284 + # Test code for whether the C compiler supports C11 (body of main). 2285 + ac_c_conftest_c11_main=' 2286 + _Static_assert ((offsetof (struct anonymous, i) 2287 + == offsetof (struct anonymous, w.k)), 2288 + "Anonymous union alignment botch"); 2289 + v1.i = 2; 2290 + v1.w.k = 5; 2291 + ok |= v1.i != 5; 2292 + ' 2293 + 2294 + # Test code for whether the C compiler supports C11 (complete). 2295 + ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2296 + ${ac_c_conftest_c99_globals} 2297 + ${ac_c_conftest_c11_globals} 2298 + 2299 + int 2300 + main (int argc, char **argv) 2301 + { 2302 + int ok = 0; 2303 + ${ac_c_conftest_c89_main} 2304 + ${ac_c_conftest_c99_main} 2305 + ${ac_c_conftest_c11_main} 2306 + return ok; 2307 + } 2308 + " 2309 + 2310 + # Test code for whether the C compiler supports C99 (complete). 2311 + ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2312 + ${ac_c_conftest_c99_globals} 2313 + 2314 + int 2315 + main (int argc, char **argv) 2316 + { 2317 + int ok = 0; 2318 + ${ac_c_conftest_c89_main} 2319 + ${ac_c_conftest_c99_main} 2320 + return ok; 2321 + } 2322 + " 2323 + 2324 + # Test code for whether the C compiler supports C89 (complete). 2325 + ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2326 + 2327 + int 2328 + main (int argc, char **argv) 2329 + { 2330 + int ok = 0; 2331 + ${ac_c_conftest_c89_main} 2332 + return ok; 2333 + } 2334 + " 2335 + 2336 + as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2337 + as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2338 + as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2339 + as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2340 + as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2341 + as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2342 + as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2343 + as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2344 + as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2345 + 2346 + # Auxiliary files required by this configure script. 2347 + ac_aux_files="config.guess config.sub missing install-sh" 2348 + 2349 + # Locations in which to look for auxiliary files. 2350 + ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2351 + 2352 + # Search for a directory containing all of the required auxiliary files, 2353 + # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2354 + # If we don't find one directory that contains all the files we need, 2355 + # we report the set of missing files from the *first* directory in 2356 + # $ac_aux_dir_candidates and give up. 2357 + ac_missing_aux_files="" 2358 + ac_first_candidate=: 2359 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2360 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361 + as_found=false 2362 + for as_dir in $ac_aux_dir_candidates 2363 + do 2364 + IFS=$as_save_IFS 2365 + case $as_dir in #((( 2366 + '') as_dir=./ ;; 2367 + */) ;; 2368 + *) as_dir=$as_dir/ ;; 2369 + esac 2370 + as_found=: 2371 + 2372 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2373 + ac_aux_dir_found=yes 2374 + ac_install_sh= 2375 + for ac_aux in $ac_aux_files 2376 + do 2377 + # As a special case, if "install-sh" is required, that requirement 2378 + # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2379 + # and $ac_install_sh is set appropriately for whichever one is found. 2380 + if test x"$ac_aux" = x"install-sh" 2381 + then 2382 + if test -f "${as_dir}install-sh"; then 2383 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2384 + ac_install_sh="${as_dir}install-sh -c" 2385 + elif test -f "${as_dir}install.sh"; then 2386 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2387 + ac_install_sh="${as_dir}install.sh -c" 2388 + elif test -f "${as_dir}shtool"; then 2389 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2390 + ac_install_sh="${as_dir}shtool install -c" 2391 + else 2392 + ac_aux_dir_found=no 2393 + if $ac_first_candidate; then 2394 + ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2395 + else 2396 + break 2397 + fi 2398 + fi 2399 + else 2400 + if test -f "${as_dir}${ac_aux}"; then 2401 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2402 + else 2403 + ac_aux_dir_found=no 2404 + if $ac_first_candidate; then 2405 + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2406 + else 2407 + break 2408 + fi 2409 + fi 2410 + fi 2411 + done 2412 + if test "$ac_aux_dir_found" = yes; then 2413 + ac_aux_dir="$as_dir" 2414 + break 2415 + fi 2416 + ac_first_candidate=false 2417 + 2418 + as_found=false 2419 + done 2420 + IFS=$as_save_IFS 2421 + if $as_found 2422 + then : 2423 + 2424 + else $as_nop 2425 + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2426 + fi 2427 + 2428 + 2429 + # These three variables are undocumented and unsupported, 2430 + # and are intended to be withdrawn in a future Autoconf release. 2431 + # They can cause serious problems if a builder's source tree is in a directory 2432 + # whose full name contains unusual characters. 2433 + if test -f "${ac_aux_dir}config.guess"; then 2434 + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2435 + fi 2436 + if test -f "${ac_aux_dir}config.sub"; then 2437 + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2438 + fi 2439 + if test -f "$ac_aux_dir/configure"; then 2440 + ac_configure="$SHELL ${ac_aux_dir}configure" 2441 + fi 2442 + 2065 2443 # Check that the precious variables saved in the cache have kept the same 2066 2444 # value. 2067 2445 ac_cache_corrupted=false ··· 2072 2450 eval ac_new_val=\$ac_env_${ac_var}_value 2073 2451 case $ac_old_set,$ac_new_set in 2074 2452 set,) 2075 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2076 - $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2453 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2454 + printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2077 2455 ac_cache_corrupted=: ;; 2078 2456 ,set) 2079 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2080 - $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2457 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2458 + printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2081 2459 ac_cache_corrupted=: ;; 2082 2460 ,);; 2083 2461 *) ··· 2086 2464 ac_old_val_w=`echo x $ac_old_val` 2087 2465 ac_new_val_w=`echo x $ac_new_val` 2088 2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2089 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2090 - $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2467 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2468 + printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2091 2469 ac_cache_corrupted=: 2092 2470 else 2093 - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2094 - $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2471 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2472 + printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2095 2473 eval $ac_var=\$ac_old_val 2096 2474 fi 2097 - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2098 - $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2099 - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2100 - $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2475 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2476 + printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2477 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2478 + printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2101 2479 fi;; 2102 2480 esac 2103 2481 # Pass precious variables to config.status. 2104 2482 if test "$ac_new_set" = set; then 2105 2483 case $ac_new_val in 2106 - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2484 + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2107 2485 *) ac_arg=$ac_var=$ac_new_val ;; 2108 2486 esac 2109 2487 case " $ac_configure_args " in ··· 2113 2491 fi 2114 2492 done 2115 2493 if $ac_cache_corrupted; then 2116 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2117 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2118 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2119 - $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2120 - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2494 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2495 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2496 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2497 + printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2498 + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2499 + and start over" "$LINENO" 5 2121 2500 fi 2122 2501 ## -------------------- ## 2123 2502 ## Main body of script. ## ··· 2137 2516 # Initialize Automake 2138 2517 am__api_version='1.12' 2139 2518 2140 - ac_aux_dir= 2141 - for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2142 - if test -f "$ac_dir/install-sh"; then 2143 - ac_aux_dir=$ac_dir 2144 - ac_install_sh="$ac_aux_dir/install-sh -c" 2145 - break 2146 - elif test -f "$ac_dir/install.sh"; then 2147 - ac_aux_dir=$ac_dir 2148 - ac_install_sh="$ac_aux_dir/install.sh -c" 2149 - break 2150 - elif test -f "$ac_dir/shtool"; then 2151 - ac_aux_dir=$ac_dir 2152 - ac_install_sh="$ac_aux_dir/shtool install -c" 2153 - break 2154 - fi 2155 - done 2156 - if test -z "$ac_aux_dir"; then 2157 - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2158 - fi 2159 2519 2160 - # These three variables are undocumented and unsupported, 2161 - # and are intended to be withdrawn in a future Autoconf release. 2162 - # They can cause serious problems if a builder's source tree is in a directory 2163 - # whose full name contains unusual characters. 2164 - ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2165 - ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2166 - ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2167 2520 2168 - 2169 - # Find a good install program. We prefer a C program (faster), 2521 + # Find a good install program. We prefer a C program (faster), 2170 2522 # so one script is as good as another. But avoid the broken or 2171 2523 # incompatible versions: 2172 2524 # SysV /etc/install, /usr/sbin/install ··· 2180 2532 # OS/2's system install, which has a completely different semantic 2181 2533 # ./install, which can be erroneously created by make from ./install.sh. 2182 2534 # Reject install programs that cannot install multiple files. 2183 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2184 - $as_echo_n "checking for a BSD-compatible install... " >&6; } 2535 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2536 + printf %s "checking for a BSD-compatible install... " >&6; } 2185 2537 if test -z "$INSTALL"; then 2186 - if ${ac_cv_path_install+:} false; then : 2187 - $as_echo_n "(cached) " >&6 2188 - else 2538 + if test ${ac_cv_path_install+y} 2539 + then : 2540 + printf %s "(cached) " >&6 2541 + else $as_nop 2189 2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2190 2543 for as_dir in $PATH 2191 2544 do 2192 2545 IFS=$as_save_IFS 2193 - test -z "$as_dir" && as_dir=. 2194 - # Account for people who put trailing slashes in PATH elements. 2195 - case $as_dir/ in #(( 2196 - ./ | .// | /[cC]/* | \ 2546 + case $as_dir in #((( 2547 + '') as_dir=./ ;; 2548 + */) ;; 2549 + *) as_dir=$as_dir/ ;; 2550 + esac 2551 + # Account for fact that we put trailing slashes in our PATH walk. 2552 + case $as_dir in #(( 2553 + ./ | /[cC]/* | \ 2197 2554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2198 2555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2199 2556 /usr/ucb/* ) ;; ··· 2203 2560 # by default. 2204 2561 for ac_prog in ginstall scoinst install; do 2205 2562 for ac_exec_ext in '' $ac_executable_extensions; do 2206 - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2563 + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2207 2564 if test $ac_prog = install && 2208 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2565 + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2209 2566 # AIX install. It has an incompatible calling convention. 2210 2567 : 2211 2568 elif test $ac_prog = install && 2212 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2569 + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2213 2570 # program-specific install script used by HP pwplus--don't use. 2214 2571 : 2215 2572 else ··· 2217 2574 echo one > conftest.one 2218 2575 echo two > conftest.two 2219 2576 mkdir conftest.dir 2220 - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2577 + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2221 2578 test -s conftest.one && test -s conftest.two && 2222 2579 test -s conftest.dir/conftest.one && 2223 2580 test -s conftest.dir/conftest.two 2224 2581 then 2225 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2582 + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2226 2583 break 3 2227 2584 fi 2228 2585 fi ··· 2238 2595 rm -rf conftest.one conftest.two conftest.dir 2239 2596 2240 2597 fi 2241 - if test "${ac_cv_path_install+set}" = set; then 2598 + if test ${ac_cv_path_install+y}; then 2242 2599 INSTALL=$ac_cv_path_install 2243 2600 else 2244 2601 # As a last resort, use the slow shell script. Don't cache a ··· 2248 2605 INSTALL=$ac_install_sh 2249 2606 fi 2250 2607 fi 2251 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2252 - $as_echo "$INSTALL" >&6; } 2608 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2609 + printf "%s\n" "$INSTALL" >&6; } 2253 2610 2254 2611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2255 2612 # It thinks the first close brace ends the variable substitution. ··· 2259 2616 2260 2617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2261 2618 2262 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2263 - $as_echo_n "checking whether build environment is sane... " >&6; } 2619 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2620 + printf %s "checking whether build environment is sane... " >&6; } 2264 2621 # Reject unsafe characters in $srcdir or the absolute working directory 2265 2622 # name. Accept space and tab only in the latter. 2266 2623 am_lf=' ··· 2314 2671 as_fn_error $? "newly created file is older than distributed files! 2315 2672 Check your system clock" "$LINENO" 5 2316 2673 fi 2317 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2318 - $as_echo "yes" >&6; } 2674 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2675 + printf "%s\n" "yes" >&6; } 2319 2676 # If we didn't sleep, we still need to ensure time stamps of config.status and 2320 2677 # generated files are strictly newer. 2321 2678 am_sleep_pid= ··· 2334 2691 # Double any \ or $. 2335 2692 # By default was `s,x,x', remove it if useless. 2336 2693 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2337 - program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2694 + program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2338 2695 2339 2696 # expand $ac_aux_dir to an absolute path 2340 2697 am_aux_dir=`cd $ac_aux_dir && pwd` 2341 2698 2342 - if test x"${MISSING+set}" != xset; then 2699 + 2700 + if test x"${MISSING+set}" != xset; then 2343 2701 case $am_aux_dir in 2344 2702 *\ * | *\ *) 2345 2703 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; ··· 2352 2710 am_missing_run="$MISSING --run " 2353 2711 else 2354 2712 am_missing_run= 2355 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2356 - $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2713 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2714 + printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2357 2715 fi 2358 2716 2359 2717 if test x"${install_sh}" != xset; then ··· 2373 2731 if test -n "$ac_tool_prefix"; then 2374 2732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2375 2733 set dummy ${ac_tool_prefix}strip; ac_word=$2 2376 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2377 - $as_echo_n "checking for $ac_word... " >&6; } 2378 - if ${ac_cv_prog_STRIP+:} false; then : 2379 - $as_echo_n "(cached) " >&6 2380 - else 2734 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2735 + printf %s "checking for $ac_word... " >&6; } 2736 + if test ${ac_cv_prog_STRIP+y} 2737 + then : 2738 + printf %s "(cached) " >&6 2739 + else $as_nop 2381 2740 if test -n "$STRIP"; then 2382 2741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2383 2742 else ··· 2385 2744 for as_dir in $PATH 2386 2745 do 2387 2746 IFS=$as_save_IFS 2388 - test -z "$as_dir" && as_dir=. 2747 + case $as_dir in #((( 2748 + '') as_dir=./ ;; 2749 + */) ;; 2750 + *) as_dir=$as_dir/ ;; 2751 + esac 2389 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2390 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2753 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2391 2754 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2392 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2393 2756 break 2 2394 2757 fi 2395 2758 done ··· 2400 2763 fi 2401 2764 STRIP=$ac_cv_prog_STRIP 2402 2765 if test -n "$STRIP"; then 2403 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2404 - $as_echo "$STRIP" >&6; } 2766 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2767 + printf "%s\n" "$STRIP" >&6; } 2405 2768 else 2406 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2407 - $as_echo "no" >&6; } 2769 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770 + printf "%s\n" "no" >&6; } 2408 2771 fi 2409 2772 2410 2773 ··· 2413 2776 ac_ct_STRIP=$STRIP 2414 2777 # Extract the first word of "strip", so it can be a program name with args. 2415 2778 set dummy strip; ac_word=$2 2416 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2417 - $as_echo_n "checking for $ac_word... " >&6; } 2418 - if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2419 - $as_echo_n "(cached) " >&6 2420 - else 2779 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2780 + printf %s "checking for $ac_word... " >&6; } 2781 + if test ${ac_cv_prog_ac_ct_STRIP+y} 2782 + then : 2783 + printf %s "(cached) " >&6 2784 + else $as_nop 2421 2785 if test -n "$ac_ct_STRIP"; then 2422 2786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2423 2787 else ··· 2425 2789 for as_dir in $PATH 2426 2790 do 2427 2791 IFS=$as_save_IFS 2428 - test -z "$as_dir" && as_dir=. 2792 + case $as_dir in #((( 2793 + '') as_dir=./ ;; 2794 + */) ;; 2795 + *) as_dir=$as_dir/ ;; 2796 + esac 2429 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2430 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2798 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2431 2799 ac_cv_prog_ac_ct_STRIP="strip" 2432 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2433 2801 break 2 2434 2802 fi 2435 2803 done ··· 2440 2808 fi 2441 2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2442 2810 if test -n "$ac_ct_STRIP"; then 2443 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2444 - $as_echo "$ac_ct_STRIP" >&6; } 2811 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2812 + printf "%s\n" "$ac_ct_STRIP" >&6; } 2445 2813 else 2446 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2447 - $as_echo "no" >&6; } 2814 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815 + printf "%s\n" "no" >&6; } 2448 2816 fi 2449 2817 2450 2818 if test "x$ac_ct_STRIP" = x; then ··· 2452 2820 else 2453 2821 case $cross_compiling:$ac_tool_warned in 2454 2822 yes:) 2455 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2456 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2823 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2824 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2457 2825 ac_tool_warned=yes ;; 2458 2826 esac 2459 2827 STRIP=$ac_ct_STRIP ··· 2465 2833 fi 2466 2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2467 2835 2468 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2469 - $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2836 + 2837 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2838 + printf %s "checking for a race-free mkdir -p... " >&6; } 2470 2839 if test -z "$MKDIR_P"; then 2471 - if ${ac_cv_path_mkdir+:} false; then : 2472 - $as_echo_n "(cached) " >&6 2473 - else 2840 + if test ${ac_cv_path_mkdir+y} 2841 + then : 2842 + printf %s "(cached) " >&6 2843 + else $as_nop 2474 2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475 2845 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2476 2846 do 2477 2847 IFS=$as_save_IFS 2478 - test -z "$as_dir" && as_dir=. 2848 + case $as_dir in #((( 2849 + '') as_dir=./ ;; 2850 + */) ;; 2851 + *) as_dir=$as_dir/ ;; 2852 + esac 2479 2853 for ac_prog in mkdir gmkdir; do 2480 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2481 - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2482 - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2483 - 'mkdir (GNU coreutils) '* | \ 2484 - 'mkdir (coreutils) '* | \ 2855 + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2856 + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2857 + 'mkdir ('*'coreutils) '* | \ 2858 + 'BusyBox '* | \ 2485 2859 'mkdir (fileutils) '4.1*) 2486 - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2860 + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2487 2861 break 3;; 2488 2862 esac 2489 2863 done ··· 2494 2868 fi 2495 2869 2496 2870 test -d ./--version && rmdir ./--version 2497 - if test "${ac_cv_path_mkdir+set}" = set; then 2871 + if test ${ac_cv_path_mkdir+y}; then 2498 2872 MKDIR_P="$ac_cv_path_mkdir -p" 2499 2873 else 2500 2874 # As a last resort, use the slow shell script. Don't cache a ··· 2504 2878 MKDIR_P="$ac_install_sh -d" 2505 2879 fi 2506 2880 fi 2507 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2508 - $as_echo "$MKDIR_P" >&6; } 2881 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2882 + printf "%s\n" "$MKDIR_P" >&6; } 2509 2883 2510 2884 for ac_prog in gawk mawk nawk awk 2511 2885 do 2512 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2513 2887 set dummy $ac_prog; ac_word=$2 2514 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2515 - $as_echo_n "checking for $ac_word... " >&6; } 2516 - if ${ac_cv_prog_AWK+:} false; then : 2517 - $as_echo_n "(cached) " >&6 2518 - else 2888 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889 + printf %s "checking for $ac_word... " >&6; } 2890 + if test ${ac_cv_prog_AWK+y} 2891 + then : 2892 + printf %s "(cached) " >&6 2893 + else $as_nop 2519 2894 if test -n "$AWK"; then 2520 2895 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2521 2896 else ··· 2523 2898 for as_dir in $PATH 2524 2899 do 2525 2900 IFS=$as_save_IFS 2526 - test -z "$as_dir" && as_dir=. 2901 + case $as_dir in #((( 2902 + '') as_dir=./ ;; 2903 + */) ;; 2904 + *) as_dir=$as_dir/ ;; 2905 + esac 2527 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2528 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2907 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2529 2908 ac_cv_prog_AWK="$ac_prog" 2530 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2531 2910 break 2 2532 2911 fi 2533 2912 done ··· 2538 2917 fi 2539 2918 AWK=$ac_cv_prog_AWK 2540 2919 if test -n "$AWK"; then 2541 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2542 - $as_echo "$AWK" >&6; } 2920 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2921 + printf "%s\n" "$AWK" >&6; } 2543 2922 else 2544 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2545 - $as_echo "no" >&6; } 2923 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924 + printf "%s\n" "no" >&6; } 2546 2925 fi 2547 2926 2548 2927 2549 2928 test -n "$AWK" && break 2550 2929 done 2551 2930 2552 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2553 - $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2931 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2932 + printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2554 2933 set x ${MAKE-make} 2555 - ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2556 - if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2557 - $as_echo_n "(cached) " >&6 2558 - else 2934 + ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2935 + if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2936 + then : 2937 + printf %s "(cached) " >&6 2938 + else $as_nop 2559 2939 cat >conftest.make <<\_ACEOF 2560 2940 SHELL = /bin/sh 2561 2941 all: ··· 2571 2951 rm -f conftest.make 2572 2952 fi 2573 2953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2574 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2575 - $as_echo "yes" >&6; } 2954 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2955 + printf "%s\n" "yes" >&6; } 2576 2956 SET_MAKE= 2577 2957 else 2578 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579 - $as_echo "no" >&6; } 2958 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959 + printf "%s\n" "no" >&6; } 2580 2960 SET_MAKE="MAKE=${MAKE-make}" 2581 2961 fi 2582 2962 ··· 2611 2991 2612 2992 # Define the identity of the package. 2613 2993 PACKAGE='xeyes' 2614 - VERSION='1.2.0' 2994 + VERSION='1.3.0' 2615 2995 2616 2996 2617 - cat >>confdefs.h <<_ACEOF 2618 - #define PACKAGE "$PACKAGE" 2619 - _ACEOF 2997 + printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 2620 2998 2621 2999 2622 - cat >>confdefs.h <<_ACEOF 2623 - #define VERSION "$VERSION" 2624 - _ACEOF 3000 + printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 2625 3001 2626 3002 # Some tools Automake needs. 2627 3003 ··· 2655 3031 2656 3032 2657 3033 2658 - 2659 - 2660 - 2661 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2662 - $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2663 - # Check whether --enable-maintainer-mode was given. 2664 - if test "${enable_maintainer_mode+set}" = set; then : 2665 - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2666 - else 2667 - USE_MAINTAINER_MODE=no 2668 - fi 2669 - 2670 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2671 - $as_echo "$USE_MAINTAINER_MODE" >&6; } 2672 - if test $USE_MAINTAINER_MODE = yes; then 2673 - MAINTAINER_MODE_TRUE= 2674 - MAINTAINER_MODE_FALSE='#' 2675 - else 2676 - MAINTAINER_MODE_TRUE='#' 2677 - MAINTAINER_MODE_FALSE= 2678 - fi 2679 - 2680 - MAINT=$MAINTAINER_MODE_TRUE 2681 3034 2682 3035 2683 3036 ··· 2693 3046 2694 3047 2695 3048 2696 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2697 - $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3049 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3050 + printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2698 3051 # Check whether --enable-maintainer-mode was given. 2699 - if test "${enable_maintainer_mode+set}" = set; then : 3052 + if test ${enable_maintainer_mode+y} 3053 + then : 2700 3054 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2701 - else 3055 + else $as_nop 2702 3056 USE_MAINTAINER_MODE=no 2703 3057 fi 2704 3058 2705 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2706 - $as_echo "$USE_MAINTAINER_MODE" >&6; } 3059 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3060 + printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 2707 3061 if test $USE_MAINTAINER_MODE = yes; then 2708 3062 MAINTAINER_MODE_TRUE= 2709 3063 MAINTAINER_MODE_FALSE='#' ··· 2716 3070 2717 3071 2718 3072 3073 + 3074 + 3075 + 3076 + 3077 + 3078 + 3079 + 3080 + 3081 + 2719 3082 DEPDIR="${am__leading_dot}deps" 2720 3083 2721 3084 ac_config_commands="$ac_config_commands depfiles" ··· 2728 3091 .PHONY: am__doit 2729 3092 END 2730 3093 # If we don't find an include directive, just comment out the code. 2731 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2732 - $as_echo_n "checking for style of include used by $am_make... " >&6; } 3094 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3095 + printf %s "checking for style of include used by $am_make... " >&6; } 2733 3096 am__include="#" 2734 3097 am__quote= 2735 3098 _am_result=none ··· 2756 3119 fi 2757 3120 2758 3121 2759 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2760 - $as_echo "$_am_result" >&6; } 3122 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3123 + printf "%s\n" "$_am_result" >&6; } 2761 3124 rm -f confinc confmf 2762 3125 2763 3126 # Check whether --enable-dependency-tracking was given. 2764 - if test "${enable_dependency_tracking+set}" = set; then : 3127 + if test ${enable_dependency_tracking+y} 3128 + then : 2765 3129 enableval=$enable_dependency_tracking; 2766 3130 fi 2767 3131 ··· 2787 3151 if test -n "$ac_tool_prefix"; then 2788 3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2789 3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2790 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791 - $as_echo_n "checking for $ac_word... " >&6; } 2792 - if ${ac_cv_prog_CC+:} false; then : 2793 - $as_echo_n "(cached) " >&6 2794 - else 3154 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3155 + printf %s "checking for $ac_word... " >&6; } 3156 + if test ${ac_cv_prog_CC+y} 3157 + then : 3158 + printf %s "(cached) " >&6 3159 + else $as_nop 2795 3160 if test -n "$CC"; then 2796 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 2797 3162 else ··· 2799 3164 for as_dir in $PATH 2800 3165 do 2801 3166 IFS=$as_save_IFS 2802 - test -z "$as_dir" && as_dir=. 3167 + case $as_dir in #((( 3168 + '') as_dir=./ ;; 3169 + */) ;; 3170 + *) as_dir=$as_dir/ ;; 3171 + esac 2803 3172 for ac_exec_ext in '' $ac_executable_extensions; do 2804 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3173 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2805 3174 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2806 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2807 3176 break 2 2808 3177 fi 2809 3178 done ··· 2814 3183 fi 2815 3184 CC=$ac_cv_prog_CC 2816 3185 if test -n "$CC"; then 2817 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818 - $as_echo "$CC" >&6; } 3186 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3187 + printf "%s\n" "$CC" >&6; } 2819 3188 else 2820 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821 - $as_echo "no" >&6; } 3189 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190 + printf "%s\n" "no" >&6; } 2822 3191 fi 2823 3192 2824 3193 ··· 2827 3196 ac_ct_CC=$CC 2828 3197 # Extract the first word of "gcc", so it can be a program name with args. 2829 3198 set dummy gcc; ac_word=$2 2830 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2831 - $as_echo_n "checking for $ac_word... " >&6; } 2832 - if ${ac_cv_prog_ac_ct_CC+:} false; then : 2833 - $as_echo_n "(cached) " >&6 2834 - else 3199 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3200 + printf %s "checking for $ac_word... " >&6; } 3201 + if test ${ac_cv_prog_ac_ct_CC+y} 3202 + then : 3203 + printf %s "(cached) " >&6 3204 + else $as_nop 2835 3205 if test -n "$ac_ct_CC"; then 2836 3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2837 3207 else ··· 2839 3209 for as_dir in $PATH 2840 3210 do 2841 3211 IFS=$as_save_IFS 2842 - test -z "$as_dir" && as_dir=. 3212 + case $as_dir in #((( 3213 + '') as_dir=./ ;; 3214 + */) ;; 3215 + *) as_dir=$as_dir/ ;; 3216 + esac 2843 3217 for ac_exec_ext in '' $ac_executable_extensions; do 2844 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3218 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2845 3219 ac_cv_prog_ac_ct_CC="gcc" 2846 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2847 3221 break 2 2848 3222 fi 2849 3223 done ··· 2854 3228 fi 2855 3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2856 3230 if test -n "$ac_ct_CC"; then 2857 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2858 - $as_echo "$ac_ct_CC" >&6; } 3231 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3232 + printf "%s\n" "$ac_ct_CC" >&6; } 2859 3233 else 2860 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861 - $as_echo "no" >&6; } 3234 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235 + printf "%s\n" "no" >&6; } 2862 3236 fi 2863 3237 2864 3238 if test "x$ac_ct_CC" = x; then ··· 2866 3240 else 2867 3241 case $cross_compiling:$ac_tool_warned in 2868 3242 yes:) 2869 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2870 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3243 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3244 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2871 3245 ac_tool_warned=yes ;; 2872 3246 esac 2873 3247 CC=$ac_ct_CC ··· 2880 3254 if test -n "$ac_tool_prefix"; then 2881 3255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2882 3256 set dummy ${ac_tool_prefix}cc; ac_word=$2 2883 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884 - $as_echo_n "checking for $ac_word... " >&6; } 2885 - if ${ac_cv_prog_CC+:} false; then : 2886 - $as_echo_n "(cached) " >&6 2887 - else 3257 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258 + printf %s "checking for $ac_word... " >&6; } 3259 + if test ${ac_cv_prog_CC+y} 3260 + then : 3261 + printf %s "(cached) " >&6 3262 + else $as_nop 2888 3263 if test -n "$CC"; then 2889 3264 ac_cv_prog_CC="$CC" # Let the user override the test. 2890 3265 else ··· 2892 3267 for as_dir in $PATH 2893 3268 do 2894 3269 IFS=$as_save_IFS 2895 - test -z "$as_dir" && as_dir=. 3270 + case $as_dir in #((( 3271 + '') as_dir=./ ;; 3272 + */) ;; 3273 + *) as_dir=$as_dir/ ;; 3274 + esac 2896 3275 for ac_exec_ext in '' $ac_executable_extensions; do 2897 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3276 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2898 3277 ac_cv_prog_CC="${ac_tool_prefix}cc" 2899 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3278 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2900 3279 break 2 2901 3280 fi 2902 3281 done ··· 2907 3286 fi 2908 3287 CC=$ac_cv_prog_CC 2909 3288 if test -n "$CC"; then 2910 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2911 - $as_echo "$CC" >&6; } 3289 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3290 + printf "%s\n" "$CC" >&6; } 2912 3291 else 2913 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914 - $as_echo "no" >&6; } 3292 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3293 + printf "%s\n" "no" >&6; } 2915 3294 fi 2916 3295 2917 3296 ··· 2920 3299 if test -z "$CC"; then 2921 3300 # Extract the first word of "cc", so it can be a program name with args. 2922 3301 set dummy cc; ac_word=$2 2923 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924 - $as_echo_n "checking for $ac_word... " >&6; } 2925 - if ${ac_cv_prog_CC+:} false; then : 2926 - $as_echo_n "(cached) " >&6 2927 - else 3302 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3303 + printf %s "checking for $ac_word... " >&6; } 3304 + if test ${ac_cv_prog_CC+y} 3305 + then : 3306 + printf %s "(cached) " >&6 3307 + else $as_nop 2928 3308 if test -n "$CC"; then 2929 3309 ac_cv_prog_CC="$CC" # Let the user override the test. 2930 3310 else ··· 2933 3313 for as_dir in $PATH 2934 3314 do 2935 3315 IFS=$as_save_IFS 2936 - test -z "$as_dir" && as_dir=. 3316 + case $as_dir in #((( 3317 + '') as_dir=./ ;; 3318 + */) ;; 3319 + *) as_dir=$as_dir/ ;; 3320 + esac 2937 3321 for ac_exec_ext in '' $ac_executable_extensions; do 2938 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2939 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3322 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3323 + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2940 3324 ac_prog_rejected=yes 2941 3325 continue 2942 3326 fi 2943 3327 ac_cv_prog_CC="cc" 2944 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3328 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2945 3329 break 2 2946 3330 fi 2947 3331 done ··· 2957 3341 # However, it has the same basename, so the bogon will be chosen 2958 3342 # first if we set CC to just the basename; use the full file name. 2959 3343 shift 2960 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3344 + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2961 3345 fi 2962 3346 fi 2963 3347 fi 2964 3348 fi 2965 3349 CC=$ac_cv_prog_CC 2966 3350 if test -n "$CC"; then 2967 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2968 - $as_echo "$CC" >&6; } 3351 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3352 + printf "%s\n" "$CC" >&6; } 2969 3353 else 2970 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971 - $as_echo "no" >&6; } 3354 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355 + printf "%s\n" "no" >&6; } 2972 3356 fi 2973 3357 2974 3358 ··· 2979 3363 do 2980 3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2981 3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2982 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983 - $as_echo_n "checking for $ac_word... " >&6; } 2984 - if ${ac_cv_prog_CC+:} false; then : 2985 - $as_echo_n "(cached) " >&6 2986 - else 3366 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367 + printf %s "checking for $ac_word... " >&6; } 3368 + if test ${ac_cv_prog_CC+y} 3369 + then : 3370 + printf %s "(cached) " >&6 3371 + else $as_nop 2987 3372 if test -n "$CC"; then 2988 3373 ac_cv_prog_CC="$CC" # Let the user override the test. 2989 3374 else ··· 2991 3376 for as_dir in $PATH 2992 3377 do 2993 3378 IFS=$as_save_IFS 2994 - test -z "$as_dir" && as_dir=. 3379 + case $as_dir in #((( 3380 + '') as_dir=./ ;; 3381 + */) ;; 3382 + *) as_dir=$as_dir/ ;; 3383 + esac 2995 3384 for ac_exec_ext in '' $ac_executable_extensions; do 2996 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3385 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2997 3386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2998 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3387 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2999 3388 break 2 3000 3389 fi 3001 3390 done ··· 3006 3395 fi 3007 3396 CC=$ac_cv_prog_CC 3008 3397 if test -n "$CC"; then 3009 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3010 - $as_echo "$CC" >&6; } 3398 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3399 + printf "%s\n" "$CC" >&6; } 3011 3400 else 3012 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013 - $as_echo "no" >&6; } 3401 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3402 + printf "%s\n" "no" >&6; } 3014 3403 fi 3015 3404 3016 3405 ··· 3023 3412 do 3024 3413 # Extract the first word of "$ac_prog", so it can be a program name with args. 3025 3414 set dummy $ac_prog; ac_word=$2 3026 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3027 - $as_echo_n "checking for $ac_word... " >&6; } 3028 - if ${ac_cv_prog_ac_ct_CC+:} false; then : 3029 - $as_echo_n "(cached) " >&6 3030 - else 3415 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3416 + printf %s "checking for $ac_word... " >&6; } 3417 + if test ${ac_cv_prog_ac_ct_CC+y} 3418 + then : 3419 + printf %s "(cached) " >&6 3420 + else $as_nop 3031 3421 if test -n "$ac_ct_CC"; then 3032 3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3033 3423 else ··· 3035 3425 for as_dir in $PATH 3036 3426 do 3037 3427 IFS=$as_save_IFS 3038 - test -z "$as_dir" && as_dir=. 3428 + case $as_dir in #((( 3429 + '') as_dir=./ ;; 3430 + */) ;; 3431 + *) as_dir=$as_dir/ ;; 3432 + esac 3039 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3040 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3434 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3041 3435 ac_cv_prog_ac_ct_CC="$ac_prog" 3042 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3043 3437 break 2 3044 3438 fi 3045 3439 done ··· 3050 3444 fi 3051 3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3052 3446 if test -n "$ac_ct_CC"; then 3053 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3054 - $as_echo "$ac_ct_CC" >&6; } 3447 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3448 + printf "%s\n" "$ac_ct_CC" >&6; } 3055 3449 else 3056 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057 - $as_echo "no" >&6; } 3450 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451 + printf "%s\n" "no" >&6; } 3058 3452 fi 3059 3453 3060 3454 ··· 3066 3460 else 3067 3461 case $cross_compiling:$ac_tool_warned in 3068 3462 yes:) 3069 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3070 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3463 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3464 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3071 3465 ac_tool_warned=yes ;; 3072 3466 esac 3073 3467 CC=$ac_ct_CC ··· 3075 3469 fi 3076 3470 3077 3471 fi 3472 + if test -z "$CC"; then 3473 + if test -n "$ac_tool_prefix"; then 3474 + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3475 + set dummy ${ac_tool_prefix}clang; ac_word=$2 3476 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3477 + printf %s "checking for $ac_word... " >&6; } 3478 + if test ${ac_cv_prog_CC+y} 3479 + then : 3480 + printf %s "(cached) " >&6 3481 + else $as_nop 3482 + if test -n "$CC"; then 3483 + ac_cv_prog_CC="$CC" # Let the user override the test. 3484 + else 3485 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3486 + for as_dir in $PATH 3487 + do 3488 + IFS=$as_save_IFS 3489 + case $as_dir in #((( 3490 + '') as_dir=./ ;; 3491 + */) ;; 3492 + *) as_dir=$as_dir/ ;; 3493 + esac 3494 + for ac_exec_ext in '' $ac_executable_extensions; do 3495 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3496 + ac_cv_prog_CC="${ac_tool_prefix}clang" 3497 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3498 + break 2 3499 + fi 3500 + done 3501 + done 3502 + IFS=$as_save_IFS 3078 3503 3504 + fi 3505 + fi 3506 + CC=$ac_cv_prog_CC 3507 + if test -n "$CC"; then 3508 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3509 + printf "%s\n" "$CC" >&6; } 3510 + else 3511 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3512 + printf "%s\n" "no" >&6; } 3513 + fi 3079 3514 3080 - test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515 + 3516 + fi 3517 + if test -z "$ac_cv_prog_CC"; then 3518 + ac_ct_CC=$CC 3519 + # Extract the first word of "clang", so it can be a program name with args. 3520 + set dummy clang; ac_word=$2 3521 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3522 + printf %s "checking for $ac_word... " >&6; } 3523 + if test ${ac_cv_prog_ac_ct_CC+y} 3524 + then : 3525 + printf %s "(cached) " >&6 3526 + else $as_nop 3527 + if test -n "$ac_ct_CC"; then 3528 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3529 + else 3530 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531 + for as_dir in $PATH 3532 + do 3533 + IFS=$as_save_IFS 3534 + case $as_dir in #((( 3535 + '') as_dir=./ ;; 3536 + */) ;; 3537 + *) as_dir=$as_dir/ ;; 3538 + esac 3539 + for ac_exec_ext in '' $ac_executable_extensions; do 3540 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3541 + ac_cv_prog_ac_ct_CC="clang" 3542 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3543 + break 2 3544 + fi 3545 + done 3546 + done 3547 + IFS=$as_save_IFS 3548 + 3549 + fi 3550 + fi 3551 + ac_ct_CC=$ac_cv_prog_ac_ct_CC 3552 + if test -n "$ac_ct_CC"; then 3553 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3554 + printf "%s\n" "$ac_ct_CC" >&6; } 3555 + else 3556 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3557 + printf "%s\n" "no" >&6; } 3558 + fi 3559 + 3560 + if test "x$ac_ct_CC" = x; then 3561 + CC="" 3562 + else 3563 + case $cross_compiling:$ac_tool_warned in 3564 + yes:) 3565 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3566 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3567 + ac_tool_warned=yes ;; 3568 + esac 3569 + CC=$ac_ct_CC 3570 + fi 3571 + else 3572 + CC="$ac_cv_prog_CC" 3573 + fi 3574 + 3575 + fi 3576 + 3577 + 3578 + test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3082 3580 as_fn_error $? "no acceptable C compiler found in \$PATH 3083 3581 See \`config.log' for more details" "$LINENO" 5; } 3084 3582 3085 3583 # Provide some information about the compiler. 3086 - $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3584 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3087 3585 set X $ac_compile 3088 3586 ac_compiler=$2 3089 - for ac_option in --version -v -V -qversion; do 3587 + for ac_option in --version -v -V -qversion -version; do 3090 3588 { { ac_try="$ac_compiler $ac_option >&5" 3091 3589 case "(($ac_try" in 3092 3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 3591 *) ac_try_echo=$ac_try;; 3094 3592 esac 3095 3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096 - $as_echo "$ac_try_echo"; } >&5 3594 + printf "%s\n" "$ac_try_echo"; } >&5 3097 3595 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3098 3596 ac_status=$? 3099 3597 if test -s conftest.err; then ··· 3103 3601 cat conftest.er1 >&5 3104 3602 fi 3105 3603 rm -f conftest.er1 conftest.err 3106 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3604 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3107 3605 test $ac_status = 0; } 3108 3606 done 3109 3607 ··· 3111 3609 /* end confdefs.h. */ 3112 3610 3113 3611 int 3114 - main () 3612 + main (void) 3115 3613 { 3116 3614 3117 3615 ; ··· 3123 3621 # Try to create an executable without -o first, disregard a.out. 3124 3622 # It will help us diagnose broken compilers, and finding out an intuition 3125 3623 # of exeext. 3126 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3127 - $as_echo_n "checking whether the C compiler works... " >&6; } 3128 - ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3624 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3625 + printf %s "checking whether the C compiler works... " >&6; } 3626 + ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3129 3627 3130 3628 # The possible output files: 3131 3629 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ··· 3146 3644 *) ac_try_echo=$ac_try;; 3147 3645 esac 3148 3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3149 - $as_echo "$ac_try_echo"; } >&5 3647 + printf "%s\n" "$ac_try_echo"; } >&5 3150 3648 (eval "$ac_link_default") 2>&5 3151 3649 ac_status=$? 3152 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3153 - test $ac_status = 0; }; then : 3650 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3651 + test $ac_status = 0; } 3652 + then : 3154 3653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3155 3654 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3156 3655 # in a Makefile. We should not override ac_cv_exeext if it was cached, ··· 3167 3666 # certainly right. 3168 3667 break;; 3169 3668 *.* ) 3170 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3669 + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3171 3670 then :; else 3172 3671 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3173 3672 fi ··· 3183 3682 done 3184 3683 test "$ac_cv_exeext" = no && ac_cv_exeext= 3185 3684 3186 - else 3685 + else $as_nop 3187 3686 ac_file='' 3188 3687 fi 3189 - if test -z "$ac_file"; then : 3190 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191 - $as_echo "no" >&6; } 3192 - $as_echo "$as_me: failed program was:" >&5 3688 + if test -z "$ac_file" 3689 + then : 3690 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3691 + printf "%s\n" "no" >&6; } 3692 + printf "%s\n" "$as_me: failed program was:" >&5 3193 3693 sed 's/^/| /' conftest.$ac_ext >&5 3194 3694 3195 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3196 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3695 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3696 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3197 3697 as_fn_error 77 "C compiler cannot create executables 3198 3698 See \`config.log' for more details" "$LINENO" 5; } 3199 - else 3200 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3201 - $as_echo "yes" >&6; } 3699 + else $as_nop 3700 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3701 + printf "%s\n" "yes" >&6; } 3202 3702 fi 3203 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3204 - $as_echo_n "checking for C compiler default output file name... " >&6; } 3205 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3206 - $as_echo "$ac_file" >&6; } 3703 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3704 + printf %s "checking for C compiler default output file name... " >&6; } 3705 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3706 + printf "%s\n" "$ac_file" >&6; } 3207 3707 ac_exeext=$ac_cv_exeext 3208 3708 3209 3709 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3210 3710 ac_clean_files=$ac_clean_files_save 3211 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3212 - $as_echo_n "checking for suffix of executables... " >&6; } 3711 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3712 + printf %s "checking for suffix of executables... " >&6; } 3213 3713 if { { ac_try="$ac_link" 3214 3714 case "(($ac_try" in 3215 3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 3716 *) ac_try_echo=$ac_try;; 3217 3717 esac 3218 3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219 - $as_echo "$ac_try_echo"; } >&5 3719 + printf "%s\n" "$ac_try_echo"; } >&5 3220 3720 (eval "$ac_link") 2>&5 3221 3721 ac_status=$? 3222 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 - test $ac_status = 0; }; then : 3722 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3723 + test $ac_status = 0; } 3724 + then : 3224 3725 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3225 3726 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3226 3727 # work properly (i.e., refer to `conftest.exe'), while it won't with ··· 3234 3735 * ) break;; 3235 3736 esac 3236 3737 done 3237 - else 3238 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3239 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3738 + else $as_nop 3739 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3740 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3240 3741 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3241 3742 See \`config.log' for more details" "$LINENO" 5; } 3242 3743 fi 3243 3744 rm -f conftest conftest$ac_cv_exeext 3244 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3245 - $as_echo "$ac_cv_exeext" >&6; } 3745 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3746 + printf "%s\n" "$ac_cv_exeext" >&6; } 3246 3747 3247 3748 rm -f conftest.$ac_ext 3248 3749 EXEEXT=$ac_cv_exeext ··· 3251 3752 /* end confdefs.h. */ 3252 3753 #include <stdio.h> 3253 3754 int 3254 - main () 3755 + main (void) 3255 3756 { 3256 3757 FILE *f = fopen ("conftest.out", "w"); 3257 3758 return ferror (f) || fclose (f) != 0; ··· 3263 3764 ac_clean_files="$ac_clean_files conftest.out" 3264 3765 # Check that the compiler produces executables we can run. If not, either 3265 3766 # the compiler is broken, or we cross compile. 3266 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3267 - $as_echo_n "checking whether we are cross compiling... " >&6; } 3767 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3768 + printf %s "checking whether we are cross compiling... " >&6; } 3268 3769 if test "$cross_compiling" != yes; then 3269 3770 { { ac_try="$ac_link" 3270 3771 case "(($ac_try" in ··· 3272 3773 *) ac_try_echo=$ac_try;; 3273 3774 esac 3274 3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275 - $as_echo "$ac_try_echo"; } >&5 3776 + printf "%s\n" "$ac_try_echo"; } >&5 3276 3777 (eval "$ac_link") 2>&5 3277 3778 ac_status=$? 3278 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3779 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 3780 test $ac_status = 0; } 3280 3781 if { ac_try='./conftest$ac_cv_exeext' 3281 3782 { { case "(($ac_try" in ··· 3283 3784 *) ac_try_echo=$ac_try;; 3284 3785 esac 3285 3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286 - $as_echo "$ac_try_echo"; } >&5 3787 + printf "%s\n" "$ac_try_echo"; } >&5 3287 3788 (eval "$ac_try") 2>&5 3288 3789 ac_status=$? 3289 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3790 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290 3791 test $ac_status = 0; }; }; then 3291 3792 cross_compiling=no 3292 3793 else 3293 3794 if test "$cross_compiling" = maybe; then 3294 3795 cross_compiling=yes 3295 3796 else 3296 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298 - as_fn_error $? "cannot run C compiled programs. 3797 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3798 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3799 + as_fn_error 77 "cannot run C compiled programs. 3299 3800 If you meant to cross compile, use \`--host'. 3300 3801 See \`config.log' for more details" "$LINENO" 5; } 3301 3802 fi 3302 3803 fi 3303 3804 fi 3304 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3305 - $as_echo "$cross_compiling" >&6; } 3805 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3806 + printf "%s\n" "$cross_compiling" >&6; } 3306 3807 3307 3808 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3308 3809 ac_clean_files=$ac_clean_files_save 3309 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3310 - $as_echo_n "checking for suffix of object files... " >&6; } 3311 - if ${ac_cv_objext+:} false; then : 3312 - $as_echo_n "(cached) " >&6 3313 - else 3810 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3811 + printf %s "checking for suffix of object files... " >&6; } 3812 + if test ${ac_cv_objext+y} 3813 + then : 3814 + printf %s "(cached) " >&6 3815 + else $as_nop 3314 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315 3817 /* end confdefs.h. */ 3316 3818 3317 3819 int 3318 - main () 3820 + main (void) 3319 3821 { 3320 3822 3321 3823 ; ··· 3329 3831 *) ac_try_echo=$ac_try;; 3330 3832 esac 3331 3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332 - $as_echo "$ac_try_echo"; } >&5 3834 + printf "%s\n" "$ac_try_echo"; } >&5 3333 3835 (eval "$ac_compile") 2>&5 3334 3836 ac_status=$? 3335 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 - test $ac_status = 0; }; then : 3837 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 + test $ac_status = 0; } 3839 + then : 3337 3840 for ac_file in conftest.o conftest.obj conftest.*; do 3338 3841 test -f "$ac_file" || continue; 3339 3842 case $ac_file in ··· 3342 3845 break;; 3343 3846 esac 3344 3847 done 3345 - else 3346 - $as_echo "$as_me: failed program was:" >&5 3848 + else $as_nop 3849 + printf "%s\n" "$as_me: failed program was:" >&5 3347 3850 sed 's/^/| /' conftest.$ac_ext >&5 3348 3851 3349 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3852 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3853 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3351 3854 as_fn_error $? "cannot compute suffix of object files: cannot compile 3352 3855 See \`config.log' for more details" "$LINENO" 5; } 3353 3856 fi 3354 3857 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3355 3858 fi 3356 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3357 - $as_echo "$ac_cv_objext" >&6; } 3859 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3860 + printf "%s\n" "$ac_cv_objext" >&6; } 3358 3861 OBJEXT=$ac_cv_objext 3359 3862 ac_objext=$OBJEXT 3360 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3361 - $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3362 - if ${ac_cv_c_compiler_gnu+:} false; then : 3363 - $as_echo_n "(cached) " >&6 3364 - else 3863 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3864 + printf %s "checking whether the compiler supports GNU C... " >&6; } 3865 + if test ${ac_cv_c_compiler_gnu+y} 3866 + then : 3867 + printf %s "(cached) " >&6 3868 + else $as_nop 3365 3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366 3870 /* end confdefs.h. */ 3367 3871 3368 3872 int 3369 - main () 3873 + main (void) 3370 3874 { 3371 3875 #ifndef __GNUC__ 3372 3876 choke me ··· 3376 3880 return 0; 3377 3881 } 3378 3882 _ACEOF 3379 - if ac_fn_c_try_compile "$LINENO"; then : 3883 + if ac_fn_c_try_compile "$LINENO" 3884 + then : 3380 3885 ac_compiler_gnu=yes 3381 - else 3886 + else $as_nop 3382 3887 ac_compiler_gnu=no 3383 3888 fi 3384 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3385 3890 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3386 3891 3387 3892 fi 3388 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3389 - $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3893 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3894 + printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3895 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 3896 + 3390 3897 if test $ac_compiler_gnu = yes; then 3391 3898 GCC=yes 3392 3899 else 3393 3900 GCC= 3394 3901 fi 3395 - ac_test_CFLAGS=${CFLAGS+set} 3902 + ac_test_CFLAGS=${CFLAGS+y} 3396 3903 ac_save_CFLAGS=$CFLAGS 3397 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3398 - $as_echo_n "checking whether $CC accepts -g... " >&6; } 3399 - if ${ac_cv_prog_cc_g+:} false; then : 3400 - $as_echo_n "(cached) " >&6 3401 - else 3904 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3905 + printf %s "checking whether $CC accepts -g... " >&6; } 3906 + if test ${ac_cv_prog_cc_g+y} 3907 + then : 3908 + printf %s "(cached) " >&6 3909 + else $as_nop 3402 3910 ac_save_c_werror_flag=$ac_c_werror_flag 3403 3911 ac_c_werror_flag=yes 3404 3912 ac_cv_prog_cc_g=no ··· 3407 3915 /* end confdefs.h. */ 3408 3916 3409 3917 int 3410 - main () 3918 + main (void) 3411 3919 { 3412 3920 3413 3921 ; 3414 3922 return 0; 3415 3923 } 3416 3924 _ACEOF 3417 - if ac_fn_c_try_compile "$LINENO"; then : 3925 + if ac_fn_c_try_compile "$LINENO" 3926 + then : 3418 3927 ac_cv_prog_cc_g=yes 3419 - else 3928 + else $as_nop 3420 3929 CFLAGS="" 3421 3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422 3931 /* end confdefs.h. */ 3423 3932 3424 3933 int 3425 - main () 3934 + main (void) 3426 3935 { 3427 3936 3428 3937 ; 3429 3938 return 0; 3430 3939 } 3431 3940 _ACEOF 3432 - if ac_fn_c_try_compile "$LINENO"; then : 3941 + if ac_fn_c_try_compile "$LINENO" 3942 + then : 3433 3943 3434 - else 3944 + else $as_nop 3435 3945 ac_c_werror_flag=$ac_save_c_werror_flag 3436 3946 CFLAGS="-g" 3437 3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438 3948 /* end confdefs.h. */ 3439 3949 3440 3950 int 3441 - main () 3951 + main (void) 3442 3952 { 3443 3953 3444 3954 ; 3445 3955 return 0; 3446 3956 } 3447 3957 _ACEOF 3448 - if ac_fn_c_try_compile "$LINENO"; then : 3958 + if ac_fn_c_try_compile "$LINENO" 3959 + then : 3449 3960 ac_cv_prog_cc_g=yes 3450 3961 fi 3451 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3452 3963 fi 3453 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3964 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3454 3965 fi 3455 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3966 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3456 3967 ac_c_werror_flag=$ac_save_c_werror_flag 3457 3968 fi 3458 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3459 - $as_echo "$ac_cv_prog_cc_g" >&6; } 3460 - if test "$ac_test_CFLAGS" = set; then 3969 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3970 + printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3971 + if test $ac_test_CFLAGS; then 3461 3972 CFLAGS=$ac_save_CFLAGS 3462 3973 elif test $ac_cv_prog_cc_g = yes; then 3463 3974 if test "$GCC" = yes; then ··· 3472 3983 CFLAGS= 3473 3984 fi 3474 3985 fi 3475 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3476 - $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3477 - if ${ac_cv_prog_cc_c89+:} false; then : 3478 - $as_echo_n "(cached) " >&6 3479 - else 3480 - ac_cv_prog_cc_c89=no 3986 + ac_prog_cc_stdc=no 3987 + if test x$ac_prog_cc_stdc = xno 3988 + then : 3989 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3990 + printf %s "checking for $CC option to enable C11 features... " >&6; } 3991 + if test ${ac_cv_prog_cc_c11+y} 3992 + then : 3993 + printf %s "(cached) " >&6 3994 + else $as_nop 3995 + ac_cv_prog_cc_c11=no 3481 3996 ac_save_CC=$CC 3482 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483 3998 /* end confdefs.h. */ 3484 - #include <stdarg.h> 3485 - #include <stdio.h> 3486 - struct stat; 3487 - /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3488 - struct buf { int x; }; 3489 - FILE * (*rcsopen) (struct buf *, struct stat *, int); 3490 - static char *e (p, i) 3491 - char **p; 3492 - int i; 3493 - { 3494 - return p[i]; 3495 - } 3496 - static char *f (char * (*g) (char **, int), char **p, ...) 3497 - { 3498 - char *s; 3499 - va_list v; 3500 - va_start (v,p); 3501 - s = g (p, va_arg (v,int)); 3502 - va_end (v); 3503 - return s; 3504 - } 3999 + $ac_c_conftest_c11_program 4000 + _ACEOF 4001 + for ac_arg in '' -std=gnu11 4002 + do 4003 + CC="$ac_save_CC $ac_arg" 4004 + if ac_fn_c_try_compile "$LINENO" 4005 + then : 4006 + ac_cv_prog_cc_c11=$ac_arg 4007 + fi 4008 + rm -f core conftest.err conftest.$ac_objext conftest.beam 4009 + test "x$ac_cv_prog_cc_c11" != "xno" && break 4010 + done 4011 + rm -f conftest.$ac_ext 4012 + CC=$ac_save_CC 4013 + fi 3505 4014 3506 - /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3507 - function prototypes and stuff, but not '\xHH' hex character constants. 3508 - These don't provoke an error unfortunately, instead are silently treated 3509 - as 'x'. The following induces an error, until -std is added to get 3510 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3511 - array size at least. It's necessary to write '\x00'==0 to get something 3512 - that's true only with -std. */ 3513 - int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4015 + if test "x$ac_cv_prog_cc_c11" = xno 4016 + then : 4017 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4018 + printf "%s\n" "unsupported" >&6; } 4019 + else $as_nop 4020 + if test "x$ac_cv_prog_cc_c11" = x 4021 + then : 4022 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4023 + printf "%s\n" "none needed" >&6; } 4024 + else $as_nop 4025 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4026 + printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4027 + CC="$CC $ac_cv_prog_cc_c11" 4028 + fi 4029 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4030 + ac_prog_cc_stdc=c11 4031 + fi 4032 + fi 4033 + if test x$ac_prog_cc_stdc = xno 4034 + then : 4035 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4036 + printf %s "checking for $CC option to enable C99 features... " >&6; } 4037 + if test ${ac_cv_prog_cc_c99+y} 4038 + then : 4039 + printf %s "(cached) " >&6 4040 + else $as_nop 4041 + ac_cv_prog_cc_c99=no 4042 + ac_save_CC=$CC 4043 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044 + /* end confdefs.h. */ 4045 + $ac_c_conftest_c99_program 4046 + _ACEOF 4047 + for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4048 + do 4049 + CC="$ac_save_CC $ac_arg" 4050 + if ac_fn_c_try_compile "$LINENO" 4051 + then : 4052 + ac_cv_prog_cc_c99=$ac_arg 4053 + fi 4054 + rm -f core conftest.err conftest.$ac_objext conftest.beam 4055 + test "x$ac_cv_prog_cc_c99" != "xno" && break 4056 + done 4057 + rm -f conftest.$ac_ext 4058 + CC=$ac_save_CC 4059 + fi 3514 4060 3515 - /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3516 - inside strings and character constants. */ 3517 - #define FOO(x) 'x' 3518 - int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3519 - 3520 - int test (int i, double x); 3521 - struct s1 {int (*f) (int a);}; 3522 - struct s2 {int (*f) (double a);}; 3523 - int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3524 - int argc; 3525 - char **argv; 3526 - int 3527 - main () 3528 - { 3529 - return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3530 - ; 3531 - return 0; 3532 - } 4061 + if test "x$ac_cv_prog_cc_c99" = xno 4062 + then : 4063 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4064 + printf "%s\n" "unsupported" >&6; } 4065 + else $as_nop 4066 + if test "x$ac_cv_prog_cc_c99" = x 4067 + then : 4068 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4069 + printf "%s\n" "none needed" >&6; } 4070 + else $as_nop 4071 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4072 + printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4073 + CC="$CC $ac_cv_prog_cc_c99" 4074 + fi 4075 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4076 + ac_prog_cc_stdc=c99 4077 + fi 4078 + fi 4079 + if test x$ac_prog_cc_stdc = xno 4080 + then : 4081 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4082 + printf %s "checking for $CC option to enable C89 features... " >&6; } 4083 + if test ${ac_cv_prog_cc_c89+y} 4084 + then : 4085 + printf %s "(cached) " >&6 4086 + else $as_nop 4087 + ac_cv_prog_cc_c89=no 4088 + ac_save_CC=$CC 4089 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090 + /* end confdefs.h. */ 4091 + $ac_c_conftest_c89_program 3533 4092 _ACEOF 3534 - for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3535 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4093 + for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3536 4094 do 3537 4095 CC="$ac_save_CC $ac_arg" 3538 - if ac_fn_c_try_compile "$LINENO"; then : 4096 + if ac_fn_c_try_compile "$LINENO" 4097 + then : 3539 4098 ac_cv_prog_cc_c89=$ac_arg 3540 4099 fi 3541 - rm -f core conftest.err conftest.$ac_objext 4100 + rm -f core conftest.err conftest.$ac_objext conftest.beam 3542 4101 test "x$ac_cv_prog_cc_c89" != "xno" && break 3543 4102 done 3544 4103 rm -f conftest.$ac_ext 3545 4104 CC=$ac_save_CC 3546 - 3547 4105 fi 3548 - # AC_CACHE_VAL 3549 - case "x$ac_cv_prog_cc_c89" in 3550 - x) 3551 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3552 - $as_echo "none needed" >&6; } ;; 3553 - xno) 3554 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3555 - $as_echo "unsupported" >&6; } ;; 3556 - *) 3557 - CC="$CC $ac_cv_prog_cc_c89" 3558 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3559 - $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3560 - esac 3561 - if test "x$ac_cv_prog_cc_c89" != xno; then : 3562 4106 4107 + if test "x$ac_cv_prog_cc_c89" = xno 4108 + then : 4109 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4110 + printf "%s\n" "unsupported" >&6; } 4111 + else $as_nop 4112 + if test "x$ac_cv_prog_cc_c89" = x 4113 + then : 4114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4115 + printf "%s\n" "none needed" >&6; } 4116 + else $as_nop 4117 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4118 + printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4119 + CC="$CC $ac_cv_prog_cc_c89" 4120 + fi 4121 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4122 + ac_prog_cc_stdc=c89 4123 + fi 3563 4124 fi 3564 4125 3565 4126 ac_ext=c ··· 3570 4131 3571 4132 depcc="$CC" am_compiler_list= 3572 4133 3573 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3574 - $as_echo_n "checking dependency style of $depcc... " >&6; } 3575 - if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3576 - $as_echo_n "(cached) " >&6 3577 - else 4134 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4135 + printf %s "checking dependency style of $depcc... " >&6; } 4136 + if test ${am_cv_CC_dependencies_compiler_type+y} 4137 + then : 4138 + printf %s "(cached) " >&6 4139 + else $as_nop 3578 4140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3579 4141 # We make a subdir and do the tests there. Otherwise we can end up 3580 4142 # making bogus files that we don't know about and never remove. For ··· 3681 4243 fi 3682 4244 3683 4245 fi 3684 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3685 - $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4246 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4247 + printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 3686 4248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3687 4249 3688 4250 if ··· 3696 4258 fi 3697 4259 3698 4260 3699 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3700 - $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3701 - if ${ac_cv_prog_cc_c99+:} false; then : 3702 - $as_echo_n "(cached) " >&6 3703 - else 3704 - ac_cv_prog_cc_c99=no 3705 - ac_save_CC=$CC 3706 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707 - /* end confdefs.h. */ 3708 - #include <stdarg.h> 3709 - #include <stdbool.h> 3710 - #include <stdlib.h> 3711 - #include <wchar.h> 3712 - #include <stdio.h> 3713 4261 3714 - // Check varargs macros. These examples are taken from C99 6.10.3.5. 3715 - #define debug(...) fprintf (stderr, __VA_ARGS__) 3716 - #define showlist(...) puts (#__VA_ARGS__) 3717 - #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3718 - static void 3719 - test_varargs_macros (void) 3720 - { 3721 - int x = 1234; 3722 - int y = 5678; 3723 - debug ("Flag"); 3724 - debug ("X = %d\n", x); 3725 - showlist (The first, second, and third items.); 3726 - report (x>y, "x is %d but y is %d", x, y); 3727 - } 3728 - 3729 - // Check long long types. 3730 - #define BIG64 18446744073709551615ull 3731 - #define BIG32 4294967295ul 3732 - #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3733 - #if !BIG_OK 3734 - your preprocessor is broken; 3735 - #endif 3736 - #if BIG_OK 3737 - #else 3738 - your preprocessor is broken; 3739 - #endif 3740 - static long long int bignum = -9223372036854775807LL; 3741 - static unsigned long long int ubignum = BIG64; 3742 - 3743 - struct incomplete_array 3744 - { 3745 - int datasize; 3746 - double data[]; 3747 - }; 3748 - 3749 - struct named_init { 3750 - int number; 3751 - const wchar_t *name; 3752 - double average; 3753 - }; 3754 - 3755 - typedef const char *ccp; 4262 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4263 + printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4264 + if test ${ac_cv_c_undeclared_builtin_options+y} 4265 + then : 4266 + printf %s "(cached) " >&6 4267 + else $as_nop 4268 + ac_save_CFLAGS=$CFLAGS 4269 + ac_cv_c_undeclared_builtin_options='cannot detect' 4270 + for ac_arg in '' -fno-builtin; do 4271 + CFLAGS="$ac_save_CFLAGS $ac_arg" 4272 + # This test program should *not* compile successfully. 4273 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274 + /* end confdefs.h. */ 3756 4275 3757 - static inline int 3758 - test_restrict (ccp restrict text) 4276 + int 4277 + main (void) 3759 4278 { 3760 - // See if C++-style comments work. 3761 - // Iterate through items via the restricted pointer. 3762 - // Also check for declarations in for loops. 3763 - for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3764 - continue; 4279 + (void) strchr; 4280 + ; 3765 4281 return 0; 3766 4282 } 4283 + _ACEOF 4284 + if ac_fn_c_try_compile "$LINENO" 4285 + then : 3767 4286 3768 - // Check varargs and va_copy. 3769 - static void 3770 - test_varargs (const char *format, ...) 3771 - { 3772 - va_list args; 3773 - va_start (args, format); 3774 - va_list args_copy; 3775 - va_copy (args_copy, args); 3776 - 3777 - const char *str; 3778 - int number; 3779 - float fnumber; 3780 - 3781 - while (*format) 3782 - { 3783 - switch (*format++) 3784 - { 3785 - case 's': // string 3786 - str = va_arg (args_copy, const char *); 3787 - break; 3788 - case 'd': // int 3789 - number = va_arg (args_copy, int); 3790 - break; 3791 - case 'f': // float 3792 - fnumber = va_arg (args_copy, double); 3793 - break; 3794 - default: 3795 - break; 3796 - } 3797 - } 3798 - va_end (args_copy); 3799 - va_end (args); 3800 - } 4287 + else $as_nop 4288 + # This test program should compile successfully. 4289 + # No library function is consistently available on 4290 + # freestanding implementations, so test against a dummy 4291 + # declaration. Include always-available headers on the 4292 + # off chance that they somehow elicit warnings. 4293 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294 + /* end confdefs.h. */ 4295 + #include <float.h> 4296 + #include <limits.h> 4297 + #include <stdarg.h> 4298 + #include <stddef.h> 4299 + extern void ac_decl (int, char *); 3801 4300 3802 4301 int 3803 - main () 4302 + main (void) 3804 4303 { 3805 - 3806 - // Check bool. 3807 - _Bool success = false; 3808 - 3809 - // Check restrict. 3810 - if (test_restrict ("String literal") == 0) 3811 - success = true; 3812 - char *restrict newvar = "Another string"; 3813 - 3814 - // Check varargs. 3815 - test_varargs ("s, d' f .", "string", 65, 34.234); 3816 - test_varargs_macros (); 3817 - 3818 - // Check flexible array members. 3819 - struct incomplete_array *ia = 3820 - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3821 - ia->datasize = 10; 3822 - for (int i = 0; i < ia->datasize; ++i) 3823 - ia->data[i] = i * 1.234; 3824 - 3825 - // Check named initializers. 3826 - struct named_init ni = { 3827 - .number = 34, 3828 - .name = L"Test wide string", 3829 - .average = 543.34343, 3830 - }; 3831 - 3832 - ni.number = 58; 3833 - 3834 - int dynamic_array[ni.number]; 3835 - dynamic_array[ni.number - 1] = 543; 3836 - 3837 - // work around unused variable warnings 3838 - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3839 - || dynamic_array[ni.number - 1] != 543); 4304 + (void) ac_decl (0, (char *) 0); 4305 + (void) ac_decl; 3840 4306 3841 4307 ; 3842 4308 return 0; 3843 4309 } 3844 4310 _ACEOF 3845 - for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3846 - do 3847 - CC="$ac_save_CC $ac_arg" 3848 - if ac_fn_c_try_compile "$LINENO"; then : 3849 - ac_cv_prog_cc_c99=$ac_arg 3850 - fi 3851 - rm -f core conftest.err conftest.$ac_objext 3852 - test "x$ac_cv_prog_cc_c99" != "xno" && break 3853 - done 3854 - rm -f conftest.$ac_ext 3855 - CC=$ac_save_CC 3856 - 3857 - fi 3858 - # AC_CACHE_VAL 3859 - case "x$ac_cv_prog_cc_c99" in 3860 - x) 3861 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3862 - $as_echo "none needed" >&6; } ;; 3863 - xno) 3864 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3865 - $as_echo "unsupported" >&6; } ;; 3866 - *) 3867 - CC="$CC $ac_cv_prog_cc_c99" 3868 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3869 - $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3870 - esac 3871 - if test "x$ac_cv_prog_cc_c99" != xno; then : 3872 - 4311 + if ac_fn_c_try_compile "$LINENO" 4312 + then : 4313 + if test x"$ac_arg" = x 4314 + then : 4315 + ac_cv_c_undeclared_builtin_options='none needed' 4316 + else $as_nop 4317 + ac_cv_c_undeclared_builtin_options=$ac_arg 3873 4318 fi 3874 - 3875 - 3876 - 3877 - ac_ext=c 3878 - ac_cpp='$CPP $CPPFLAGS' 3879 - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880 - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881 - ac_compiler_gnu=$ac_cv_c_compiler_gnu 3882 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3883 - $as_echo_n "checking how to run the C preprocessor... " >&6; } 3884 - # On Suns, sometimes $CPP names a directory. 3885 - if test -n "$CPP" && test -d "$CPP"; then 3886 - CPP= 4319 + break 3887 4320 fi 3888 - if test -z "$CPP"; then 3889 - if ${ac_cv_prog_CPP+:} false; then : 3890 - $as_echo_n "(cached) " >&6 3891 - else 3892 - # Double quotes because CPP needs to be expanded 3893 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3894 - do 3895 - ac_preproc_ok=false 3896 - for ac_c_preproc_warn_flag in '' yes 3897 - do 3898 - # Use a header file that comes with gcc, so configuring glibc 3899 - # with a fresh cross-compiler works. 3900 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3901 - # <limits.h> exists even on freestanding compilers. 3902 - # On the NeXT, cc -E runs the code through the compiler's parser, 3903 - # not just through cpp. "Syntax error" is here to catch this case. 3904 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905 - /* end confdefs.h. */ 3906 - #ifdef __STDC__ 3907 - # include <limits.h> 3908 - #else 3909 - # include <assert.h> 3910 - #endif 3911 - Syntax error 3912 - _ACEOF 3913 - if ac_fn_c_try_cpp "$LINENO"; then : 3914 - 3915 - else 3916 - # Broken: fails on valid input. 3917 - continue 4321 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3918 4322 fi 3919 - rm -f conftest.err conftest.i conftest.$ac_ext 3920 - 3921 - # OK, works on sane cases. Now check whether nonexistent headers 3922 - # can be detected and how. 3923 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924 - /* end confdefs.h. */ 3925 - #include <ac_nonexistent.h> 3926 - _ACEOF 3927 - if ac_fn_c_try_cpp "$LINENO"; then : 3928 - # Broken: success on invalid input. 3929 - continue 3930 - else 3931 - # Passes both tests. 3932 - ac_preproc_ok=: 3933 - break 3934 - fi 3935 - rm -f conftest.err conftest.i conftest.$ac_ext 3936 - 3937 - done 3938 - # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3939 - rm -f conftest.i conftest.err conftest.$ac_ext 3940 - if $ac_preproc_ok; then : 3941 - break 3942 - fi 3943 - 4323 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3944 4324 done 3945 - ac_cv_prog_CPP=$CPP 4325 + CFLAGS=$ac_save_CFLAGS 3946 4326 3947 4327 fi 3948 - CPP=$ac_cv_prog_CPP 3949 - else 3950 - ac_cv_prog_CPP=$CPP 3951 - fi 3952 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3953 - $as_echo "$CPP" >&6; } 3954 - ac_preproc_ok=false 3955 - for ac_c_preproc_warn_flag in '' yes 3956 - do 3957 - # Use a header file that comes with gcc, so configuring glibc 3958 - # with a fresh cross-compiler works. 3959 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3960 - # <limits.h> exists even on freestanding compilers. 3961 - # On the NeXT, cc -E runs the code through the compiler's parser, 3962 - # not just through cpp. "Syntax error" is here to catch this case. 3963 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964 - /* end confdefs.h. */ 3965 - #ifdef __STDC__ 3966 - # include <limits.h> 3967 - #else 3968 - # include <assert.h> 3969 - #endif 3970 - Syntax error 3971 - _ACEOF 3972 - if ac_fn_c_try_cpp "$LINENO"; then : 3973 - 3974 - else 3975 - # Broken: fails on valid input. 3976 - continue 3977 - fi 3978 - rm -f conftest.err conftest.i conftest.$ac_ext 3979 - 3980 - # OK, works on sane cases. Now check whether nonexistent headers 3981 - # can be detected and how. 3982 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983 - /* end confdefs.h. */ 3984 - #include <ac_nonexistent.h> 3985 - _ACEOF 3986 - if ac_fn_c_try_cpp "$LINENO"; then : 3987 - # Broken: success on invalid input. 3988 - continue 3989 - else 3990 - # Passes both tests. 3991 - ac_preproc_ok=: 3992 - break 3993 - fi 3994 - rm -f conftest.err conftest.i conftest.$ac_ext 3995 - 3996 - done 3997 - # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3998 - rm -f conftest.i conftest.err conftest.$ac_ext 3999 - if $ac_preproc_ok; then : 4000 - 4001 - else 4002 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4003 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4004 - as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4005 - See \`config.log' for more details" "$LINENO" 5; } 4006 - fi 4007 - 4008 - ac_ext=c 4009 - ac_cpp='$CPP $CPPFLAGS' 4010 - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4011 - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4012 - ac_compiler_gnu=$ac_cv_c_compiler_gnu 4013 - 4014 - 4015 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4016 - $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4017 - if ${ac_cv_path_GREP+:} false; then : 4018 - $as_echo_n "(cached) " >&6 4019 - else 4020 - if test -z "$GREP"; then 4021 - ac_path_GREP_found=false 4022 - # Loop through the user's path and test for each of PROGNAME-LIST 4023 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024 - for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4025 - do 4026 - IFS=$as_save_IFS 4027 - test -z "$as_dir" && as_dir=. 4028 - for ac_prog in grep ggrep; do 4029 - for ac_exec_ext in '' $ac_executable_extensions; do 4030 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4031 - as_fn_executable_p "$ac_path_GREP" || continue 4032 - # Check for GNU ac_path_GREP and select it if it is found. 4033 - # Check for GNU $ac_path_GREP 4034 - case `"$ac_path_GREP" --version 2>&1` in 4035 - *GNU*) 4036 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4037 - *) 4038 - ac_count=0 4039 - $as_echo_n 0123456789 >"conftest.in" 4040 - while : 4041 - do 4042 - cat "conftest.in" "conftest.in" >"conftest.tmp" 4043 - mv "conftest.tmp" "conftest.in" 4044 - cp "conftest.in" "conftest.nl" 4045 - $as_echo 'GREP' >> "conftest.nl" 4046 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4047 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4048 - as_fn_arith $ac_count + 1 && ac_count=$as_val 4049 - if test $ac_count -gt ${ac_path_GREP_max-0}; then 4050 - # Best one so far, save it but keep looking for a better one 4051 - ac_cv_path_GREP="$ac_path_GREP" 4052 - ac_path_GREP_max=$ac_count 4053 - fi 4054 - # 10*(2^10) chars as input seems more than enough 4055 - test $ac_count -gt 10 && break 4056 - done 4057 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4328 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4329 + printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4330 + case $ac_cv_c_undeclared_builtin_options in #( 4331 + 'cannot detect') : 4332 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4333 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4334 + as_fn_error $? "cannot make $CC report undeclared builtins 4335 + See \`config.log' for more details" "$LINENO" 5; } ;; #( 4336 + 'none needed') : 4337 + ac_c_undeclared_builtin_options='' ;; #( 4338 + *) : 4339 + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4058 4340 esac 4059 4341 4060 - $ac_path_GREP_found && break 3 4061 - done 4062 - done 4063 - done 4064 - IFS=$as_save_IFS 4065 - if test -z "$ac_cv_path_GREP"; then 4066 - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4067 - fi 4068 - else 4069 - ac_cv_path_GREP=$GREP 4070 - fi 4071 - 4072 - fi 4073 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4074 - $as_echo "$ac_cv_path_GREP" >&6; } 4075 - GREP="$ac_cv_path_GREP" 4076 - 4077 - 4078 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4079 - $as_echo_n "checking for egrep... " >&6; } 4080 - if ${ac_cv_path_EGREP+:} false; then : 4081 - $as_echo_n "(cached) " >&6 4082 - else 4083 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4084 - then ac_cv_path_EGREP="$GREP -E" 4085 - else 4086 - if test -z "$EGREP"; then 4087 - ac_path_EGREP_found=false 4088 - # Loop through the user's path and test for each of PROGNAME-LIST 4089 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090 - for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4342 + ac_header= ac_cache= 4343 + for ac_item in $ac_header_c_list 4091 4344 do 4092 - IFS=$as_save_IFS 4093 - test -z "$as_dir" && as_dir=. 4094 - for ac_prog in egrep; do 4095 - for ac_exec_ext in '' $ac_executable_extensions; do 4096 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4097 - as_fn_executable_p "$ac_path_EGREP" || continue 4098 - # Check for GNU ac_path_EGREP and select it if it is found. 4099 - # Check for GNU $ac_path_EGREP 4100 - case `"$ac_path_EGREP" --version 2>&1` in 4101 - *GNU*) 4102 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4103 - *) 4104 - ac_count=0 4105 - $as_echo_n 0123456789 >"conftest.in" 4106 - while : 4107 - do 4108 - cat "conftest.in" "conftest.in" >"conftest.tmp" 4109 - mv "conftest.tmp" "conftest.in" 4110 - cp "conftest.in" "conftest.nl" 4111 - $as_echo 'EGREP' >> "conftest.nl" 4112 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4113 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4114 - as_fn_arith $ac_count + 1 && ac_count=$as_val 4115 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4116 - # Best one so far, save it but keep looking for a better one 4117 - ac_cv_path_EGREP="$ac_path_EGREP" 4118 - ac_path_EGREP_max=$ac_count 4345 + if test $ac_cache; then 4346 + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4347 + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4348 + printf "%s\n" "#define $ac_item 1" >> confdefs.h 4119 4349 fi 4120 - # 10*(2^10) chars as input seems more than enough 4121 - test $ac_count -gt 10 && break 4122 - done 4123 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4124 - esac 4125 - 4126 - $ac_path_EGREP_found && break 3 4127 - done 4128 - done 4129 - done 4130 - IFS=$as_save_IFS 4131 - if test -z "$ac_cv_path_EGREP"; then 4132 - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4350 + ac_header= ac_cache= 4351 + elif test $ac_header; then 4352 + ac_cache=$ac_item 4353 + else 4354 + ac_header=$ac_item 4133 4355 fi 4134 - else 4135 - ac_cv_path_EGREP=$EGREP 4136 - fi 4356 + done 4137 4357 4138 - fi 4139 - fi 4140 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4141 - $as_echo "$ac_cv_path_EGREP" >&6; } 4142 - EGREP="$ac_cv_path_EGREP" 4143 4358 4144 4359 4145 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4146 - $as_echo_n "checking for ANSI C header files... " >&6; } 4147 - if ${ac_cv_header_stdc+:} false; then : 4148 - $as_echo_n "(cached) " >&6 4149 - else 4150 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151 - /* end confdefs.h. */ 4152 - #include <stdlib.h> 4153 - #include <stdarg.h> 4154 - #include <string.h> 4155 - #include <float.h> 4156 4360 4157 - int 4158 - main () 4159 - { 4160 4361 4161 - ; 4162 - return 0; 4163 - } 4164 - _ACEOF 4165 - if ac_fn_c_try_compile "$LINENO"; then : 4166 - ac_cv_header_stdc=yes 4167 - else 4168 - ac_cv_header_stdc=no 4169 - fi 4170 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171 4362 4172 - if test $ac_cv_header_stdc = yes; then 4173 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4174 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175 - /* end confdefs.h. */ 4176 - #include <string.h> 4177 4363 4178 - _ACEOF 4179 - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4180 - $EGREP "memchr" >/dev/null 2>&1; then : 4181 4364 4182 - else 4183 - ac_cv_header_stdc=no 4184 - fi 4185 - rm -f conftest* 4365 + if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4366 + then : 4186 4367 4187 - fi 4368 + printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4188 4369 4189 - if test $ac_cv_header_stdc = yes; then 4190 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4191 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192 - /* end confdefs.h. */ 4193 - #include <stdlib.h> 4194 - 4195 - _ACEOF 4196 - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4197 - $EGREP "free" >/dev/null 2>&1; then : 4198 - 4199 - else 4200 - ac_cv_header_stdc=no 4201 4370 fi 4202 - rm -f conftest* 4203 4371 4204 - fi 4205 - 4206 - if test $ac_cv_header_stdc = yes; then 4207 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4208 - if test "$cross_compiling" = yes; then : 4209 - : 4210 - else 4211 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212 - /* end confdefs.h. */ 4213 - #include <ctype.h> 4214 - #include <stdlib.h> 4215 - #if ((' ' & 0x0FF) == 0x020) 4216 - # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4217 - # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4218 - #else 4219 - # define ISLOWER(c) \ 4220 - (('a' <= (c) && (c) <= 'i') \ 4221 - || ('j' <= (c) && (c) <= 'r') \ 4222 - || ('s' <= (c) && (c) <= 'z')) 4223 - # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4224 - #endif 4225 - 4226 - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4227 - int 4228 - main () 4229 - { 4230 - int i; 4231 - for (i = 0; i < 256; i++) 4232 - if (XOR (islower (i), ISLOWER (i)) 4233 - || toupper (i) != TOUPPER (i)) 4234 - return 2; 4235 - return 0; 4236 - } 4237 - _ACEOF 4238 - if ac_fn_c_try_run "$LINENO"; then : 4239 - 4240 - else 4241 - ac_cv_header_stdc=no 4242 - fi 4243 - rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4244 - conftest.$ac_objext conftest.beam conftest.$ac_ext 4245 - fi 4246 - 4247 - fi 4248 - fi 4249 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4250 - $as_echo "$ac_cv_header_stdc" >&6; } 4251 - if test $ac_cv_header_stdc = yes; then 4252 - 4253 - $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4254 - 4255 - fi 4256 - 4257 - # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4258 - for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4259 - inttypes.h stdint.h unistd.h 4260 - do : 4261 - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4262 - ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4263 - " 4264 - if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4265 - cat >>confdefs.h <<_ACEOF 4266 - #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4267 - _ACEOF 4268 - 4269 - fi 4270 - 4271 - done 4272 4372 4273 4373 4274 4374 4275 - 4276 - 4277 - 4278 - ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4279 - if test "x$ac_cv_have_decl___clang__" = xyes; then : 4375 + ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4376 + if test "x$ac_cv_have_decl___clang__" = xyes 4377 + then : 4280 4378 CLANGCC="yes" 4281 - else 4379 + else $as_nop 4282 4380 CLANGCC="no" 4283 4381 fi 4284 - 4285 - ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4286 - if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4382 + ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4383 + if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4384 + then : 4287 4385 INTELCC="yes" 4288 - else 4386 + else $as_nop 4289 4387 INTELCC="no" 4290 4388 fi 4291 - 4292 - ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4293 - if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4389 + ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4390 + if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4391 + then : 4294 4392 SUNCC="yes" 4295 - else 4393 + else $as_nop 4296 4394 SUNCC="no" 4297 4395 fi 4298 4396 ··· 4303 4401 4304 4402 4305 4403 4306 - 4307 4404 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4308 4405 if test -n "$ac_tool_prefix"; then 4309 4406 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4310 4407 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4311 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312 - $as_echo_n "checking for $ac_word... " >&6; } 4313 - if ${ac_cv_path_PKG_CONFIG+:} false; then : 4314 - $as_echo_n "(cached) " >&6 4315 - else 4408 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4409 + printf %s "checking for $ac_word... " >&6; } 4410 + if test ${ac_cv_path_PKG_CONFIG+y} 4411 + then : 4412 + printf %s "(cached) " >&6 4413 + else $as_nop 4316 4414 case $PKG_CONFIG in 4317 4415 [\\/]* | ?:[\\/]*) 4318 4416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ··· 4322 4420 for as_dir in $PATH 4323 4421 do 4324 4422 IFS=$as_save_IFS 4325 - test -z "$as_dir" && as_dir=. 4423 + case $as_dir in #((( 4424 + '') as_dir=./ ;; 4425 + */) ;; 4426 + *) as_dir=$as_dir/ ;; 4427 + esac 4326 4428 for ac_exec_ext in '' $ac_executable_extensions; do 4327 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4328 - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4329 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4430 + ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4431 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4330 4432 break 2 4331 4433 fi 4332 4434 done ··· 4338 4440 fi 4339 4441 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4340 4442 if test -n "$PKG_CONFIG"; then 4341 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4342 - $as_echo "$PKG_CONFIG" >&6; } 4443 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4444 + printf "%s\n" "$PKG_CONFIG" >&6; } 4343 4445 else 4344 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4345 - $as_echo "no" >&6; } 4446 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447 + printf "%s\n" "no" >&6; } 4346 4448 fi 4347 4449 4348 4450 ··· 4351 4453 ac_pt_PKG_CONFIG=$PKG_CONFIG 4352 4454 # Extract the first word of "pkg-config", so it can be a program name with args. 4353 4455 set dummy pkg-config; ac_word=$2 4354 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355 - $as_echo_n "checking for $ac_word... " >&6; } 4356 - if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4357 - $as_echo_n "(cached) " >&6 4358 - else 4456 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4457 + printf %s "checking for $ac_word... " >&6; } 4458 + if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4459 + then : 4460 + printf %s "(cached) " >&6 4461 + else $as_nop 4359 4462 case $ac_pt_PKG_CONFIG in 4360 4463 [\\/]* | ?:[\\/]*) 4361 4464 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ··· 4365 4468 for as_dir in $PATH 4366 4469 do 4367 4470 IFS=$as_save_IFS 4368 - test -z "$as_dir" && as_dir=. 4471 + case $as_dir in #((( 4472 + '') as_dir=./ ;; 4473 + */) ;; 4474 + *) as_dir=$as_dir/ ;; 4475 + esac 4369 4476 for ac_exec_ext in '' $ac_executable_extensions; do 4370 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4371 - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4372 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4478 + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4479 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4373 4480 break 2 4374 4481 fi 4375 4482 done ··· 4381 4488 fi 4382 4489 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4383 4490 if test -n "$ac_pt_PKG_CONFIG"; then 4384 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4385 - $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4491 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4492 + printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4386 4493 else 4387 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388 - $as_echo "no" >&6; } 4494 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4495 + printf "%s\n" "no" >&6; } 4389 4496 fi 4390 4497 4391 4498 if test "x$ac_pt_PKG_CONFIG" = x; then ··· 4393 4500 else 4394 4501 case $cross_compiling:$ac_tool_warned in 4395 4502 yes:) 4396 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4397 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4503 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4504 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4398 4505 ac_tool_warned=yes ;; 4399 4506 esac 4400 4507 PKG_CONFIG=$ac_pt_PKG_CONFIG ··· 4406 4513 fi 4407 4514 if test -n "$PKG_CONFIG"; then 4408 4515 _pkg_min_version=0.9.0 4409 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4410 - $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4516 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4517 + printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4411 4518 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4412 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4413 - $as_echo "yes" >&6; } 4519 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4520 + printf "%s\n" "yes" >&6; } 4414 4521 else 4415 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416 - $as_echo "no" >&6; } 4522 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523 + printf "%s\n" "no" >&6; } 4417 4524 PKG_CONFIG="" 4418 4525 fi 4419 4526 fi 4420 - # Make sure we can run config.sub. 4421 - $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4422 - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4527 + 4528 + 4529 + # Make sure we can run config.sub. 4530 + $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4531 + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4423 4532 4424 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4425 - $as_echo_n "checking build system type... " >&6; } 4426 - if ${ac_cv_build+:} false; then : 4427 - $as_echo_n "(cached) " >&6 4428 - else 4533 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4534 + printf %s "checking build system type... " >&6; } 4535 + if test ${ac_cv_build+y} 4536 + then : 4537 + printf %s "(cached) " >&6 4538 + else $as_nop 4429 4539 ac_build_alias=$build_alias 4430 4540 test "x$ac_build_alias" = x && 4431 - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4541 + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4432 4542 test "x$ac_build_alias" = x && 4433 4543 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4434 - ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4435 - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4544 + ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4545 + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4436 4546 4437 4547 fi 4438 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4439 - $as_echo "$ac_cv_build" >&6; } 4548 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4549 + printf "%s\n" "$ac_cv_build" >&6; } 4440 4550 case $ac_cv_build in 4441 4551 *-*-*) ;; 4442 4552 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; ··· 4455 4565 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4456 4566 4457 4567 4458 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4459 - $as_echo_n "checking host system type... " >&6; } 4460 - if ${ac_cv_host+:} false; then : 4461 - $as_echo_n "(cached) " >&6 4462 - else 4568 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4569 + printf %s "checking host system type... " >&6; } 4570 + if test ${ac_cv_host+y} 4571 + then : 4572 + printf %s "(cached) " >&6 4573 + else $as_nop 4463 4574 if test "x$host_alias" = x; then 4464 4575 ac_cv_host=$ac_cv_build 4465 4576 else 4466 - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4467 - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4577 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4578 + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4468 4579 fi 4469 4580 4470 4581 fi 4471 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4472 - $as_echo "$ac_cv_host" >&6; } 4582 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4583 + printf "%s\n" "$ac_cv_host" >&6; } 4473 4584 case $ac_cv_host in 4474 4585 *-*-*) ;; 4475 4586 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; ··· 4488 4599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4489 4600 4490 4601 4491 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4492 - $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4493 - if ${ac_cv_path_SED+:} false; then : 4494 - $as_echo_n "(cached) " >&6 4495 - else 4602 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4603 + printf %s "checking for a sed that does not truncate output... " >&6; } 4604 + if test ${ac_cv_path_SED+y} 4605 + then : 4606 + printf %s "(cached) " >&6 4607 + else $as_nop 4496 4608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4497 4609 for ac_i in 1 2 3 4 5 6 7; do 4498 4610 ac_script="$ac_script$as_nl$ac_script" ··· 4506 4618 for as_dir in $PATH 4507 4619 do 4508 4620 IFS=$as_save_IFS 4509 - test -z "$as_dir" && as_dir=. 4510 - for ac_prog in sed gsed; do 4621 + case $as_dir in #((( 4622 + '') as_dir=./ ;; 4623 + */) ;; 4624 + *) as_dir=$as_dir/ ;; 4625 + esac 4626 + for ac_prog in sed gsed 4627 + do 4511 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4512 - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4629 + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4513 4630 as_fn_executable_p "$ac_path_SED" || continue 4514 4631 # Check for GNU ac_path_SED and select it if it is found. 4515 4632 # Check for GNU $ac_path_SED ··· 4518 4635 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4519 4636 *) 4520 4637 ac_count=0 4521 - $as_echo_n 0123456789 >"conftest.in" 4638 + printf %s 0123456789 >"conftest.in" 4522 4639 while : 4523 4640 do 4524 4641 cat "conftest.in" "conftest.in" >"conftest.tmp" 4525 4642 mv "conftest.tmp" "conftest.in" 4526 4643 cp "conftest.in" "conftest.nl" 4527 - $as_echo '' >> "conftest.nl" 4644 + printf "%s\n" '' >> "conftest.nl" 4528 4645 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4529 4646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4530 4647 as_fn_arith $ac_count + 1 && ac_count=$as_val ··· 4552 4669 fi 4553 4670 4554 4671 fi 4555 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4556 - $as_echo "$ac_cv_path_SED" >&6; } 4672 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4673 + printf "%s\n" "$ac_cv_path_SED" >&6; } 4557 4674 SED="$ac_cv_path_SED" 4558 4675 rm -f conftest.sed 4559 4676 ··· 4563 4680 4564 4681 4565 4682 # Check whether --enable-selective-werror was given. 4566 - if test "${enable_selective_werror+set}" = set; then : 4683 + if test ${enable_selective_werror+y} 4684 + then : 4567 4685 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4568 - else 4686 + else $as_nop 4569 4687 SELECTIVE_WERROR=yes 4570 4688 fi 4571 4689 ··· 4598 4716 4599 4717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4600 4718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4601 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4602 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4603 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4604 - $as_echo_n "(cached) " >&6 4605 - else 4719 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4720 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4721 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4722 + then : 4723 + printf %s "(cached) " >&6 4724 + else $as_nop 4606 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4607 4726 /* end confdefs.h. */ 4608 4727 int i; 4609 4728 _ACEOF 4610 - if ac_fn_c_try_compile "$LINENO"; then : 4729 + if ac_fn_c_try_compile "$LINENO" 4730 + then : 4611 4731 xorg_cv_cc_flag_unknown_warning_option=yes 4612 - else 4732 + else $as_nop 4613 4733 xorg_cv_cc_flag_unknown_warning_option=no 4614 4734 fi 4615 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4616 4736 fi 4617 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4618 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4737 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4738 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4619 4739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4620 4740 CFLAGS="$xorg_testset_save_CFLAGS" 4621 4741 fi ··· 4625 4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4626 4746 fi 4627 4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4628 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4629 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4630 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4631 - $as_echo_n "(cached) " >&6 4632 - else 4748 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4749 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4750 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4751 + then : 4752 + printf %s "(cached) " >&6 4753 + else $as_nop 4633 4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4634 4755 /* end confdefs.h. */ 4635 4756 int i; 4636 4757 _ACEOF 4637 - if ac_fn_c_try_compile "$LINENO"; then : 4758 + if ac_fn_c_try_compile "$LINENO" 4759 + then : 4638 4760 xorg_cv_cc_flag_unused_command_line_argument=yes 4639 - else 4761 + else $as_nop 4640 4762 xorg_cv_cc_flag_unused_command_line_argument=no 4641 4763 fi 4642 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4764 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4643 4765 fi 4644 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4645 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4766 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4767 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4646 4768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4647 4769 CFLAGS="$xorg_testset_save_CFLAGS" 4648 4770 fi ··· 4660 4782 4661 4783 CFLAGS="$CFLAGS -Wall" 4662 4784 4663 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4664 - $as_echo_n "checking if $CC supports -Wall... " >&6; } 4785 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4786 + printf %s "checking if $CC supports -Wall... " >&6; } 4665 4787 cacheid=xorg_cv_cc_flag__Wall 4666 - if eval \${$cacheid+:} false; then : 4667 - $as_echo_n "(cached) " >&6 4668 - else 4788 + if eval test \${$cacheid+y} 4789 + then : 4790 + printf %s "(cached) " >&6 4791 + else $as_nop 4669 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4670 4793 /* end confdefs.h. */ 4671 4794 int i; 4672 4795 int 4673 - main () 4796 + main (void) 4674 4797 { 4675 4798 4676 4799 ; 4677 4800 return 0; 4678 4801 } 4679 4802 _ACEOF 4680 - if ac_fn_c_try_link "$LINENO"; then : 4803 + if ac_fn_c_try_link "$LINENO" 4804 + then : 4681 4805 eval $cacheid=yes 4682 - else 4806 + else $as_nop 4683 4807 eval $cacheid=no 4684 4808 fi 4685 - rm -f core conftest.err conftest.$ac_objext \ 4809 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4686 4810 conftest$ac_exeext conftest.$ac_ext 4687 4811 fi 4688 4812 ··· 4690 4814 CFLAGS="$xorg_testset_save_CFLAGS" 4691 4815 4692 4816 eval supported=\$$cacheid 4693 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4694 - $as_echo "$supported" >&6; } 4817 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4818 + printf "%s\n" "$supported" >&6; } 4695 4819 if test "$supported" = "yes" ; then 4696 4820 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4697 4821 found="yes" ··· 4716 4840 4717 4841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4718 4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4719 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4720 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4721 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4722 - $as_echo_n "(cached) " >&6 4723 - else 4843 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4844 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4845 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4846 + then : 4847 + printf %s "(cached) " >&6 4848 + else $as_nop 4724 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725 4850 /* end confdefs.h. */ 4726 4851 int i; 4727 4852 _ACEOF 4728 - if ac_fn_c_try_compile "$LINENO"; then : 4853 + if ac_fn_c_try_compile "$LINENO" 4854 + then : 4729 4855 xorg_cv_cc_flag_unknown_warning_option=yes 4730 - else 4856 + else $as_nop 4731 4857 xorg_cv_cc_flag_unknown_warning_option=no 4732 4858 fi 4733 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4734 4860 fi 4735 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4736 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4861 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4862 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4737 4863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4738 4864 CFLAGS="$xorg_testset_save_CFLAGS" 4739 4865 fi ··· 4743 4869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4744 4870 fi 4745 4871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4746 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4747 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4748 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4749 - $as_echo_n "(cached) " >&6 4750 - else 4872 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4873 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4874 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4875 + then : 4876 + printf %s "(cached) " >&6 4877 + else $as_nop 4751 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752 4879 /* end confdefs.h. */ 4753 4880 int i; 4754 4881 _ACEOF 4755 - if ac_fn_c_try_compile "$LINENO"; then : 4882 + if ac_fn_c_try_compile "$LINENO" 4883 + then : 4756 4884 xorg_cv_cc_flag_unused_command_line_argument=yes 4757 - else 4885 + else $as_nop 4758 4886 xorg_cv_cc_flag_unused_command_line_argument=no 4759 4887 fi 4760 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4888 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4761 4889 fi 4762 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4763 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4890 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4891 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4764 4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4765 4893 CFLAGS="$xorg_testset_save_CFLAGS" 4766 4894 fi ··· 4778 4906 4779 4907 CFLAGS="$CFLAGS -Wpointer-arith" 4780 4908 4781 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4782 - $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4909 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4910 + printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4783 4911 cacheid=xorg_cv_cc_flag__Wpointer_arith 4784 - if eval \${$cacheid+:} false; then : 4785 - $as_echo_n "(cached) " >&6 4786 - else 4912 + if eval test \${$cacheid+y} 4913 + then : 4914 + printf %s "(cached) " >&6 4915 + else $as_nop 4787 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788 4917 /* end confdefs.h. */ 4789 4918 int i; 4790 4919 int 4791 - main () 4920 + main (void) 4792 4921 { 4793 4922 4794 4923 ; 4795 4924 return 0; 4796 4925 } 4797 4926 _ACEOF 4798 - if ac_fn_c_try_link "$LINENO"; then : 4927 + if ac_fn_c_try_link "$LINENO" 4928 + then : 4799 4929 eval $cacheid=yes 4800 - else 4930 + else $as_nop 4801 4931 eval $cacheid=no 4802 4932 fi 4803 - rm -f core conftest.err conftest.$ac_objext \ 4933 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4804 4934 conftest$ac_exeext conftest.$ac_ext 4805 4935 fi 4806 4936 ··· 4808 4938 CFLAGS="$xorg_testset_save_CFLAGS" 4809 4939 4810 4940 eval supported=\$$cacheid 4811 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4812 - $as_echo "$supported" >&6; } 4941 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4942 + printf "%s\n" "$supported" >&6; } 4813 4943 if test "$supported" = "yes" ; then 4814 4944 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4815 4945 found="yes" ··· 4834 4964 4835 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4836 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4837 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4838 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4839 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4840 - $as_echo_n "(cached) " >&6 4841 - else 4967 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4968 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4969 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4970 + then : 4971 + printf %s "(cached) " >&6 4972 + else $as_nop 4842 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843 4974 /* end confdefs.h. */ 4844 4975 int i; 4845 4976 _ACEOF 4846 - if ac_fn_c_try_compile "$LINENO"; then : 4977 + if ac_fn_c_try_compile "$LINENO" 4978 + then : 4847 4979 xorg_cv_cc_flag_unknown_warning_option=yes 4848 - else 4980 + else $as_nop 4849 4981 xorg_cv_cc_flag_unknown_warning_option=no 4850 4982 fi 4851 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4983 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4852 4984 fi 4853 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4854 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4985 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4986 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4855 4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4856 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4857 4989 fi ··· 4861 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4862 4994 fi 4863 4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4864 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4865 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4866 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4867 - $as_echo_n "(cached) " >&6 4868 - else 4996 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4997 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4998 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4999 + then : 5000 + printf %s "(cached) " >&6 5001 + else $as_nop 4869 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4870 5003 /* end confdefs.h. */ 4871 5004 int i; 4872 5005 _ACEOF 4873 - if ac_fn_c_try_compile "$LINENO"; then : 5006 + if ac_fn_c_try_compile "$LINENO" 5007 + then : 4874 5008 xorg_cv_cc_flag_unused_command_line_argument=yes 4875 - else 5009 + else $as_nop 4876 5010 xorg_cv_cc_flag_unused_command_line_argument=no 4877 5011 fi 4878 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5012 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4879 5013 fi 4880 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4881 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5014 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5015 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4882 5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4883 5017 CFLAGS="$xorg_testset_save_CFLAGS" 4884 5018 fi ··· 4896 5030 4897 5031 CFLAGS="$CFLAGS -Wmissing-declarations" 4898 5032 4899 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4900 - $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5033 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5034 + printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4901 5035 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4902 - if eval \${$cacheid+:} false; then : 4903 - $as_echo_n "(cached) " >&6 4904 - else 5036 + if eval test \${$cacheid+y} 5037 + then : 5038 + printf %s "(cached) " >&6 5039 + else $as_nop 4905 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906 5041 /* end confdefs.h. */ 4907 5042 int i; 4908 5043 int 4909 - main () 5044 + main (void) 4910 5045 { 4911 5046 4912 5047 ; 4913 5048 return 0; 4914 5049 } 4915 5050 _ACEOF 4916 - if ac_fn_c_try_link "$LINENO"; then : 5051 + if ac_fn_c_try_link "$LINENO" 5052 + then : 4917 5053 eval $cacheid=yes 4918 - else 5054 + else $as_nop 4919 5055 eval $cacheid=no 4920 5056 fi 4921 - rm -f core conftest.err conftest.$ac_objext \ 5057 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4922 5058 conftest$ac_exeext conftest.$ac_ext 4923 5059 fi 4924 5060 ··· 4926 5062 CFLAGS="$xorg_testset_save_CFLAGS" 4927 5063 4928 5064 eval supported=\$$cacheid 4929 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4930 - $as_echo "$supported" >&6; } 5065 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5066 + printf "%s\n" "$supported" >&6; } 4931 5067 if test "$supported" = "yes" ; then 4932 5068 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4933 5069 found="yes" ··· 4952 5088 4953 5089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4954 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4955 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4956 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4957 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4958 - $as_echo_n "(cached) " >&6 4959 - else 5091 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5092 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5093 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5094 + then : 5095 + printf %s "(cached) " >&6 5096 + else $as_nop 4960 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961 5098 /* end confdefs.h. */ 4962 5099 int i; 4963 5100 _ACEOF 4964 - if ac_fn_c_try_compile "$LINENO"; then : 5101 + if ac_fn_c_try_compile "$LINENO" 5102 + then : 4965 5103 xorg_cv_cc_flag_unknown_warning_option=yes 4966 - else 5104 + else $as_nop 4967 5105 xorg_cv_cc_flag_unknown_warning_option=no 4968 5106 fi 4969 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4970 5108 fi 4971 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4972 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5109 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5110 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4973 5111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4974 5112 CFLAGS="$xorg_testset_save_CFLAGS" 4975 5113 fi ··· 4979 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4980 5118 fi 4981 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4982 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4983 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4984 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4985 - $as_echo_n "(cached) " >&6 4986 - else 5120 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5121 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5122 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5123 + then : 5124 + printf %s "(cached) " >&6 5125 + else $as_nop 4987 5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988 5127 /* end confdefs.h. */ 4989 5128 int i; 4990 5129 _ACEOF 4991 - if ac_fn_c_try_compile "$LINENO"; then : 5130 + if ac_fn_c_try_compile "$LINENO" 5131 + then : 4992 5132 xorg_cv_cc_flag_unused_command_line_argument=yes 4993 - else 5133 + else $as_nop 4994 5134 xorg_cv_cc_flag_unused_command_line_argument=no 4995 5135 fi 4996 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5136 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4997 5137 fi 4998 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4999 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5138 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5139 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5000 5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5001 5141 CFLAGS="$xorg_testset_save_CFLAGS" 5002 5142 fi ··· 5014 5154 5015 5155 CFLAGS="$CFLAGS -Wformat=2" 5016 5156 5017 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5018 - $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5157 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5158 + printf %s "checking if $CC supports -Wformat=2... " >&6; } 5019 5159 cacheid=xorg_cv_cc_flag__Wformat_2 5020 - if eval \${$cacheid+:} false; then : 5021 - $as_echo_n "(cached) " >&6 5022 - else 5160 + if eval test \${$cacheid+y} 5161 + then : 5162 + printf %s "(cached) " >&6 5163 + else $as_nop 5023 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5024 5165 /* end confdefs.h. */ 5025 5166 int i; 5026 5167 int 5027 - main () 5168 + main (void) 5028 5169 { 5029 5170 5030 5171 ; 5031 5172 return 0; 5032 5173 } 5033 5174 _ACEOF 5034 - if ac_fn_c_try_link "$LINENO"; then : 5175 + if ac_fn_c_try_link "$LINENO" 5176 + then : 5035 5177 eval $cacheid=yes 5036 - else 5178 + else $as_nop 5037 5179 eval $cacheid=no 5038 5180 fi 5039 - rm -f core conftest.err conftest.$ac_objext \ 5181 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5040 5182 conftest$ac_exeext conftest.$ac_ext 5041 5183 fi 5042 5184 ··· 5044 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5045 5187 5046 5188 eval supported=\$$cacheid 5047 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5048 - $as_echo "$supported" >&6; } 5189 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5190 + printf "%s\n" "$supported" >&6; } 5049 5191 if test "$supported" = "yes" ; then 5050 5192 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5051 5193 found="yes" ··· 5063 5205 5064 5206 CFLAGS="$CFLAGS -Wformat" 5065 5207 5066 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5067 - $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5208 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5209 + printf %s "checking if $CC supports -Wformat... " >&6; } 5068 5210 cacheid=xorg_cv_cc_flag__Wformat 5069 - if eval \${$cacheid+:} false; then : 5070 - $as_echo_n "(cached) " >&6 5071 - else 5211 + if eval test \${$cacheid+y} 5212 + then : 5213 + printf %s "(cached) " >&6 5214 + else $as_nop 5072 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073 5216 /* end confdefs.h. */ 5074 5217 int i; 5075 5218 int 5076 - main () 5219 + main (void) 5077 5220 { 5078 5221 5079 5222 ; 5080 5223 return 0; 5081 5224 } 5082 5225 _ACEOF 5083 - if ac_fn_c_try_link "$LINENO"; then : 5226 + if ac_fn_c_try_link "$LINENO" 5227 + then : 5084 5228 eval $cacheid=yes 5085 - else 5229 + else $as_nop 5086 5230 eval $cacheid=no 5087 5231 fi 5088 - rm -f core conftest.err conftest.$ac_objext \ 5232 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5089 5233 conftest$ac_exeext conftest.$ac_ext 5090 5234 fi 5091 5235 ··· 5093 5237 CFLAGS="$xorg_testset_save_CFLAGS" 5094 5238 5095 5239 eval supported=\$$cacheid 5096 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5097 - $as_echo "$supported" >&6; } 5240 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5241 + printf "%s\n" "$supported" >&6; } 5098 5242 if test "$supported" = "yes" ; then 5099 5243 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5100 5244 found="yes" ··· 5121 5265 5122 5266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5123 5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5125 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5126 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5127 - $as_echo_n "(cached) " >&6 5128 - else 5268 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5269 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5270 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5271 + then : 5272 + printf %s "(cached) " >&6 5273 + else $as_nop 5129 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5130 5275 /* end confdefs.h. */ 5131 5276 int i; 5132 5277 _ACEOF 5133 - if ac_fn_c_try_compile "$LINENO"; then : 5278 + if ac_fn_c_try_compile "$LINENO" 5279 + then : 5134 5280 xorg_cv_cc_flag_unknown_warning_option=yes 5135 - else 5281 + else $as_nop 5136 5282 xorg_cv_cc_flag_unknown_warning_option=no 5137 5283 fi 5138 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5284 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5139 5285 fi 5140 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5141 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5286 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5287 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5142 5288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5143 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5144 5290 fi ··· 5148 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 5295 fi 5150 5296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5152 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5153 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5154 - $as_echo_n "(cached) " >&6 5155 - else 5297 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5298 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5299 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5300 + then : 5301 + printf %s "(cached) " >&6 5302 + else $as_nop 5156 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157 5304 /* end confdefs.h. */ 5158 5305 int i; 5159 5306 _ACEOF 5160 - if ac_fn_c_try_compile "$LINENO"; then : 5307 + if ac_fn_c_try_compile "$LINENO" 5308 + then : 5161 5309 xorg_cv_cc_flag_unused_command_line_argument=yes 5162 - else 5310 + else $as_nop 5163 5311 xorg_cv_cc_flag_unused_command_line_argument=no 5164 5312 fi 5165 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5313 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5166 5314 fi 5167 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5168 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5315 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5316 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5169 5317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5170 5318 CFLAGS="$xorg_testset_save_CFLAGS" 5171 5319 fi ··· 5183 5331 5184 5332 CFLAGS="$CFLAGS -Wstrict-prototypes" 5185 5333 5186 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5187 - $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5334 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5335 + printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5188 5336 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5189 - if eval \${$cacheid+:} false; then : 5190 - $as_echo_n "(cached) " >&6 5191 - else 5337 + if eval test \${$cacheid+y} 5338 + then : 5339 + printf %s "(cached) " >&6 5340 + else $as_nop 5192 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193 5342 /* end confdefs.h. */ 5194 5343 int i; 5195 5344 int 5196 - main () 5345 + main (void) 5197 5346 { 5198 5347 5199 5348 ; 5200 5349 return 0; 5201 5350 } 5202 5351 _ACEOF 5203 - if ac_fn_c_try_link "$LINENO"; then : 5352 + if ac_fn_c_try_link "$LINENO" 5353 + then : 5204 5354 eval $cacheid=yes 5205 - else 5355 + else $as_nop 5206 5356 eval $cacheid=no 5207 5357 fi 5208 - rm -f core conftest.err conftest.$ac_objext \ 5358 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5209 5359 conftest$ac_exeext conftest.$ac_ext 5210 5360 fi 5211 5361 ··· 5213 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5214 5364 5215 5365 eval supported=\$$cacheid 5216 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5217 - $as_echo "$supported" >&6; } 5366 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5367 + printf "%s\n" "$supported" >&6; } 5218 5368 if test "$supported" = "yes" ; then 5219 5369 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5220 5370 found="yes" ··· 5239 5389 5240 5390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5241 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5243 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5244 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5245 - $as_echo_n "(cached) " >&6 5246 - else 5392 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5393 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5394 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5395 + then : 5396 + printf %s "(cached) " >&6 5397 + else $as_nop 5247 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248 5399 /* end confdefs.h. */ 5249 5400 int i; 5250 5401 _ACEOF 5251 - if ac_fn_c_try_compile "$LINENO"; then : 5402 + if ac_fn_c_try_compile "$LINENO" 5403 + then : 5252 5404 xorg_cv_cc_flag_unknown_warning_option=yes 5253 - else 5405 + else $as_nop 5254 5406 xorg_cv_cc_flag_unknown_warning_option=no 5255 5407 fi 5256 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5257 5409 fi 5258 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5259 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5410 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5411 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5260 5412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5261 5413 CFLAGS="$xorg_testset_save_CFLAGS" 5262 5414 fi ··· 5266 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 5419 fi 5268 5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5270 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5271 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5272 - $as_echo_n "(cached) " >&6 5273 - else 5421 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5422 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5423 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5424 + then : 5425 + printf %s "(cached) " >&6 5426 + else $as_nop 5274 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275 5428 /* end confdefs.h. */ 5276 5429 int i; 5277 5430 _ACEOF 5278 - if ac_fn_c_try_compile "$LINENO"; then : 5431 + if ac_fn_c_try_compile "$LINENO" 5432 + then : 5279 5433 xorg_cv_cc_flag_unused_command_line_argument=yes 5280 - else 5434 + else $as_nop 5281 5435 xorg_cv_cc_flag_unused_command_line_argument=no 5282 5436 fi 5283 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5437 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5284 5438 fi 5285 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5286 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5439 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5440 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5287 5441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5288 5442 CFLAGS="$xorg_testset_save_CFLAGS" 5289 5443 fi ··· 5301 5455 5302 5456 CFLAGS="$CFLAGS -Wmissing-prototypes" 5303 5457 5304 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5305 - $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5458 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5459 + printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5306 5460 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5307 - if eval \${$cacheid+:} false; then : 5308 - $as_echo_n "(cached) " >&6 5309 - else 5461 + if eval test \${$cacheid+y} 5462 + then : 5463 + printf %s "(cached) " >&6 5464 + else $as_nop 5310 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5311 5466 /* end confdefs.h. */ 5312 5467 int i; 5313 5468 int 5314 - main () 5469 + main (void) 5315 5470 { 5316 5471 5317 5472 ; 5318 5473 return 0; 5319 5474 } 5320 5475 _ACEOF 5321 - if ac_fn_c_try_link "$LINENO"; then : 5476 + if ac_fn_c_try_link "$LINENO" 5477 + then : 5322 5478 eval $cacheid=yes 5323 - else 5479 + else $as_nop 5324 5480 eval $cacheid=no 5325 5481 fi 5326 - rm -f core conftest.err conftest.$ac_objext \ 5482 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5327 5483 conftest$ac_exeext conftest.$ac_ext 5328 5484 fi 5329 5485 ··· 5331 5487 CFLAGS="$xorg_testset_save_CFLAGS" 5332 5488 5333 5489 eval supported=\$$cacheid 5334 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5335 - $as_echo "$supported" >&6; } 5490 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5491 + printf "%s\n" "$supported" >&6; } 5336 5492 if test "$supported" = "yes" ; then 5337 5493 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5338 5494 found="yes" ··· 5357 5513 5358 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5359 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5360 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5361 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5362 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5363 - $as_echo_n "(cached) " >&6 5364 - else 5516 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5517 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5518 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5519 + then : 5520 + printf %s "(cached) " >&6 5521 + else $as_nop 5365 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366 5523 /* end confdefs.h. */ 5367 5524 int i; 5368 5525 _ACEOF 5369 - if ac_fn_c_try_compile "$LINENO"; then : 5526 + if ac_fn_c_try_compile "$LINENO" 5527 + then : 5370 5528 xorg_cv_cc_flag_unknown_warning_option=yes 5371 - else 5529 + else $as_nop 5372 5530 xorg_cv_cc_flag_unknown_warning_option=no 5373 5531 fi 5374 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5532 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5375 5533 fi 5376 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5377 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5534 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5535 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5378 5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5379 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5380 5538 fi ··· 5384 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 5543 fi 5386 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5387 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5388 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5389 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5390 - $as_echo_n "(cached) " >&6 5391 - else 5545 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5546 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5547 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5548 + then : 5549 + printf %s "(cached) " >&6 5550 + else $as_nop 5392 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393 5552 /* end confdefs.h. */ 5394 5553 int i; 5395 5554 _ACEOF 5396 - if ac_fn_c_try_compile "$LINENO"; then : 5555 + if ac_fn_c_try_compile "$LINENO" 5556 + then : 5397 5557 xorg_cv_cc_flag_unused_command_line_argument=yes 5398 - else 5558 + else $as_nop 5399 5559 xorg_cv_cc_flag_unused_command_line_argument=no 5400 5560 fi 5401 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5561 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5402 5562 fi 5403 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5404 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5563 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5564 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5405 5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5406 5566 CFLAGS="$xorg_testset_save_CFLAGS" 5407 5567 fi ··· 5419 5579 5420 5580 CFLAGS="$CFLAGS -Wnested-externs" 5421 5581 5422 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5423 - $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5582 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5583 + printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5424 5584 cacheid=xorg_cv_cc_flag__Wnested_externs 5425 - if eval \${$cacheid+:} false; then : 5426 - $as_echo_n "(cached) " >&6 5427 - else 5585 + if eval test \${$cacheid+y} 5586 + then : 5587 + printf %s "(cached) " >&6 5588 + else $as_nop 5428 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429 5590 /* end confdefs.h. */ 5430 5591 int i; 5431 5592 int 5432 - main () 5593 + main (void) 5433 5594 { 5434 5595 5435 5596 ; 5436 5597 return 0; 5437 5598 } 5438 5599 _ACEOF 5439 - if ac_fn_c_try_link "$LINENO"; then : 5600 + if ac_fn_c_try_link "$LINENO" 5601 + then : 5440 5602 eval $cacheid=yes 5441 - else 5603 + else $as_nop 5442 5604 eval $cacheid=no 5443 5605 fi 5444 - rm -f core conftest.err conftest.$ac_objext \ 5606 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5445 5607 conftest$ac_exeext conftest.$ac_ext 5446 5608 fi 5447 5609 ··· 5449 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5450 5612 5451 5613 eval supported=\$$cacheid 5452 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5453 - $as_echo "$supported" >&6; } 5614 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615 + printf "%s\n" "$supported" >&6; } 5454 5616 if test "$supported" = "yes" ; then 5455 5617 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5456 5618 found="yes" ··· 5475 5637 5476 5638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5477 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5478 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5479 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5480 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5481 - $as_echo_n "(cached) " >&6 5482 - else 5640 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5643 + then : 5644 + printf %s "(cached) " >&6 5645 + else $as_nop 5483 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484 5647 /* end confdefs.h. */ 5485 5648 int i; 5486 5649 _ACEOF 5487 - if ac_fn_c_try_compile "$LINENO"; then : 5650 + if ac_fn_c_try_compile "$LINENO" 5651 + then : 5488 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5489 - else 5653 + else $as_nop 5490 5654 xorg_cv_cc_flag_unknown_warning_option=no 5491 5655 fi 5492 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5656 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5493 5657 fi 5494 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5495 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5658 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5496 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5497 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5498 5662 fi ··· 5502 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5503 5667 fi 5504 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5505 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5506 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5507 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5508 - $as_echo_n "(cached) " >&6 5509 - else 5669 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5672 + then : 5673 + printf %s "(cached) " >&6 5674 + else $as_nop 5510 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511 5676 /* end confdefs.h. */ 5512 5677 int i; 5513 5678 _ACEOF 5514 - if ac_fn_c_try_compile "$LINENO"; then : 5679 + if ac_fn_c_try_compile "$LINENO" 5680 + then : 5515 5681 xorg_cv_cc_flag_unused_command_line_argument=yes 5516 - else 5682 + else $as_nop 5517 5683 xorg_cv_cc_flag_unused_command_line_argument=no 5518 5684 fi 5519 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5685 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5520 5686 fi 5521 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5522 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5687 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5688 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5523 5689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5524 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5525 5691 fi ··· 5537 5703 5538 5704 CFLAGS="$CFLAGS -Wbad-function-cast" 5539 5705 5540 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5541 - $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5706 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5707 + printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5542 5708 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5543 - if eval \${$cacheid+:} false; then : 5544 - $as_echo_n "(cached) " >&6 5545 - else 5709 + if eval test \${$cacheid+y} 5710 + then : 5711 + printf %s "(cached) " >&6 5712 + else $as_nop 5546 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547 5714 /* end confdefs.h. */ 5548 5715 int i; 5549 5716 int 5550 - main () 5717 + main (void) 5551 5718 { 5552 5719 5553 5720 ; 5554 5721 return 0; 5555 5722 } 5556 5723 _ACEOF 5557 - if ac_fn_c_try_link "$LINENO"; then : 5724 + if ac_fn_c_try_link "$LINENO" 5725 + then : 5558 5726 eval $cacheid=yes 5559 - else 5727 + else $as_nop 5560 5728 eval $cacheid=no 5561 5729 fi 5562 - rm -f core conftest.err conftest.$ac_objext \ 5730 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5563 5731 conftest$ac_exeext conftest.$ac_ext 5564 5732 fi 5565 5733 ··· 5567 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5568 5736 5569 5737 eval supported=\$$cacheid 5570 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5571 - $as_echo "$supported" >&6; } 5738 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5739 + printf "%s\n" "$supported" >&6; } 5572 5740 if test "$supported" = "yes" ; then 5573 5741 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5574 5742 found="yes" ··· 5593 5761 5594 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5595 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5596 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5597 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5598 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5599 - $as_echo_n "(cached) " >&6 5600 - else 5764 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5765 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5766 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5767 + then : 5768 + printf %s "(cached) " >&6 5769 + else $as_nop 5601 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602 5771 /* end confdefs.h. */ 5603 5772 int i; 5604 5773 _ACEOF 5605 - if ac_fn_c_try_compile "$LINENO"; then : 5774 + if ac_fn_c_try_compile "$LINENO" 5775 + then : 5606 5776 xorg_cv_cc_flag_unknown_warning_option=yes 5607 - else 5777 + else $as_nop 5608 5778 xorg_cv_cc_flag_unknown_warning_option=no 5609 5779 fi 5610 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5780 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5611 5781 fi 5612 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5613 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5782 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5614 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5615 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5616 5786 fi ··· 5620 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 5791 fi 5622 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5623 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5624 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5625 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5626 - $as_echo_n "(cached) " >&6 5627 - else 5793 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5796 + then : 5797 + printf %s "(cached) " >&6 5798 + else $as_nop 5628 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629 5800 /* end confdefs.h. */ 5630 5801 int i; 5631 5802 _ACEOF 5632 - if ac_fn_c_try_compile "$LINENO"; then : 5803 + if ac_fn_c_try_compile "$LINENO" 5804 + then : 5633 5805 xorg_cv_cc_flag_unused_command_line_argument=yes 5634 - else 5806 + else $as_nop 5635 5807 xorg_cv_cc_flag_unused_command_line_argument=no 5636 5808 fi 5637 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5638 5810 fi 5639 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5640 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5811 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5812 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5641 5813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5642 5814 CFLAGS="$xorg_testset_save_CFLAGS" 5643 5815 fi ··· 5655 5827 5656 5828 CFLAGS="$CFLAGS -Wold-style-definition" 5657 5829 5658 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5659 - $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5830 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5831 + printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5660 5832 cacheid=xorg_cv_cc_flag__Wold_style_definition 5661 - if eval \${$cacheid+:} false; then : 5662 - $as_echo_n "(cached) " >&6 5663 - else 5833 + if eval test \${$cacheid+y} 5834 + then : 5835 + printf %s "(cached) " >&6 5836 + else $as_nop 5664 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665 5838 /* end confdefs.h. */ 5666 5839 int i; 5667 5840 int 5668 - main () 5841 + main (void) 5669 5842 { 5670 5843 5671 5844 ; 5672 5845 return 0; 5673 5846 } 5674 5847 _ACEOF 5675 - if ac_fn_c_try_link "$LINENO"; then : 5848 + if ac_fn_c_try_link "$LINENO" 5849 + then : 5676 5850 eval $cacheid=yes 5677 - else 5851 + else $as_nop 5678 5852 eval $cacheid=no 5679 5853 fi 5680 - rm -f core conftest.err conftest.$ac_objext \ 5854 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5681 5855 conftest$ac_exeext conftest.$ac_ext 5682 5856 fi 5683 5857 ··· 5685 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5686 5860 5687 5861 eval supported=\$$cacheid 5688 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5689 - $as_echo "$supported" >&6; } 5862 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863 + printf "%s\n" "$supported" >&6; } 5690 5864 if test "$supported" = "yes" ; then 5691 5865 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5692 5866 found="yes" ··· 5704 5878 5705 5879 CFLAGS="$CFLAGS -fd" 5706 5880 5707 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5708 - $as_echo_n "checking if $CC supports -fd... " >&6; } 5881 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5882 + printf %s "checking if $CC supports -fd... " >&6; } 5709 5883 cacheid=xorg_cv_cc_flag__fd 5710 - if eval \${$cacheid+:} false; then : 5711 - $as_echo_n "(cached) " >&6 5712 - else 5884 + if eval test \${$cacheid+y} 5885 + then : 5886 + printf %s "(cached) " >&6 5887 + else $as_nop 5713 5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714 5889 /* end confdefs.h. */ 5715 5890 int i; 5716 5891 int 5717 - main () 5892 + main (void) 5718 5893 { 5719 5894 5720 5895 ; 5721 5896 return 0; 5722 5897 } 5723 5898 _ACEOF 5724 - if ac_fn_c_try_link "$LINENO"; then : 5899 + if ac_fn_c_try_link "$LINENO" 5900 + then : 5725 5901 eval $cacheid=yes 5726 - else 5902 + else $as_nop 5727 5903 eval $cacheid=no 5728 5904 fi 5729 - rm -f core conftest.err conftest.$ac_objext \ 5905 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5730 5906 conftest$ac_exeext conftest.$ac_ext 5731 5907 fi 5732 5908 ··· 5734 5910 CFLAGS="$xorg_testset_save_CFLAGS" 5735 5911 5736 5912 eval supported=\$$cacheid 5737 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5738 - $as_echo "$supported" >&6; } 5913 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5914 + printf "%s\n" "$supported" >&6; } 5739 5915 if test "$supported" = "yes" ; then 5740 5916 BASE_CFLAGS="$BASE_CFLAGS -fd" 5741 5917 found="yes" ··· 5760 5936 5761 5937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5762 5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5763 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5764 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5765 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5766 - $as_echo_n "(cached) " >&6 5767 - else 5939 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5940 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5941 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5942 + then : 5943 + printf %s "(cached) " >&6 5944 + else $as_nop 5768 5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769 5946 /* end confdefs.h. */ 5770 5947 int i; 5771 5948 _ACEOF 5772 - if ac_fn_c_try_compile "$LINENO"; then : 5949 + if ac_fn_c_try_compile "$LINENO" 5950 + then : 5773 5951 xorg_cv_cc_flag_unknown_warning_option=yes 5774 - else 5952 + else $as_nop 5775 5953 xorg_cv_cc_flag_unknown_warning_option=no 5776 5954 fi 5777 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5955 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5778 5956 fi 5779 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5780 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5957 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5958 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5781 5959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5782 5960 CFLAGS="$xorg_testset_save_CFLAGS" 5783 5961 fi ··· 5787 5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 5966 fi 5789 5967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5790 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5791 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5792 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5793 - $as_echo_n "(cached) " >&6 5794 - else 5968 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5969 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5970 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5971 + then : 5972 + printf %s "(cached) " >&6 5973 + else $as_nop 5795 5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796 5975 /* end confdefs.h. */ 5797 5976 int i; 5798 5977 _ACEOF 5799 - if ac_fn_c_try_compile "$LINENO"; then : 5978 + if ac_fn_c_try_compile "$LINENO" 5979 + then : 5800 5980 xorg_cv_cc_flag_unused_command_line_argument=yes 5801 - else 5981 + else $as_nop 5802 5982 xorg_cv_cc_flag_unused_command_line_argument=no 5803 5983 fi 5804 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5984 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5805 5985 fi 5806 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5807 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5986 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5987 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5808 5988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5809 5989 CFLAGS="$xorg_testset_save_CFLAGS" 5810 5990 fi ··· 5822 6002 5823 6003 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5824 6004 5825 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5826 - $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6005 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6006 + printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5827 6007 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5828 - if eval \${$cacheid+:} false; then : 5829 - $as_echo_n "(cached) " >&6 5830 - else 6008 + if eval test \${$cacheid+y} 6009 + then : 6010 + printf %s "(cached) " >&6 6011 + else $as_nop 5831 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 6013 /* end confdefs.h. */ 5833 6014 int i; 5834 6015 int 5835 - main () 6016 + main (void) 5836 6017 { 5837 6018 5838 6019 ; 5839 6020 return 0; 5840 6021 } 5841 6022 _ACEOF 5842 - if ac_fn_c_try_link "$LINENO"; then : 6023 + if ac_fn_c_try_link "$LINENO" 6024 + then : 5843 6025 eval $cacheid=yes 5844 - else 6026 + else $as_nop 5845 6027 eval $cacheid=no 5846 6028 fi 5847 - rm -f core conftest.err conftest.$ac_objext \ 6029 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5848 6030 conftest$ac_exeext conftest.$ac_ext 5849 6031 fi 5850 6032 ··· 5852 6034 CFLAGS="$xorg_testset_save_CFLAGS" 5853 6035 5854 6036 eval supported=\$$cacheid 5855 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5856 - $as_echo "$supported" >&6; } 6037 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6038 + printf "%s\n" "$supported" >&6; } 5857 6039 if test "$supported" = "yes" ; then 5858 6040 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5859 6041 found="yes" ··· 5882 6064 5883 6065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5884 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5885 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5886 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5887 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5888 - $as_echo_n "(cached) " >&6 5889 - else 6067 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6068 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6069 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6070 + then : 6071 + printf %s "(cached) " >&6 6072 + else $as_nop 5890 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891 6074 /* end confdefs.h. */ 5892 6075 int i; 5893 6076 _ACEOF 5894 - if ac_fn_c_try_compile "$LINENO"; then : 6077 + if ac_fn_c_try_compile "$LINENO" 6078 + then : 5895 6079 xorg_cv_cc_flag_unknown_warning_option=yes 5896 - else 6080 + else $as_nop 5897 6081 xorg_cv_cc_flag_unknown_warning_option=no 5898 6082 fi 5899 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6083 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5900 6084 fi 5901 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5902 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6085 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6086 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5903 6087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5904 6088 CFLAGS="$xorg_testset_save_CFLAGS" 5905 6089 fi ··· 5909 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5910 6094 fi 5911 6095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5912 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5913 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5914 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5915 - $as_echo_n "(cached) " >&6 5916 - else 6096 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6097 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6098 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6099 + then : 6100 + printf %s "(cached) " >&6 6101 + else $as_nop 5917 6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5918 6103 /* end confdefs.h. */ 5919 6104 int i; 5920 6105 _ACEOF 5921 - if ac_fn_c_try_compile "$LINENO"; then : 6106 + if ac_fn_c_try_compile "$LINENO" 6107 + then : 5922 6108 xorg_cv_cc_flag_unused_command_line_argument=yes 5923 - else 6109 + else $as_nop 5924 6110 xorg_cv_cc_flag_unused_command_line_argument=no 5925 6111 fi 5926 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6112 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5927 6113 fi 5928 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5929 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6115 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5930 6116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5931 6117 CFLAGS="$xorg_testset_save_CFLAGS" 5932 6118 fi ··· 5944 6130 5945 6131 CFLAGS="$CFLAGS -Wunused" 5946 6132 5947 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5948 - $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6133 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6134 + printf %s "checking if $CC supports -Wunused... " >&6; } 5949 6135 cacheid=xorg_cv_cc_flag__Wunused 5950 - if eval \${$cacheid+:} false; then : 5951 - $as_echo_n "(cached) " >&6 5952 - else 6136 + if eval test \${$cacheid+y} 6137 + then : 6138 + printf %s "(cached) " >&6 6139 + else $as_nop 5953 6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5954 6141 /* end confdefs.h. */ 5955 6142 int i; 5956 6143 int 5957 - main () 6144 + main (void) 5958 6145 { 5959 6146 5960 6147 ; 5961 6148 return 0; 5962 6149 } 5963 6150 _ACEOF 5964 - if ac_fn_c_try_link "$LINENO"; then : 6151 + if ac_fn_c_try_link "$LINENO" 6152 + then : 5965 6153 eval $cacheid=yes 5966 - else 6154 + else $as_nop 5967 6155 eval $cacheid=no 5968 6156 fi 5969 - rm -f core conftest.err conftest.$ac_objext \ 6157 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5970 6158 conftest$ac_exeext conftest.$ac_ext 5971 6159 fi 5972 6160 ··· 5974 6162 CFLAGS="$xorg_testset_save_CFLAGS" 5975 6163 5976 6164 eval supported=\$$cacheid 5977 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5978 - $as_echo "$supported" >&6; } 6165 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6166 + printf "%s\n" "$supported" >&6; } 5979 6167 if test "$supported" = "yes" ; then 5980 6168 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5981 6169 found="yes" ··· 6000 6188 6001 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6002 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6004 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6005 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6006 - $as_echo_n "(cached) " >&6 6007 - else 6191 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6192 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6193 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6194 + then : 6195 + printf %s "(cached) " >&6 6196 + else $as_nop 6008 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009 6198 /* end confdefs.h. */ 6010 6199 int i; 6011 6200 _ACEOF 6012 - if ac_fn_c_try_compile "$LINENO"; then : 6201 + if ac_fn_c_try_compile "$LINENO" 6202 + then : 6013 6203 xorg_cv_cc_flag_unknown_warning_option=yes 6014 - else 6204 + else $as_nop 6015 6205 xorg_cv_cc_flag_unknown_warning_option=no 6016 6206 fi 6017 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6018 6208 fi 6019 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6020 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6209 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6210 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6021 6211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6022 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6023 6213 fi ··· 6027 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6028 6218 fi 6029 6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6030 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6031 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6032 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6033 - $as_echo_n "(cached) " >&6 6034 - else 6220 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6221 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6222 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6223 + then : 6224 + printf %s "(cached) " >&6 6225 + else $as_nop 6035 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036 6227 /* end confdefs.h. */ 6037 6228 int i; 6038 6229 _ACEOF 6039 - if ac_fn_c_try_compile "$LINENO"; then : 6230 + if ac_fn_c_try_compile "$LINENO" 6231 + then : 6040 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6041 - else 6233 + else $as_nop 6042 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6043 6235 fi 6044 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6045 6237 fi 6046 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6047 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6238 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6048 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6049 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6050 6242 fi ··· 6062 6254 6063 6255 CFLAGS="$CFLAGS -Wuninitialized" 6064 6256 6065 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6066 - $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6257 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6258 + printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6067 6259 cacheid=xorg_cv_cc_flag__Wuninitialized 6068 - if eval \${$cacheid+:} false; then : 6069 - $as_echo_n "(cached) " >&6 6070 - else 6260 + if eval test \${$cacheid+y} 6261 + then : 6262 + printf %s "(cached) " >&6 6263 + else $as_nop 6071 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072 6265 /* end confdefs.h. */ 6073 6266 int i; 6074 6267 int 6075 - main () 6268 + main (void) 6076 6269 { 6077 6270 6078 6271 ; 6079 6272 return 0; 6080 6273 } 6081 6274 _ACEOF 6082 - if ac_fn_c_try_link "$LINENO"; then : 6275 + if ac_fn_c_try_link "$LINENO" 6276 + then : 6083 6277 eval $cacheid=yes 6084 - else 6278 + else $as_nop 6085 6279 eval $cacheid=no 6086 6280 fi 6087 - rm -f core conftest.err conftest.$ac_objext \ 6281 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6088 6282 conftest$ac_exeext conftest.$ac_ext 6089 6283 fi 6090 6284 ··· 6092 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6093 6287 6094 6288 eval supported=\$$cacheid 6095 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6096 - $as_echo "$supported" >&6; } 6289 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6290 + printf "%s\n" "$supported" >&6; } 6097 6291 if test "$supported" = "yes" ; then 6098 6292 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6099 6293 found="yes" ··· 6118 6312 6119 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6120 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6122 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6123 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6124 - $as_echo_n "(cached) " >&6 6125 - else 6315 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6316 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6317 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6318 + then : 6319 + printf %s "(cached) " >&6 6320 + else $as_nop 6126 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127 6322 /* end confdefs.h. */ 6128 6323 int i; 6129 6324 _ACEOF 6130 - if ac_fn_c_try_compile "$LINENO"; then : 6325 + if ac_fn_c_try_compile "$LINENO" 6326 + then : 6131 6327 xorg_cv_cc_flag_unknown_warning_option=yes 6132 - else 6328 + else $as_nop 6133 6329 xorg_cv_cc_flag_unknown_warning_option=no 6134 6330 fi 6135 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6136 6332 fi 6137 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6138 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6333 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6334 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6139 6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6140 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6141 6337 fi ··· 6145 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6146 6342 fi 6147 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6148 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6149 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6150 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6151 - $as_echo_n "(cached) " >&6 6152 - else 6344 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6345 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6346 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6347 + then : 6348 + printf %s "(cached) " >&6 6349 + else $as_nop 6153 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154 6351 /* end confdefs.h. */ 6155 6352 int i; 6156 6353 _ACEOF 6157 - if ac_fn_c_try_compile "$LINENO"; then : 6354 + if ac_fn_c_try_compile "$LINENO" 6355 + then : 6158 6356 xorg_cv_cc_flag_unused_command_line_argument=yes 6159 - else 6357 + else $as_nop 6160 6358 xorg_cv_cc_flag_unused_command_line_argument=no 6161 6359 fi 6162 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6360 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6163 6361 fi 6164 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6165 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6362 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6166 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6167 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6168 6366 fi ··· 6180 6378 6181 6379 CFLAGS="$CFLAGS -Wshadow" 6182 6380 6183 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6184 - $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6381 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6382 + printf %s "checking if $CC supports -Wshadow... " >&6; } 6185 6383 cacheid=xorg_cv_cc_flag__Wshadow 6186 - if eval \${$cacheid+:} false; then : 6187 - $as_echo_n "(cached) " >&6 6188 - else 6384 + if eval test \${$cacheid+y} 6385 + then : 6386 + printf %s "(cached) " >&6 6387 + else $as_nop 6189 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190 6389 /* end confdefs.h. */ 6191 6390 int i; 6192 6391 int 6193 - main () 6392 + main (void) 6194 6393 { 6195 6394 6196 6395 ; 6197 6396 return 0; 6198 6397 } 6199 6398 _ACEOF 6200 - if ac_fn_c_try_link "$LINENO"; then : 6399 + if ac_fn_c_try_link "$LINENO" 6400 + then : 6201 6401 eval $cacheid=yes 6202 - else 6402 + else $as_nop 6203 6403 eval $cacheid=no 6204 6404 fi 6205 - rm -f core conftest.err conftest.$ac_objext \ 6405 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6206 6406 conftest$ac_exeext conftest.$ac_ext 6207 6407 fi 6208 6408 ··· 6210 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6211 6411 6212 6412 eval supported=\$$cacheid 6213 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6214 - $as_echo "$supported" >&6; } 6413 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414 + printf "%s\n" "$supported" >&6; } 6215 6415 if test "$supported" = "yes" ; then 6216 6416 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6217 6417 found="yes" ··· 6236 6436 6237 6437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6238 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6239 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6240 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6241 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6242 - $as_echo_n "(cached) " >&6 6243 - else 6439 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6440 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6441 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6442 + then : 6443 + printf %s "(cached) " >&6 6444 + else $as_nop 6244 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245 6446 /* end confdefs.h. */ 6246 6447 int i; 6247 6448 _ACEOF 6248 - if ac_fn_c_try_compile "$LINENO"; then : 6449 + if ac_fn_c_try_compile "$LINENO" 6450 + then : 6249 6451 xorg_cv_cc_flag_unknown_warning_option=yes 6250 - else 6452 + else $as_nop 6251 6453 xorg_cv_cc_flag_unknown_warning_option=no 6252 6454 fi 6253 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6254 6456 fi 6255 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6256 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6457 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6458 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6257 6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6258 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6259 6461 fi ··· 6263 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 6466 fi 6265 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6266 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6267 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6268 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6269 - $as_echo_n "(cached) " >&6 6270 - else 6468 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6469 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6470 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6471 + then : 6472 + printf %s "(cached) " >&6 6473 + else $as_nop 6271 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272 6475 /* end confdefs.h. */ 6273 6476 int i; 6274 6477 _ACEOF 6275 - if ac_fn_c_try_compile "$LINENO"; then : 6478 + if ac_fn_c_try_compile "$LINENO" 6479 + then : 6276 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6277 - else 6481 + else $as_nop 6278 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6279 6483 fi 6280 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6281 6485 fi 6282 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6283 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6486 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6284 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6285 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6286 6490 fi ··· 6298 6502 6299 6503 CFLAGS="$CFLAGS -Wmissing-noreturn" 6300 6504 6301 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6302 - $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6505 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6506 + printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6303 6507 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6304 - if eval \${$cacheid+:} false; then : 6305 - $as_echo_n "(cached) " >&6 6306 - else 6508 + if eval test \${$cacheid+y} 6509 + then : 6510 + printf %s "(cached) " >&6 6511 + else $as_nop 6307 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308 6513 /* end confdefs.h. */ 6309 6514 int i; 6310 6515 int 6311 - main () 6516 + main (void) 6312 6517 { 6313 6518 6314 6519 ; 6315 6520 return 0; 6316 6521 } 6317 6522 _ACEOF 6318 - if ac_fn_c_try_link "$LINENO"; then : 6523 + if ac_fn_c_try_link "$LINENO" 6524 + then : 6319 6525 eval $cacheid=yes 6320 - else 6526 + else $as_nop 6321 6527 eval $cacheid=no 6322 6528 fi 6323 - rm -f core conftest.err conftest.$ac_objext \ 6529 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6324 6530 conftest$ac_exeext conftest.$ac_ext 6325 6531 fi 6326 6532 ··· 6328 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6329 6535 6330 6536 eval supported=\$$cacheid 6331 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6332 - $as_echo "$supported" >&6; } 6537 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6538 + printf "%s\n" "$supported" >&6; } 6333 6539 if test "$supported" = "yes" ; then 6334 6540 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6335 6541 found="yes" ··· 6354 6560 6355 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6356 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6358 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6359 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6360 - $as_echo_n "(cached) " >&6 6361 - else 6563 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6564 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6565 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6566 + then : 6567 + printf %s "(cached) " >&6 6568 + else $as_nop 6362 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363 6570 /* end confdefs.h. */ 6364 6571 int i; 6365 6572 _ACEOF 6366 - if ac_fn_c_try_compile "$LINENO"; then : 6573 + if ac_fn_c_try_compile "$LINENO" 6574 + then : 6367 6575 xorg_cv_cc_flag_unknown_warning_option=yes 6368 - else 6576 + else $as_nop 6369 6577 xorg_cv_cc_flag_unknown_warning_option=no 6370 6578 fi 6371 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6579 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6372 6580 fi 6373 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6374 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6581 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6582 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6375 6583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6376 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6377 6585 fi ··· 6381 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 6590 fi 6383 6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6384 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6385 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6386 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6387 - $as_echo_n "(cached) " >&6 6388 - else 6592 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6593 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6594 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6595 + then : 6596 + printf %s "(cached) " >&6 6597 + else $as_nop 6389 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390 6599 /* end confdefs.h. */ 6391 6600 int i; 6392 6601 _ACEOF 6393 - if ac_fn_c_try_compile "$LINENO"; then : 6602 + if ac_fn_c_try_compile "$LINENO" 6603 + then : 6394 6604 xorg_cv_cc_flag_unused_command_line_argument=yes 6395 - else 6605 + else $as_nop 6396 6606 xorg_cv_cc_flag_unused_command_line_argument=no 6397 6607 fi 6398 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6608 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6399 6609 fi 6400 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6401 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6610 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6611 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6402 6612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6403 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6404 6614 fi ··· 6416 6626 6417 6627 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6418 6628 6419 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6420 - $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6629 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6630 + printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6421 6631 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6422 - if eval \${$cacheid+:} false; then : 6423 - $as_echo_n "(cached) " >&6 6424 - else 6632 + if eval test \${$cacheid+y} 6633 + then : 6634 + printf %s "(cached) " >&6 6635 + else $as_nop 6425 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426 6637 /* end confdefs.h. */ 6427 6638 int i; 6428 6639 int 6429 - main () 6640 + main (void) 6430 6641 { 6431 6642 6432 6643 ; 6433 6644 return 0; 6434 6645 } 6435 6646 _ACEOF 6436 - if ac_fn_c_try_link "$LINENO"; then : 6647 + if ac_fn_c_try_link "$LINENO" 6648 + then : 6437 6649 eval $cacheid=yes 6438 - else 6650 + else $as_nop 6439 6651 eval $cacheid=no 6440 6652 fi 6441 - rm -f core conftest.err conftest.$ac_objext \ 6653 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6442 6654 conftest$ac_exeext conftest.$ac_ext 6443 6655 fi 6444 6656 ··· 6446 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6447 6659 6448 6660 eval supported=\$$cacheid 6449 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6450 - $as_echo "$supported" >&6; } 6661 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6662 + printf "%s\n" "$supported" >&6; } 6451 6663 if test "$supported" = "yes" ; then 6452 6664 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6453 6665 found="yes" ··· 6473 6685 6474 6686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6475 6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6477 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6478 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6479 - $as_echo_n "(cached) " >&6 6480 - else 6688 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6689 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6690 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6691 + then : 6692 + printf %s "(cached) " >&6 6693 + else $as_nop 6481 6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482 6695 /* end confdefs.h. */ 6483 6696 int i; 6484 6697 _ACEOF 6485 - if ac_fn_c_try_compile "$LINENO"; then : 6698 + if ac_fn_c_try_compile "$LINENO" 6699 + then : 6486 6700 xorg_cv_cc_flag_unknown_warning_option=yes 6487 - else 6701 + else $as_nop 6488 6702 xorg_cv_cc_flag_unknown_warning_option=no 6489 6703 fi 6490 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6704 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6491 6705 fi 6492 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6493 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6706 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6707 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6494 6708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6495 6709 CFLAGS="$xorg_testset_save_CFLAGS" 6496 6710 fi ··· 6500 6714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6501 6715 fi 6502 6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6503 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6504 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6505 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6506 - $as_echo_n "(cached) " >&6 6507 - else 6717 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6718 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6719 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6720 + then : 6721 + printf %s "(cached) " >&6 6722 + else $as_nop 6508 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509 6724 /* end confdefs.h. */ 6510 6725 int i; 6511 6726 _ACEOF 6512 - if ac_fn_c_try_compile "$LINENO"; then : 6727 + if ac_fn_c_try_compile "$LINENO" 6728 + then : 6513 6729 xorg_cv_cc_flag_unused_command_line_argument=yes 6514 - else 6730 + else $as_nop 6515 6731 xorg_cv_cc_flag_unused_command_line_argument=no 6516 6732 fi 6517 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6733 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6518 6734 fi 6519 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6520 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6735 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6736 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6521 6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6522 6738 CFLAGS="$xorg_testset_save_CFLAGS" 6523 6739 fi ··· 6535 6751 6536 6752 CFLAGS="$CFLAGS -Wlogical-op" 6537 6753 6538 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6539 - $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6754 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6755 + printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6540 6756 cacheid=xorg_cv_cc_flag__Wlogical_op 6541 - if eval \${$cacheid+:} false; then : 6542 - $as_echo_n "(cached) " >&6 6543 - else 6757 + if eval test \${$cacheid+y} 6758 + then : 6759 + printf %s "(cached) " >&6 6760 + else $as_nop 6544 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545 6762 /* end confdefs.h. */ 6546 6763 int i; 6547 6764 int 6548 - main () 6765 + main (void) 6549 6766 { 6550 6767 6551 6768 ; 6552 6769 return 0; 6553 6770 } 6554 6771 _ACEOF 6555 - if ac_fn_c_try_link "$LINENO"; then : 6772 + if ac_fn_c_try_link "$LINENO" 6773 + then : 6556 6774 eval $cacheid=yes 6557 - else 6775 + else $as_nop 6558 6776 eval $cacheid=no 6559 6777 fi 6560 - rm -f core conftest.err conftest.$ac_objext \ 6778 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6561 6779 conftest$ac_exeext conftest.$ac_ext 6562 6780 fi 6563 6781 ··· 6565 6783 CFLAGS="$xorg_testset_save_CFLAGS" 6566 6784 6567 6785 eval supported=\$$cacheid 6568 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6569 - $as_echo "$supported" >&6; } 6786 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6787 + printf "%s\n" "$supported" >&6; } 6570 6788 if test "$supported" = "yes" ; then 6571 6789 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6572 6790 found="yes" ··· 6582 6800 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6583 6801 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6584 6802 6585 - # Turn some warnings into errors, so we don't accidently get successful builds 6803 + # Turn some warnings into errors, so we don't accidentally get successful builds 6586 6804 # when there are problems that should be fixed. 6587 6805 6588 6806 if test "x$SELECTIVE_WERROR" = "xyes" ; then ··· 6603 6821 6604 6822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6605 6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6607 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6608 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6609 - $as_echo_n "(cached) " >&6 6610 - else 6824 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6825 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6826 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6827 + then : 6828 + printf %s "(cached) " >&6 6829 + else $as_nop 6611 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612 6831 /* end confdefs.h. */ 6613 6832 int i; 6614 6833 _ACEOF 6615 - if ac_fn_c_try_compile "$LINENO"; then : 6834 + if ac_fn_c_try_compile "$LINENO" 6835 + then : 6616 6836 xorg_cv_cc_flag_unknown_warning_option=yes 6617 - else 6837 + else $as_nop 6618 6838 xorg_cv_cc_flag_unknown_warning_option=no 6619 6839 fi 6620 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6840 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6621 6841 fi 6622 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6623 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6842 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6843 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6624 6844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6625 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6626 6846 fi ··· 6630 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6631 6851 fi 6632 6852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6633 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6634 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6635 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6636 - $as_echo_n "(cached) " >&6 6637 - else 6853 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6854 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6855 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6856 + then : 6857 + printf %s "(cached) " >&6 6858 + else $as_nop 6638 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639 6860 /* end confdefs.h. */ 6640 6861 int i; 6641 6862 _ACEOF 6642 - if ac_fn_c_try_compile "$LINENO"; then : 6863 + if ac_fn_c_try_compile "$LINENO" 6864 + then : 6643 6865 xorg_cv_cc_flag_unused_command_line_argument=yes 6644 - else 6866 + else $as_nop 6645 6867 xorg_cv_cc_flag_unused_command_line_argument=no 6646 6868 fi 6647 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6869 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6648 6870 fi 6649 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6650 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6871 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6872 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6651 6873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6652 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6653 6875 fi ··· 6665 6887 6666 6888 CFLAGS="$CFLAGS -Werror=implicit" 6667 6889 6668 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6669 - $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6890 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6891 + printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6670 6892 cacheid=xorg_cv_cc_flag__Werror_implicit 6671 - if eval \${$cacheid+:} false; then : 6672 - $as_echo_n "(cached) " >&6 6673 - else 6893 + if eval test \${$cacheid+y} 6894 + then : 6895 + printf %s "(cached) " >&6 6896 + else $as_nop 6674 6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675 6898 /* end confdefs.h. */ 6676 6899 int i; 6677 6900 int 6678 - main () 6901 + main (void) 6679 6902 { 6680 6903 6681 6904 ; 6682 6905 return 0; 6683 6906 } 6684 6907 _ACEOF 6685 - if ac_fn_c_try_link "$LINENO"; then : 6908 + if ac_fn_c_try_link "$LINENO" 6909 + then : 6686 6910 eval $cacheid=yes 6687 - else 6911 + else $as_nop 6688 6912 eval $cacheid=no 6689 6913 fi 6690 - rm -f core conftest.err conftest.$ac_objext \ 6914 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6691 6915 conftest$ac_exeext conftest.$ac_ext 6692 6916 fi 6693 6917 ··· 6695 6919 CFLAGS="$xorg_testset_save_CFLAGS" 6696 6920 6697 6921 eval supported=\$$cacheid 6698 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6699 - $as_echo "$supported" >&6; } 6922 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6923 + printf "%s\n" "$supported" >&6; } 6700 6924 if test "$supported" = "yes" ; then 6701 6925 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6702 6926 found="yes" ··· 6714 6938 6715 6939 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6716 6940 6717 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6718 - $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6941 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6942 + printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6719 6943 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6720 - if eval \${$cacheid+:} false; then : 6721 - $as_echo_n "(cached) " >&6 6722 - else 6944 + if eval test \${$cacheid+y} 6945 + then : 6946 + printf %s "(cached) " >&6 6947 + else $as_nop 6723 6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724 6949 /* end confdefs.h. */ 6725 6950 int i; 6726 6951 int 6727 - main () 6952 + main (void) 6728 6953 { 6729 6954 6730 6955 ; 6731 6956 return 0; 6732 6957 } 6733 6958 _ACEOF 6734 - if ac_fn_c_try_link "$LINENO"; then : 6959 + if ac_fn_c_try_link "$LINENO" 6960 + then : 6735 6961 eval $cacheid=yes 6736 - else 6962 + else $as_nop 6737 6963 eval $cacheid=no 6738 6964 fi 6739 - rm -f core conftest.err conftest.$ac_objext \ 6965 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6740 6966 conftest$ac_exeext conftest.$ac_ext 6741 6967 fi 6742 6968 ··· 6744 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6745 6971 6746 6972 eval supported=\$$cacheid 6747 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6748 - $as_echo "$supported" >&6; } 6973 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6974 + printf "%s\n" "$supported" >&6; } 6749 6975 if test "$supported" = "yes" ; then 6750 6976 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6751 6977 found="yes" ··· 6770 6996 6771 6997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6772 6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6773 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6774 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6775 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6776 - $as_echo_n "(cached) " >&6 6777 - else 6999 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7000 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7001 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7002 + then : 7003 + printf %s "(cached) " >&6 7004 + else $as_nop 6778 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779 7006 /* end confdefs.h. */ 6780 7007 int i; 6781 7008 _ACEOF 6782 - if ac_fn_c_try_compile "$LINENO"; then : 7009 + if ac_fn_c_try_compile "$LINENO" 7010 + then : 6783 7011 xorg_cv_cc_flag_unknown_warning_option=yes 6784 - else 7012 + else $as_nop 6785 7013 xorg_cv_cc_flag_unknown_warning_option=no 6786 7014 fi 6787 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7015 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6788 7016 fi 6789 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6790 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7017 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7018 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6791 7019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6792 7020 CFLAGS="$xorg_testset_save_CFLAGS" 6793 7021 fi ··· 6797 7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6798 7026 fi 6799 7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6800 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6801 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6802 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6803 - $as_echo_n "(cached) " >&6 6804 - else 7028 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7029 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7030 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7031 + then : 7032 + printf %s "(cached) " >&6 7033 + else $as_nop 6805 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806 7035 /* end confdefs.h. */ 6807 7036 int i; 6808 7037 _ACEOF 6809 - if ac_fn_c_try_compile "$LINENO"; then : 7038 + if ac_fn_c_try_compile "$LINENO" 7039 + then : 6810 7040 xorg_cv_cc_flag_unused_command_line_argument=yes 6811 - else 7041 + else $as_nop 6812 7042 xorg_cv_cc_flag_unused_command_line_argument=no 6813 7043 fi 6814 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7044 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6815 7045 fi 6816 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6817 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7046 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7047 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6818 7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6819 7049 CFLAGS="$xorg_testset_save_CFLAGS" 6820 7050 fi ··· 6832 7062 6833 7063 CFLAGS="$CFLAGS -Werror=nonnull" 6834 7064 6835 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6836 - $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7065 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7066 + printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6837 7067 cacheid=xorg_cv_cc_flag__Werror_nonnull 6838 - if eval \${$cacheid+:} false; then : 6839 - $as_echo_n "(cached) " >&6 6840 - else 7068 + if eval test \${$cacheid+y} 7069 + then : 7070 + printf %s "(cached) " >&6 7071 + else $as_nop 6841 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842 7073 /* end confdefs.h. */ 6843 7074 int i; 6844 7075 int 6845 - main () 7076 + main (void) 6846 7077 { 6847 7078 6848 7079 ; 6849 7080 return 0; 6850 7081 } 6851 7082 _ACEOF 6852 - if ac_fn_c_try_link "$LINENO"; then : 7083 + if ac_fn_c_try_link "$LINENO" 7084 + then : 6853 7085 eval $cacheid=yes 6854 - else 7086 + else $as_nop 6855 7087 eval $cacheid=no 6856 7088 fi 6857 - rm -f core conftest.err conftest.$ac_objext \ 7089 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6858 7090 conftest$ac_exeext conftest.$ac_ext 6859 7091 fi 6860 7092 ··· 6862 7094 CFLAGS="$xorg_testset_save_CFLAGS" 6863 7095 6864 7096 eval supported=\$$cacheid 6865 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6866 - $as_echo "$supported" >&6; } 7097 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7098 + printf "%s\n" "$supported" >&6; } 6867 7099 if test "$supported" = "yes" ; then 6868 7100 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6869 7101 found="yes" ··· 6888 7120 6889 7121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6890 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6891 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6892 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6893 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6894 - $as_echo_n "(cached) " >&6 6895 - else 7123 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7124 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7125 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7126 + then : 7127 + printf %s "(cached) " >&6 7128 + else $as_nop 6896 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897 7130 /* end confdefs.h. */ 6898 7131 int i; 6899 7132 _ACEOF 6900 - if ac_fn_c_try_compile "$LINENO"; then : 7133 + if ac_fn_c_try_compile "$LINENO" 7134 + then : 6901 7135 xorg_cv_cc_flag_unknown_warning_option=yes 6902 - else 7136 + else $as_nop 6903 7137 xorg_cv_cc_flag_unknown_warning_option=no 6904 7138 fi 6905 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7139 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6906 7140 fi 6907 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6908 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7141 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7142 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6909 7143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6910 7144 CFLAGS="$xorg_testset_save_CFLAGS" 6911 7145 fi ··· 6915 7149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6916 7150 fi 6917 7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6918 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6919 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6920 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6921 - $as_echo_n "(cached) " >&6 6922 - else 7152 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7153 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7154 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7155 + then : 7156 + printf %s "(cached) " >&6 7157 + else $as_nop 6923 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924 7159 /* end confdefs.h. */ 6925 7160 int i; 6926 7161 _ACEOF 6927 - if ac_fn_c_try_compile "$LINENO"; then : 7162 + if ac_fn_c_try_compile "$LINENO" 7163 + then : 6928 7164 xorg_cv_cc_flag_unused_command_line_argument=yes 6929 - else 7165 + else $as_nop 6930 7166 xorg_cv_cc_flag_unused_command_line_argument=no 6931 7167 fi 6932 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7168 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6933 7169 fi 6934 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6935 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7170 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7171 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6936 7172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6937 7173 CFLAGS="$xorg_testset_save_CFLAGS" 6938 7174 fi ··· 6950 7186 6951 7187 CFLAGS="$CFLAGS -Werror=init-self" 6952 7188 6953 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6954 - $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7189 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7190 + printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6955 7191 cacheid=xorg_cv_cc_flag__Werror_init_self 6956 - if eval \${$cacheid+:} false; then : 6957 - $as_echo_n "(cached) " >&6 6958 - else 7192 + if eval test \${$cacheid+y} 7193 + then : 7194 + printf %s "(cached) " >&6 7195 + else $as_nop 6959 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960 7197 /* end confdefs.h. */ 6961 7198 int i; 6962 7199 int 6963 - main () 7200 + main (void) 6964 7201 { 6965 7202 6966 7203 ; 6967 7204 return 0; 6968 7205 } 6969 7206 _ACEOF 6970 - if ac_fn_c_try_link "$LINENO"; then : 7207 + if ac_fn_c_try_link "$LINENO" 7208 + then : 6971 7209 eval $cacheid=yes 6972 - else 7210 + else $as_nop 6973 7211 eval $cacheid=no 6974 7212 fi 6975 - rm -f core conftest.err conftest.$ac_objext \ 7213 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6976 7214 conftest$ac_exeext conftest.$ac_ext 6977 7215 fi 6978 7216 ··· 6980 7218 CFLAGS="$xorg_testset_save_CFLAGS" 6981 7219 6982 7220 eval supported=\$$cacheid 6983 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6984 - $as_echo "$supported" >&6; } 7221 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7222 + printf "%s\n" "$supported" >&6; } 6985 7223 if test "$supported" = "yes" ; then 6986 7224 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6987 7225 found="yes" ··· 7006 7244 7007 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7008 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7010 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7011 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7012 - $as_echo_n "(cached) " >&6 7013 - else 7247 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7248 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7249 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7250 + then : 7251 + printf %s "(cached) " >&6 7252 + else $as_nop 7014 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015 7254 /* end confdefs.h. */ 7016 7255 int i; 7017 7256 _ACEOF 7018 - if ac_fn_c_try_compile "$LINENO"; then : 7257 + if ac_fn_c_try_compile "$LINENO" 7258 + then : 7019 7259 xorg_cv_cc_flag_unknown_warning_option=yes 7020 - else 7260 + else $as_nop 7021 7261 xorg_cv_cc_flag_unknown_warning_option=no 7022 7262 fi 7023 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7263 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7024 7264 fi 7025 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7026 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7265 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7266 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7027 7267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7028 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7029 7269 fi ··· 7033 7273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7034 7274 fi 7035 7275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7036 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7037 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7038 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7039 - $as_echo_n "(cached) " >&6 7040 - else 7276 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7277 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7278 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7279 + then : 7280 + printf %s "(cached) " >&6 7281 + else $as_nop 7041 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042 7283 /* end confdefs.h. */ 7043 7284 int i; 7044 7285 _ACEOF 7045 - if ac_fn_c_try_compile "$LINENO"; then : 7286 + if ac_fn_c_try_compile "$LINENO" 7287 + then : 7046 7288 xorg_cv_cc_flag_unused_command_line_argument=yes 7047 - else 7289 + else $as_nop 7048 7290 xorg_cv_cc_flag_unused_command_line_argument=no 7049 7291 fi 7050 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7292 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7051 7293 fi 7052 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7053 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7294 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7295 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7054 7296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7055 7297 CFLAGS="$xorg_testset_save_CFLAGS" 7056 7298 fi ··· 7068 7310 7069 7311 CFLAGS="$CFLAGS -Werror=main" 7070 7312 7071 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7072 - $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7313 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7314 + printf %s "checking if $CC supports -Werror=main... " >&6; } 7073 7315 cacheid=xorg_cv_cc_flag__Werror_main 7074 - if eval \${$cacheid+:} false; then : 7075 - $as_echo_n "(cached) " >&6 7076 - else 7316 + if eval test \${$cacheid+y} 7317 + then : 7318 + printf %s "(cached) " >&6 7319 + else $as_nop 7077 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078 7321 /* end confdefs.h. */ 7079 7322 int i; 7080 7323 int 7081 - main () 7324 + main (void) 7082 7325 { 7083 7326 7084 7327 ; 7085 7328 return 0; 7086 7329 } 7087 7330 _ACEOF 7088 - if ac_fn_c_try_link "$LINENO"; then : 7331 + if ac_fn_c_try_link "$LINENO" 7332 + then : 7089 7333 eval $cacheid=yes 7090 - else 7334 + else $as_nop 7091 7335 eval $cacheid=no 7092 7336 fi 7093 - rm -f core conftest.err conftest.$ac_objext \ 7337 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7094 7338 conftest$ac_exeext conftest.$ac_ext 7095 7339 fi 7096 7340 ··· 7098 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7099 7343 7100 7344 eval supported=\$$cacheid 7101 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7102 - $as_echo "$supported" >&6; } 7345 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7346 + printf "%s\n" "$supported" >&6; } 7103 7347 if test "$supported" = "yes" ; then 7104 7348 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7105 7349 found="yes" ··· 7124 7368 7125 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7126 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7127 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7128 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7129 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7130 - $as_echo_n "(cached) " >&6 7131 - else 7371 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7372 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7373 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7374 + then : 7375 + printf %s "(cached) " >&6 7376 + else $as_nop 7132 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133 7378 /* end confdefs.h. */ 7134 7379 int i; 7135 7380 _ACEOF 7136 - if ac_fn_c_try_compile "$LINENO"; then : 7381 + if ac_fn_c_try_compile "$LINENO" 7382 + then : 7137 7383 xorg_cv_cc_flag_unknown_warning_option=yes 7138 - else 7384 + else $as_nop 7139 7385 xorg_cv_cc_flag_unknown_warning_option=no 7140 7386 fi 7141 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7387 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7142 7388 fi 7143 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7144 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7389 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7390 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7145 7391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7146 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7147 7393 fi ··· 7151 7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7152 7398 fi 7153 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7155 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7156 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7157 - $as_echo_n "(cached) " >&6 7158 - else 7400 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7401 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7402 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7403 + then : 7404 + printf %s "(cached) " >&6 7405 + else $as_nop 7159 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160 7407 /* end confdefs.h. */ 7161 7408 int i; 7162 7409 _ACEOF 7163 - if ac_fn_c_try_compile "$LINENO"; then : 7410 + if ac_fn_c_try_compile "$LINENO" 7411 + then : 7164 7412 xorg_cv_cc_flag_unused_command_line_argument=yes 7165 - else 7413 + else $as_nop 7166 7414 xorg_cv_cc_flag_unused_command_line_argument=no 7167 7415 fi 7168 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7416 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7169 7417 fi 7170 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7171 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7418 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7419 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7172 7420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7173 7421 CFLAGS="$xorg_testset_save_CFLAGS" 7174 7422 fi ··· 7186 7434 7187 7435 CFLAGS="$CFLAGS -Werror=missing-braces" 7188 7436 7189 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7190 - $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7437 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7438 + printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7191 7439 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7192 - if eval \${$cacheid+:} false; then : 7193 - $as_echo_n "(cached) " >&6 7194 - else 7440 + if eval test \${$cacheid+y} 7441 + then : 7442 + printf %s "(cached) " >&6 7443 + else $as_nop 7195 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196 7445 /* end confdefs.h. */ 7197 7446 int i; 7198 7447 int 7199 - main () 7448 + main (void) 7200 7449 { 7201 7450 7202 7451 ; 7203 7452 return 0; 7204 7453 } 7205 7454 _ACEOF 7206 - if ac_fn_c_try_link "$LINENO"; then : 7455 + if ac_fn_c_try_link "$LINENO" 7456 + then : 7207 7457 eval $cacheid=yes 7208 - else 7458 + else $as_nop 7209 7459 eval $cacheid=no 7210 7460 fi 7211 - rm -f core conftest.err conftest.$ac_objext \ 7461 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7212 7462 conftest$ac_exeext conftest.$ac_ext 7213 7463 fi 7214 7464 ··· 7216 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7217 7467 7218 7468 eval supported=\$$cacheid 7219 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7220 - $as_echo "$supported" >&6; } 7469 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7470 + printf "%s\n" "$supported" >&6; } 7221 7471 if test "$supported" = "yes" ; then 7222 7472 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7223 7473 found="yes" ··· 7242 7492 7243 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7244 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7245 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7246 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7247 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7248 - $as_echo_n "(cached) " >&6 7249 - else 7495 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7496 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7497 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7498 + then : 7499 + printf %s "(cached) " >&6 7500 + else $as_nop 7250 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251 7502 /* end confdefs.h. */ 7252 7503 int i; 7253 7504 _ACEOF 7254 - if ac_fn_c_try_compile "$LINENO"; then : 7505 + if ac_fn_c_try_compile "$LINENO" 7506 + then : 7255 7507 xorg_cv_cc_flag_unknown_warning_option=yes 7256 - else 7508 + else $as_nop 7257 7509 xorg_cv_cc_flag_unknown_warning_option=no 7258 7510 fi 7259 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7511 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7260 7512 fi 7261 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7262 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7513 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7514 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7263 7515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7264 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7265 7517 fi ··· 7269 7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7270 7522 fi 7271 7523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7272 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7273 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7274 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7275 - $as_echo_n "(cached) " >&6 7276 - else 7524 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7525 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7526 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7527 + then : 7528 + printf %s "(cached) " >&6 7529 + else $as_nop 7277 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278 7531 /* end confdefs.h. */ 7279 7532 int i; 7280 7533 _ACEOF 7281 - if ac_fn_c_try_compile "$LINENO"; then : 7534 + if ac_fn_c_try_compile "$LINENO" 7535 + then : 7282 7536 xorg_cv_cc_flag_unused_command_line_argument=yes 7283 - else 7537 + else $as_nop 7284 7538 xorg_cv_cc_flag_unused_command_line_argument=no 7285 7539 fi 7286 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7540 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7287 7541 fi 7288 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7289 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7542 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7543 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7290 7544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7291 7545 CFLAGS="$xorg_testset_save_CFLAGS" 7292 7546 fi ··· 7304 7558 7305 7559 CFLAGS="$CFLAGS -Werror=sequence-point" 7306 7560 7307 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7308 - $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7561 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7562 + printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7309 7563 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7310 - if eval \${$cacheid+:} false; then : 7311 - $as_echo_n "(cached) " >&6 7312 - else 7564 + if eval test \${$cacheid+y} 7565 + then : 7566 + printf %s "(cached) " >&6 7567 + else $as_nop 7313 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314 7569 /* end confdefs.h. */ 7315 7570 int i; 7316 7571 int 7317 - main () 7572 + main (void) 7318 7573 { 7319 7574 7320 7575 ; 7321 7576 return 0; 7322 7577 } 7323 7578 _ACEOF 7324 - if ac_fn_c_try_link "$LINENO"; then : 7579 + if ac_fn_c_try_link "$LINENO" 7580 + then : 7325 7581 eval $cacheid=yes 7326 - else 7582 + else $as_nop 7327 7583 eval $cacheid=no 7328 7584 fi 7329 - rm -f core conftest.err conftest.$ac_objext \ 7585 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7330 7586 conftest$ac_exeext conftest.$ac_ext 7331 7587 fi 7332 7588 ··· 7334 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7335 7591 7336 7592 eval supported=\$$cacheid 7337 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7338 - $as_echo "$supported" >&6; } 7593 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7594 + printf "%s\n" "$supported" >&6; } 7339 7595 if test "$supported" = "yes" ; then 7340 7596 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7341 7597 found="yes" ··· 7360 7616 7361 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7362 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7364 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7365 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7366 - $as_echo_n "(cached) " >&6 7367 - else 7619 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7620 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7621 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7622 + then : 7623 + printf %s "(cached) " >&6 7624 + else $as_nop 7368 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369 7626 /* end confdefs.h. */ 7370 7627 int i; 7371 7628 _ACEOF 7372 - if ac_fn_c_try_compile "$LINENO"; then : 7629 + if ac_fn_c_try_compile "$LINENO" 7630 + then : 7373 7631 xorg_cv_cc_flag_unknown_warning_option=yes 7374 - else 7632 + else $as_nop 7375 7633 xorg_cv_cc_flag_unknown_warning_option=no 7376 7634 fi 7377 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7635 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7378 7636 fi 7379 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7380 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7637 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7638 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7381 7639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7382 7640 CFLAGS="$xorg_testset_save_CFLAGS" 7383 7641 fi ··· 7387 7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7388 7646 fi 7389 7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7391 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7392 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7393 - $as_echo_n "(cached) " >&6 7394 - else 7648 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7649 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7650 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7651 + then : 7652 + printf %s "(cached) " >&6 7653 + else $as_nop 7395 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396 7655 /* end confdefs.h. */ 7397 7656 int i; 7398 7657 _ACEOF 7399 - if ac_fn_c_try_compile "$LINENO"; then : 7658 + if ac_fn_c_try_compile "$LINENO" 7659 + then : 7400 7660 xorg_cv_cc_flag_unused_command_line_argument=yes 7401 - else 7661 + else $as_nop 7402 7662 xorg_cv_cc_flag_unused_command_line_argument=no 7403 7663 fi 7404 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7664 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7405 7665 fi 7406 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7407 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7666 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7667 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7408 7668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7409 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7410 7670 fi ··· 7422 7682 7423 7683 CFLAGS="$CFLAGS -Werror=return-type" 7424 7684 7425 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7426 - $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7685 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7686 + printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7427 7687 cacheid=xorg_cv_cc_flag__Werror_return_type 7428 - if eval \${$cacheid+:} false; then : 7429 - $as_echo_n "(cached) " >&6 7430 - else 7688 + if eval test \${$cacheid+y} 7689 + then : 7690 + printf %s "(cached) " >&6 7691 + else $as_nop 7431 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432 7693 /* end confdefs.h. */ 7433 7694 int i; 7434 7695 int 7435 - main () 7696 + main (void) 7436 7697 { 7437 7698 7438 7699 ; 7439 7700 return 0; 7440 7701 } 7441 7702 _ACEOF 7442 - if ac_fn_c_try_link "$LINENO"; then : 7703 + if ac_fn_c_try_link "$LINENO" 7704 + then : 7443 7705 eval $cacheid=yes 7444 - else 7706 + else $as_nop 7445 7707 eval $cacheid=no 7446 7708 fi 7447 - rm -f core conftest.err conftest.$ac_objext \ 7709 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7448 7710 conftest$ac_exeext conftest.$ac_ext 7449 7711 fi 7450 7712 ··· 7452 7714 CFLAGS="$xorg_testset_save_CFLAGS" 7453 7715 7454 7716 eval supported=\$$cacheid 7455 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7456 - $as_echo "$supported" >&6; } 7717 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7718 + printf "%s\n" "$supported" >&6; } 7457 7719 if test "$supported" = "yes" ; then 7458 7720 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7459 7721 found="yes" ··· 7471 7733 7472 7734 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7473 7735 7474 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7475 - $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7736 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7737 + printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7476 7738 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7477 - if eval \${$cacheid+:} false; then : 7478 - $as_echo_n "(cached) " >&6 7479 - else 7739 + if eval test \${$cacheid+y} 7740 + then : 7741 + printf %s "(cached) " >&6 7742 + else $as_nop 7480 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481 7744 /* end confdefs.h. */ 7482 7745 int i; 7483 7746 int 7484 - main () 7747 + main (void) 7485 7748 { 7486 7749 7487 7750 ; 7488 7751 return 0; 7489 7752 } 7490 7753 _ACEOF 7491 - if ac_fn_c_try_link "$LINENO"; then : 7754 + if ac_fn_c_try_link "$LINENO" 7755 + then : 7492 7756 eval $cacheid=yes 7493 - else 7757 + else $as_nop 7494 7758 eval $cacheid=no 7495 7759 fi 7496 - rm -f core conftest.err conftest.$ac_objext \ 7760 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7497 7761 conftest$ac_exeext conftest.$ac_ext 7498 7762 fi 7499 7763 ··· 7501 7765 CFLAGS="$xorg_testset_save_CFLAGS" 7502 7766 7503 7767 eval supported=\$$cacheid 7504 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7505 - $as_echo "$supported" >&6; } 7768 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7769 + printf "%s\n" "$supported" >&6; } 7506 7770 if test "$supported" = "yes" ; then 7507 7771 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7508 7772 found="yes" ··· 7527 7791 7528 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7529 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7530 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7531 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7532 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7533 - $as_echo_n "(cached) " >&6 7534 - else 7794 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7795 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7796 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7797 + then : 7798 + printf %s "(cached) " >&6 7799 + else $as_nop 7535 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536 7801 /* end confdefs.h. */ 7537 7802 int i; 7538 7803 _ACEOF 7539 - if ac_fn_c_try_compile "$LINENO"; then : 7804 + if ac_fn_c_try_compile "$LINENO" 7805 + then : 7540 7806 xorg_cv_cc_flag_unknown_warning_option=yes 7541 - else 7807 + else $as_nop 7542 7808 xorg_cv_cc_flag_unknown_warning_option=no 7543 7809 fi 7544 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7810 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7545 7811 fi 7546 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7547 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7812 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7813 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7548 7814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7549 7815 CFLAGS="$xorg_testset_save_CFLAGS" 7550 7816 fi ··· 7554 7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 7821 fi 7556 7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7557 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7558 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7559 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7560 - $as_echo_n "(cached) " >&6 7561 - else 7823 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7824 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7825 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7826 + then : 7827 + printf %s "(cached) " >&6 7828 + else $as_nop 7562 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563 7830 /* end confdefs.h. */ 7564 7831 int i; 7565 7832 _ACEOF 7566 - if ac_fn_c_try_compile "$LINENO"; then : 7833 + if ac_fn_c_try_compile "$LINENO" 7834 + then : 7567 7835 xorg_cv_cc_flag_unused_command_line_argument=yes 7568 - else 7836 + else $as_nop 7569 7837 xorg_cv_cc_flag_unused_command_line_argument=no 7570 7838 fi 7571 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7839 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7572 7840 fi 7573 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7574 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7841 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7842 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7575 7843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7576 7844 CFLAGS="$xorg_testset_save_CFLAGS" 7577 7845 fi ··· 7589 7857 7590 7858 CFLAGS="$CFLAGS -Werror=trigraphs" 7591 7859 7592 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7593 - $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7860 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7861 + printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7594 7862 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7595 - if eval \${$cacheid+:} false; then : 7596 - $as_echo_n "(cached) " >&6 7597 - else 7863 + if eval test \${$cacheid+y} 7864 + then : 7865 + printf %s "(cached) " >&6 7866 + else $as_nop 7598 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599 7868 /* end confdefs.h. */ 7600 7869 int i; 7601 7870 int 7602 - main () 7871 + main (void) 7603 7872 { 7604 7873 7605 7874 ; 7606 7875 return 0; 7607 7876 } 7608 7877 _ACEOF 7609 - if ac_fn_c_try_link "$LINENO"; then : 7878 + if ac_fn_c_try_link "$LINENO" 7879 + then : 7610 7880 eval $cacheid=yes 7611 - else 7881 + else $as_nop 7612 7882 eval $cacheid=no 7613 7883 fi 7614 - rm -f core conftest.err conftest.$ac_objext \ 7884 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7615 7885 conftest$ac_exeext conftest.$ac_ext 7616 7886 fi 7617 7887 ··· 7619 7889 CFLAGS="$xorg_testset_save_CFLAGS" 7620 7890 7621 7891 eval supported=\$$cacheid 7622 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7623 - $as_echo "$supported" >&6; } 7892 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7893 + printf "%s\n" "$supported" >&6; } 7624 7894 if test "$supported" = "yes" ; then 7625 7895 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7626 7896 found="yes" ··· 7645 7915 7646 7916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7647 7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7648 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7649 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7650 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7651 - $as_echo_n "(cached) " >&6 7652 - else 7918 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7919 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7920 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7921 + then : 7922 + printf %s "(cached) " >&6 7923 + else $as_nop 7653 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654 7925 /* end confdefs.h. */ 7655 7926 int i; 7656 7927 _ACEOF 7657 - if ac_fn_c_try_compile "$LINENO"; then : 7928 + if ac_fn_c_try_compile "$LINENO" 7929 + then : 7658 7930 xorg_cv_cc_flag_unknown_warning_option=yes 7659 - else 7931 + else $as_nop 7660 7932 xorg_cv_cc_flag_unknown_warning_option=no 7661 7933 fi 7662 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7934 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7663 7935 fi 7664 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7665 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7936 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7937 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7666 7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7667 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7668 7940 fi ··· 7672 7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7673 7945 fi 7674 7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7675 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7676 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7677 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7678 - $as_echo_n "(cached) " >&6 7679 - else 7947 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7948 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7949 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7950 + then : 7951 + printf %s "(cached) " >&6 7952 + else $as_nop 7680 7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681 7954 /* end confdefs.h. */ 7682 7955 int i; 7683 7956 _ACEOF 7684 - if ac_fn_c_try_compile "$LINENO"; then : 7957 + if ac_fn_c_try_compile "$LINENO" 7958 + then : 7685 7959 xorg_cv_cc_flag_unused_command_line_argument=yes 7686 - else 7960 + else $as_nop 7687 7961 xorg_cv_cc_flag_unused_command_line_argument=no 7688 7962 fi 7689 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7690 7964 fi 7691 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7692 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7965 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7966 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7693 7967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7694 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7695 7969 fi ··· 7707 7981 7708 7982 CFLAGS="$CFLAGS -Werror=array-bounds" 7709 7983 7710 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7711 - $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7984 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7985 + printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7712 7986 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7713 - if eval \${$cacheid+:} false; then : 7714 - $as_echo_n "(cached) " >&6 7715 - else 7987 + if eval test \${$cacheid+y} 7988 + then : 7989 + printf %s "(cached) " >&6 7990 + else $as_nop 7716 7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717 7992 /* end confdefs.h. */ 7718 7993 int i; 7719 7994 int 7720 - main () 7995 + main (void) 7721 7996 { 7722 7997 7723 7998 ; 7724 7999 return 0; 7725 8000 } 7726 8001 _ACEOF 7727 - if ac_fn_c_try_link "$LINENO"; then : 8002 + if ac_fn_c_try_link "$LINENO" 8003 + then : 7728 8004 eval $cacheid=yes 7729 - else 8005 + else $as_nop 7730 8006 eval $cacheid=no 7731 8007 fi 7732 - rm -f core conftest.err conftest.$ac_objext \ 8008 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7733 8009 conftest$ac_exeext conftest.$ac_ext 7734 8010 fi 7735 8011 ··· 7737 8013 CFLAGS="$xorg_testset_save_CFLAGS" 7738 8014 7739 8015 eval supported=\$$cacheid 7740 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7741 - $as_echo "$supported" >&6; } 8016 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8017 + printf "%s\n" "$supported" >&6; } 7742 8018 if test "$supported" = "yes" ; then 7743 8019 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7744 8020 found="yes" ··· 7763 8039 7764 8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7765 8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7767 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7768 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7769 - $as_echo_n "(cached) " >&6 7770 - else 8042 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8043 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8044 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8045 + then : 8046 + printf %s "(cached) " >&6 8047 + else $as_nop 7771 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772 8049 /* end confdefs.h. */ 7773 8050 int i; 7774 8051 _ACEOF 7775 - if ac_fn_c_try_compile "$LINENO"; then : 8052 + if ac_fn_c_try_compile "$LINENO" 8053 + then : 7776 8054 xorg_cv_cc_flag_unknown_warning_option=yes 7777 - else 8055 + else $as_nop 7778 8056 xorg_cv_cc_flag_unknown_warning_option=no 7779 8057 fi 7780 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7781 8059 fi 7782 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7783 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8060 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8061 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7784 8062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7785 8063 CFLAGS="$xorg_testset_save_CFLAGS" 7786 8064 fi ··· 7790 8068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7791 8069 fi 7792 8070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7793 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7794 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7795 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7796 - $as_echo_n "(cached) " >&6 7797 - else 8071 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8072 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8073 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8074 + then : 8075 + printf %s "(cached) " >&6 8076 + else $as_nop 7798 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799 8078 /* end confdefs.h. */ 7800 8079 int i; 7801 8080 _ACEOF 7802 - if ac_fn_c_try_compile "$LINENO"; then : 8081 + if ac_fn_c_try_compile "$LINENO" 8082 + then : 7803 8083 xorg_cv_cc_flag_unused_command_line_argument=yes 7804 - else 8084 + else $as_nop 7805 8085 xorg_cv_cc_flag_unused_command_line_argument=no 7806 8086 fi 7807 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8087 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7808 8088 fi 7809 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7810 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8089 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8090 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7811 8091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7812 8092 CFLAGS="$xorg_testset_save_CFLAGS" 7813 8093 fi ··· 7825 8105 7826 8106 CFLAGS="$CFLAGS -Werror=write-strings" 7827 8107 7828 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7829 - $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8108 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8109 + printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7830 8110 cacheid=xorg_cv_cc_flag__Werror_write_strings 7831 - if eval \${$cacheid+:} false; then : 7832 - $as_echo_n "(cached) " >&6 7833 - else 8111 + if eval test \${$cacheid+y} 8112 + then : 8113 + printf %s "(cached) " >&6 8114 + else $as_nop 7834 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835 8116 /* end confdefs.h. */ 7836 8117 int i; 7837 8118 int 7838 - main () 8119 + main (void) 7839 8120 { 7840 8121 7841 8122 ; 7842 8123 return 0; 7843 8124 } 7844 8125 _ACEOF 7845 - if ac_fn_c_try_link "$LINENO"; then : 8126 + if ac_fn_c_try_link "$LINENO" 8127 + then : 7846 8128 eval $cacheid=yes 7847 - else 8129 + else $as_nop 7848 8130 eval $cacheid=no 7849 8131 fi 7850 - rm -f core conftest.err conftest.$ac_objext \ 8132 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7851 8133 conftest$ac_exeext conftest.$ac_ext 7852 8134 fi 7853 8135 ··· 7855 8137 CFLAGS="$xorg_testset_save_CFLAGS" 7856 8138 7857 8139 eval supported=\$$cacheid 7858 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7859 - $as_echo "$supported" >&6; } 8140 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8141 + printf "%s\n" "$supported" >&6; } 7860 8142 if test "$supported" = "yes" ; then 7861 8143 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7862 8144 found="yes" ··· 7881 8163 7882 8164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7883 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7884 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7885 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7886 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7887 - $as_echo_n "(cached) " >&6 7888 - else 8166 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8167 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8168 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8169 + then : 8170 + printf %s "(cached) " >&6 8171 + else $as_nop 7889 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890 8173 /* end confdefs.h. */ 7891 8174 int i; 7892 8175 _ACEOF 7893 - if ac_fn_c_try_compile "$LINENO"; then : 8176 + if ac_fn_c_try_compile "$LINENO" 8177 + then : 7894 8178 xorg_cv_cc_flag_unknown_warning_option=yes 7895 - else 8179 + else $as_nop 7896 8180 xorg_cv_cc_flag_unknown_warning_option=no 7897 8181 fi 7898 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8182 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7899 8183 fi 7900 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7901 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8184 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8185 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7902 8186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7903 8187 CFLAGS="$xorg_testset_save_CFLAGS" 7904 8188 fi ··· 7908 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7909 8193 fi 7910 8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7911 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7912 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7913 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7914 - $as_echo_n "(cached) " >&6 7915 - else 8195 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8196 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8197 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8198 + then : 8199 + printf %s "(cached) " >&6 8200 + else $as_nop 7916 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917 8202 /* end confdefs.h. */ 7918 8203 int i; 7919 8204 _ACEOF 7920 - if ac_fn_c_try_compile "$LINENO"; then : 8205 + if ac_fn_c_try_compile "$LINENO" 8206 + then : 7921 8207 xorg_cv_cc_flag_unused_command_line_argument=yes 7922 - else 8208 + else $as_nop 7923 8209 xorg_cv_cc_flag_unused_command_line_argument=no 7924 8210 fi 7925 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7926 8212 fi 7927 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7928 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8213 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8214 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7929 8215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7930 8216 CFLAGS="$xorg_testset_save_CFLAGS" 7931 8217 fi ··· 7943 8229 7944 8230 CFLAGS="$CFLAGS -Werror=address" 7945 8231 7946 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7947 - $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8232 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8233 + printf %s "checking if $CC supports -Werror=address... " >&6; } 7948 8234 cacheid=xorg_cv_cc_flag__Werror_address 7949 - if eval \${$cacheid+:} false; then : 7950 - $as_echo_n "(cached) " >&6 7951 - else 8235 + if eval test \${$cacheid+y} 8236 + then : 8237 + printf %s "(cached) " >&6 8238 + else $as_nop 7952 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953 8240 /* end confdefs.h. */ 7954 8241 int i; 7955 8242 int 7956 - main () 8243 + main (void) 7957 8244 { 7958 8245 7959 8246 ; 7960 8247 return 0; 7961 8248 } 7962 8249 _ACEOF 7963 - if ac_fn_c_try_link "$LINENO"; then : 8250 + if ac_fn_c_try_link "$LINENO" 8251 + then : 7964 8252 eval $cacheid=yes 7965 - else 8253 + else $as_nop 7966 8254 eval $cacheid=no 7967 8255 fi 7968 - rm -f core conftest.err conftest.$ac_objext \ 8256 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7969 8257 conftest$ac_exeext conftest.$ac_ext 7970 8258 fi 7971 8259 ··· 7973 8261 CFLAGS="$xorg_testset_save_CFLAGS" 7974 8262 7975 8263 eval supported=\$$cacheid 7976 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7977 - $as_echo "$supported" >&6; } 8264 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8265 + printf "%s\n" "$supported" >&6; } 7978 8266 if test "$supported" = "yes" ; then 7979 8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7980 8268 found="yes" ··· 7999 8287 8000 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8001 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8003 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8004 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8005 - $as_echo_n "(cached) " >&6 8006 - else 8290 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8291 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8292 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8293 + then : 8294 + printf %s "(cached) " >&6 8295 + else $as_nop 8007 8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008 8297 /* end confdefs.h. */ 8009 8298 int i; 8010 8299 _ACEOF 8011 - if ac_fn_c_try_compile "$LINENO"; then : 8300 + if ac_fn_c_try_compile "$LINENO" 8301 + then : 8012 8302 xorg_cv_cc_flag_unknown_warning_option=yes 8013 - else 8303 + else $as_nop 8014 8304 xorg_cv_cc_flag_unknown_warning_option=no 8015 8305 fi 8016 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8306 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8017 8307 fi 8018 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8019 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8308 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8309 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8020 8310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8021 8311 CFLAGS="$xorg_testset_save_CFLAGS" 8022 8312 fi ··· 8026 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8027 8317 fi 8028 8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8029 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8030 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8031 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8032 - $as_echo_n "(cached) " >&6 8033 - else 8319 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8320 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8321 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8322 + then : 8323 + printf %s "(cached) " >&6 8324 + else $as_nop 8034 8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035 8326 /* end confdefs.h. */ 8036 8327 int i; 8037 8328 _ACEOF 8038 - if ac_fn_c_try_compile "$LINENO"; then : 8329 + if ac_fn_c_try_compile "$LINENO" 8330 + then : 8039 8331 xorg_cv_cc_flag_unused_command_line_argument=yes 8040 - else 8332 + else $as_nop 8041 8333 xorg_cv_cc_flag_unused_command_line_argument=no 8042 8334 fi 8043 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8335 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8044 8336 fi 8045 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8046 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8337 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8338 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8047 8339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8048 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8049 8341 fi ··· 8061 8353 8062 8354 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8063 8355 8064 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8065 - $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8356 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8357 + printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8066 8358 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8067 - if eval \${$cacheid+:} false; then : 8068 - $as_echo_n "(cached) " >&6 8069 - else 8359 + if eval test \${$cacheid+y} 8360 + then : 8361 + printf %s "(cached) " >&6 8362 + else $as_nop 8070 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071 8364 /* end confdefs.h. */ 8072 8365 int i; 8073 8366 int 8074 - main () 8367 + main (void) 8075 8368 { 8076 8369 8077 8370 ; 8078 8371 return 0; 8079 8372 } 8080 8373 _ACEOF 8081 - if ac_fn_c_try_link "$LINENO"; then : 8374 + if ac_fn_c_try_link "$LINENO" 8375 + then : 8082 8376 eval $cacheid=yes 8083 - else 8377 + else $as_nop 8084 8378 eval $cacheid=no 8085 8379 fi 8086 - rm -f core conftest.err conftest.$ac_objext \ 8380 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8087 8381 conftest$ac_exeext conftest.$ac_ext 8088 8382 fi 8089 8383 ··· 8091 8385 CFLAGS="$xorg_testset_save_CFLAGS" 8092 8386 8093 8387 eval supported=\$$cacheid 8094 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8095 - $as_echo "$supported" >&6; } 8388 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8389 + printf "%s\n" "$supported" >&6; } 8096 8390 if test "$supported" = "yes" ; then 8097 8391 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8098 8392 found="yes" ··· 8110 8404 8111 8405 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8112 8406 8113 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8114 - $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8407 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8408 + printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8115 8409 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8116 - if eval \${$cacheid+:} false; then : 8117 - $as_echo_n "(cached) " >&6 8118 - else 8410 + if eval test \${$cacheid+y} 8411 + then : 8412 + printf %s "(cached) " >&6 8413 + else $as_nop 8119 8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120 8415 /* end confdefs.h. */ 8121 8416 int i; 8122 8417 int 8123 - main () 8418 + main (void) 8124 8419 { 8125 8420 8126 8421 ; 8127 8422 return 0; 8128 8423 } 8129 8424 _ACEOF 8130 - if ac_fn_c_try_link "$LINENO"; then : 8425 + if ac_fn_c_try_link "$LINENO" 8426 + then : 8131 8427 eval $cacheid=yes 8132 - else 8428 + else $as_nop 8133 8429 eval $cacheid=no 8134 8430 fi 8135 - rm -f core conftest.err conftest.$ac_objext \ 8431 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8136 8432 conftest$ac_exeext conftest.$ac_ext 8137 8433 fi 8138 8434 ··· 8140 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8141 8437 8142 8438 eval supported=\$$cacheid 8143 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8144 - $as_echo "$supported" >&6; } 8439 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8440 + printf "%s\n" "$supported" >&6; } 8145 8441 if test "$supported" = "yes" ; then 8146 8442 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8147 8443 found="yes" ··· 8166 8462 8167 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8168 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8169 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8170 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8171 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8172 - $as_echo_n "(cached) " >&6 8173 - else 8465 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8466 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8467 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8468 + then : 8469 + printf %s "(cached) " >&6 8470 + else $as_nop 8174 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175 8472 /* end confdefs.h. */ 8176 8473 int i; 8177 8474 _ACEOF 8178 - if ac_fn_c_try_compile "$LINENO"; then : 8475 + if ac_fn_c_try_compile "$LINENO" 8476 + then : 8179 8477 xorg_cv_cc_flag_unknown_warning_option=yes 8180 - else 8478 + else $as_nop 8181 8479 xorg_cv_cc_flag_unknown_warning_option=no 8182 8480 fi 8183 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8481 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8184 8482 fi 8185 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8186 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8483 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8484 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8187 8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8188 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8487 fi ··· 8193 8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8194 8492 fi 8195 8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8196 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8197 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8198 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8199 - $as_echo_n "(cached) " >&6 8200 - else 8494 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8495 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8496 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8497 + then : 8498 + printf %s "(cached) " >&6 8499 + else $as_nop 8201 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202 8501 /* end confdefs.h. */ 8203 8502 int i; 8204 8503 _ACEOF 8205 - if ac_fn_c_try_compile "$LINENO"; then : 8504 + if ac_fn_c_try_compile "$LINENO" 8505 + then : 8206 8506 xorg_cv_cc_flag_unused_command_line_argument=yes 8207 - else 8507 + else $as_nop 8208 8508 xorg_cv_cc_flag_unused_command_line_argument=no 8209 8509 fi 8210 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8211 8511 fi 8212 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8512 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8513 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 8515 CFLAGS="$xorg_testset_save_CFLAGS" 8216 8516 fi ··· 8228 8528 8229 8529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8230 8530 8231 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8232 - $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8531 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8532 + printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8233 8533 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8234 - if eval \${$cacheid+:} false; then : 8235 - $as_echo_n "(cached) " >&6 8236 - else 8534 + if eval test \${$cacheid+y} 8535 + then : 8536 + printf %s "(cached) " >&6 8537 + else $as_nop 8237 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238 8539 /* end confdefs.h. */ 8239 8540 int i; 8240 8541 int 8241 - main () 8542 + main (void) 8242 8543 { 8243 8544 8244 8545 ; 8245 8546 return 0; 8246 8547 } 8247 8548 _ACEOF 8248 - if ac_fn_c_try_link "$LINENO"; then : 8549 + if ac_fn_c_try_link "$LINENO" 8550 + then : 8249 8551 eval $cacheid=yes 8250 - else 8552 + else $as_nop 8251 8553 eval $cacheid=no 8252 8554 fi 8253 - rm -f core conftest.err conftest.$ac_objext \ 8555 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8254 8556 conftest$ac_exeext conftest.$ac_ext 8255 8557 fi 8256 8558 ··· 8258 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8259 8561 8260 8562 eval supported=\$$cacheid 8261 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8262 - $as_echo "$supported" >&6; } 8563 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8564 + printf "%s\n" "$supported" >&6; } 8263 8565 if test "$supported" = "yes" ; then 8264 8566 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8265 8567 found="yes" ··· 8268 8570 8269 8571 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8270 8572 else 8271 - { $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 8272 - $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;} 8573 + { printf "%s\n" "$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 8574 + printf "%s\n" "$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;} 8273 8575 8274 8576 8275 8577 ··· 8287 8589 8288 8590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8289 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8291 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8292 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8293 - $as_echo_n "(cached) " >&6 8294 - else 8592 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8593 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8594 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8595 + then : 8596 + printf %s "(cached) " >&6 8597 + else $as_nop 8295 8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296 8599 /* end confdefs.h. */ 8297 8600 int i; 8298 8601 _ACEOF 8299 - if ac_fn_c_try_compile "$LINENO"; then : 8602 + if ac_fn_c_try_compile "$LINENO" 8603 + then : 8300 8604 xorg_cv_cc_flag_unknown_warning_option=yes 8301 - else 8605 + else $as_nop 8302 8606 xorg_cv_cc_flag_unknown_warning_option=no 8303 8607 fi 8304 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8608 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8305 8609 fi 8306 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8307 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8610 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8611 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8308 8612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8309 8613 CFLAGS="$xorg_testset_save_CFLAGS" 8310 8614 fi ··· 8314 8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 8619 fi 8316 8620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8317 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8318 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8319 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8320 - $as_echo_n "(cached) " >&6 8321 - else 8621 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8622 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8623 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8624 + then : 8625 + printf %s "(cached) " >&6 8626 + else $as_nop 8322 8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323 8628 /* end confdefs.h. */ 8324 8629 int i; 8325 8630 _ACEOF 8326 - if ac_fn_c_try_compile "$LINENO"; then : 8631 + if ac_fn_c_try_compile "$LINENO" 8632 + then : 8327 8633 xorg_cv_cc_flag_unused_command_line_argument=yes 8328 - else 8634 + else $as_nop 8329 8635 xorg_cv_cc_flag_unused_command_line_argument=no 8330 8636 fi 8331 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8637 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8332 8638 fi 8333 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8334 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8639 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8640 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8335 8641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8336 8642 CFLAGS="$xorg_testset_save_CFLAGS" 8337 8643 fi ··· 8349 8655 8350 8656 CFLAGS="$CFLAGS -Wimplicit" 8351 8657 8352 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8353 - $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8658 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8659 + printf %s "checking if $CC supports -Wimplicit... " >&6; } 8354 8660 cacheid=xorg_cv_cc_flag__Wimplicit 8355 - if eval \${$cacheid+:} false; then : 8356 - $as_echo_n "(cached) " >&6 8357 - else 8661 + if eval test \${$cacheid+y} 8662 + then : 8663 + printf %s "(cached) " >&6 8664 + else $as_nop 8358 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359 8666 /* end confdefs.h. */ 8360 8667 int i; 8361 8668 int 8362 - main () 8669 + main (void) 8363 8670 { 8364 8671 8365 8672 ; 8366 8673 return 0; 8367 8674 } 8368 8675 _ACEOF 8369 - if ac_fn_c_try_link "$LINENO"; then : 8676 + if ac_fn_c_try_link "$LINENO" 8677 + then : 8370 8678 eval $cacheid=yes 8371 - else 8679 + else $as_nop 8372 8680 eval $cacheid=no 8373 8681 fi 8374 - rm -f core conftest.err conftest.$ac_objext \ 8682 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8375 8683 conftest$ac_exeext conftest.$ac_ext 8376 8684 fi 8377 8685 ··· 8379 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8380 8688 8381 8689 eval supported=\$$cacheid 8382 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8383 - $as_echo "$supported" >&6; } 8690 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8691 + printf "%s\n" "$supported" >&6; } 8384 8692 if test "$supported" = "yes" ; then 8385 8693 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8386 8694 found="yes" ··· 8405 8713 8406 8714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8407 8715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8408 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8409 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8410 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8411 - $as_echo_n "(cached) " >&6 8412 - else 8716 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8717 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8718 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8719 + then : 8720 + printf %s "(cached) " >&6 8721 + else $as_nop 8413 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414 8723 /* end confdefs.h. */ 8415 8724 int i; 8416 8725 _ACEOF 8417 - if ac_fn_c_try_compile "$LINENO"; then : 8726 + if ac_fn_c_try_compile "$LINENO" 8727 + then : 8418 8728 xorg_cv_cc_flag_unknown_warning_option=yes 8419 - else 8729 + else $as_nop 8420 8730 xorg_cv_cc_flag_unknown_warning_option=no 8421 8731 fi 8422 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8732 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8423 8733 fi 8424 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8425 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8734 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8735 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8426 8736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8427 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8428 8738 fi ··· 8432 8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 8743 fi 8434 8744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8435 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8436 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8437 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8438 - $as_echo_n "(cached) " >&6 8439 - else 8745 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8746 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8747 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8748 + then : 8749 + printf %s "(cached) " >&6 8750 + else $as_nop 8440 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441 8752 /* end confdefs.h. */ 8442 8753 int i; 8443 8754 _ACEOF 8444 - if ac_fn_c_try_compile "$LINENO"; then : 8755 + if ac_fn_c_try_compile "$LINENO" 8756 + then : 8445 8757 xorg_cv_cc_flag_unused_command_line_argument=yes 8446 - else 8758 + else $as_nop 8447 8759 xorg_cv_cc_flag_unused_command_line_argument=no 8448 8760 fi 8449 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8450 8762 fi 8451 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8452 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8763 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8764 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8453 8765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8454 8766 CFLAGS="$xorg_testset_save_CFLAGS" 8455 8767 fi ··· 8467 8779 8468 8780 CFLAGS="$CFLAGS -Wnonnull" 8469 8781 8470 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8471 - $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8782 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8783 + printf %s "checking if $CC supports -Wnonnull... " >&6; } 8472 8784 cacheid=xorg_cv_cc_flag__Wnonnull 8473 - if eval \${$cacheid+:} false; then : 8474 - $as_echo_n "(cached) " >&6 8475 - else 8785 + if eval test \${$cacheid+y} 8786 + then : 8787 + printf %s "(cached) " >&6 8788 + else $as_nop 8476 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477 8790 /* end confdefs.h. */ 8478 8791 int i; 8479 8792 int 8480 - main () 8793 + main (void) 8481 8794 { 8482 8795 8483 8796 ; 8484 8797 return 0; 8485 8798 } 8486 8799 _ACEOF 8487 - if ac_fn_c_try_link "$LINENO"; then : 8800 + if ac_fn_c_try_link "$LINENO" 8801 + then : 8488 8802 eval $cacheid=yes 8489 - else 8803 + else $as_nop 8490 8804 eval $cacheid=no 8491 8805 fi 8492 - rm -f core conftest.err conftest.$ac_objext \ 8806 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8493 8807 conftest$ac_exeext conftest.$ac_ext 8494 8808 fi 8495 8809 ··· 8497 8811 CFLAGS="$xorg_testset_save_CFLAGS" 8498 8812 8499 8813 eval supported=\$$cacheid 8500 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8501 - $as_echo "$supported" >&6; } 8814 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8815 + printf "%s\n" "$supported" >&6; } 8502 8816 if test "$supported" = "yes" ; then 8503 8817 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8504 8818 found="yes" ··· 8523 8837 8524 8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525 8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8526 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8527 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8528 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8529 - $as_echo_n "(cached) " >&6 8530 - else 8840 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8841 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8842 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8843 + then : 8844 + printf %s "(cached) " >&6 8845 + else $as_nop 8531 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8532 8847 /* end confdefs.h. */ 8533 8848 int i; 8534 8849 _ACEOF 8535 - if ac_fn_c_try_compile "$LINENO"; then : 8850 + if ac_fn_c_try_compile "$LINENO" 8851 + then : 8536 8852 xorg_cv_cc_flag_unknown_warning_option=yes 8537 - else 8853 + else $as_nop 8538 8854 xorg_cv_cc_flag_unknown_warning_option=no 8539 8855 fi 8540 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8541 8857 fi 8542 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8543 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8858 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8859 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8544 8860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8545 8861 CFLAGS="$xorg_testset_save_CFLAGS" 8546 8862 fi ··· 8550 8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8551 8867 fi 8552 8868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8553 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8554 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8555 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8556 - $as_echo_n "(cached) " >&6 8557 - else 8869 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8870 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8871 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8872 + then : 8873 + printf %s "(cached) " >&6 8874 + else $as_nop 8558 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559 8876 /* end confdefs.h. */ 8560 8877 int i; 8561 8878 _ACEOF 8562 - if ac_fn_c_try_compile "$LINENO"; then : 8879 + if ac_fn_c_try_compile "$LINENO" 8880 + then : 8563 8881 xorg_cv_cc_flag_unused_command_line_argument=yes 8564 - else 8882 + else $as_nop 8565 8883 xorg_cv_cc_flag_unused_command_line_argument=no 8566 8884 fi 8567 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8885 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8568 8886 fi 8569 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8570 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8887 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8888 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8571 8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8572 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8573 8891 fi ··· 8585 8903 8586 8904 CFLAGS="$CFLAGS -Winit-self" 8587 8905 8588 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8589 - $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8906 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8907 + printf %s "checking if $CC supports -Winit-self... " >&6; } 8590 8908 cacheid=xorg_cv_cc_flag__Winit_self 8591 - if eval \${$cacheid+:} false; then : 8592 - $as_echo_n "(cached) " >&6 8593 - else 8909 + if eval test \${$cacheid+y} 8910 + then : 8911 + printf %s "(cached) " >&6 8912 + else $as_nop 8594 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595 8914 /* end confdefs.h. */ 8596 8915 int i; 8597 8916 int 8598 - main () 8917 + main (void) 8599 8918 { 8600 8919 8601 8920 ; 8602 8921 return 0; 8603 8922 } 8604 8923 _ACEOF 8605 - if ac_fn_c_try_link "$LINENO"; then : 8924 + if ac_fn_c_try_link "$LINENO" 8925 + then : 8606 8926 eval $cacheid=yes 8607 - else 8927 + else $as_nop 8608 8928 eval $cacheid=no 8609 8929 fi 8610 - rm -f core conftest.err conftest.$ac_objext \ 8930 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8611 8931 conftest$ac_exeext conftest.$ac_ext 8612 8932 fi 8613 8933 ··· 8615 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8616 8936 8617 8937 eval supported=\$$cacheid 8618 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8619 - $as_echo "$supported" >&6; } 8938 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8939 + printf "%s\n" "$supported" >&6; } 8620 8940 if test "$supported" = "yes" ; then 8621 8941 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8622 8942 found="yes" ··· 8641 8961 8642 8962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8643 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8644 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8645 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8646 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8647 - $as_echo_n "(cached) " >&6 8648 - else 8964 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8965 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8966 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8967 + then : 8968 + printf %s "(cached) " >&6 8969 + else $as_nop 8649 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650 8971 /* end confdefs.h. */ 8651 8972 int i; 8652 8973 _ACEOF 8653 - if ac_fn_c_try_compile "$LINENO"; then : 8974 + if ac_fn_c_try_compile "$LINENO" 8975 + then : 8654 8976 xorg_cv_cc_flag_unknown_warning_option=yes 8655 - else 8977 + else $as_nop 8656 8978 xorg_cv_cc_flag_unknown_warning_option=no 8657 8979 fi 8658 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8980 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8659 8981 fi 8660 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8661 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8983 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8662 8984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8663 8985 CFLAGS="$xorg_testset_save_CFLAGS" 8664 8986 fi ··· 8668 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8669 8991 fi 8670 8992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8671 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8672 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8673 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8674 - $as_echo_n "(cached) " >&6 8675 - else 8993 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8994 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8995 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8996 + then : 8997 + printf %s "(cached) " >&6 8998 + else $as_nop 8676 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677 9000 /* end confdefs.h. */ 8678 9001 int i; 8679 9002 _ACEOF 8680 - if ac_fn_c_try_compile "$LINENO"; then : 9003 + if ac_fn_c_try_compile "$LINENO" 9004 + then : 8681 9005 xorg_cv_cc_flag_unused_command_line_argument=yes 8682 - else 9006 + else $as_nop 8683 9007 xorg_cv_cc_flag_unused_command_line_argument=no 8684 9008 fi 8685 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9009 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8686 9010 fi 8687 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8688 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9011 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9012 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8689 9013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8690 9014 CFLAGS="$xorg_testset_save_CFLAGS" 8691 9015 fi ··· 8703 9027 8704 9028 CFLAGS="$CFLAGS -Wmain" 8705 9029 8706 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8707 - $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9030 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9031 + printf %s "checking if $CC supports -Wmain... " >&6; } 8708 9032 cacheid=xorg_cv_cc_flag__Wmain 8709 - if eval \${$cacheid+:} false; then : 8710 - $as_echo_n "(cached) " >&6 8711 - else 9033 + if eval test \${$cacheid+y} 9034 + then : 9035 + printf %s "(cached) " >&6 9036 + else $as_nop 8712 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713 9038 /* end confdefs.h. */ 8714 9039 int i; 8715 9040 int 8716 - main () 9041 + main (void) 8717 9042 { 8718 9043 8719 9044 ; 8720 9045 return 0; 8721 9046 } 8722 9047 _ACEOF 8723 - if ac_fn_c_try_link "$LINENO"; then : 9048 + if ac_fn_c_try_link "$LINENO" 9049 + then : 8724 9050 eval $cacheid=yes 8725 - else 9051 + else $as_nop 8726 9052 eval $cacheid=no 8727 9053 fi 8728 - rm -f core conftest.err conftest.$ac_objext \ 9054 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8729 9055 conftest$ac_exeext conftest.$ac_ext 8730 9056 fi 8731 9057 ··· 8733 9059 CFLAGS="$xorg_testset_save_CFLAGS" 8734 9060 8735 9061 eval supported=\$$cacheid 8736 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8737 - $as_echo "$supported" >&6; } 9062 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9063 + printf "%s\n" "$supported" >&6; } 8738 9064 if test "$supported" = "yes" ; then 8739 9065 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8740 9066 found="yes" ··· 8759 9085 8760 9086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8761 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8763 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8764 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8765 - $as_echo_n "(cached) " >&6 8766 - else 9088 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9089 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9090 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9091 + then : 9092 + printf %s "(cached) " >&6 9093 + else $as_nop 8767 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768 9095 /* end confdefs.h. */ 8769 9096 int i; 8770 9097 _ACEOF 8771 - if ac_fn_c_try_compile "$LINENO"; then : 9098 + if ac_fn_c_try_compile "$LINENO" 9099 + then : 8772 9100 xorg_cv_cc_flag_unknown_warning_option=yes 8773 - else 9101 + else $as_nop 8774 9102 xorg_cv_cc_flag_unknown_warning_option=no 8775 9103 fi 8776 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9104 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8777 9105 fi 8778 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8779 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9106 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9107 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8780 9108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8781 9109 CFLAGS="$xorg_testset_save_CFLAGS" 8782 9110 fi ··· 8786 9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8787 9115 fi 8788 9116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8790 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8791 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8792 - $as_echo_n "(cached) " >&6 8793 - else 9117 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9118 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9119 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9120 + then : 9121 + printf %s "(cached) " >&6 9122 + else $as_nop 8794 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795 9124 /* end confdefs.h. */ 8796 9125 int i; 8797 9126 _ACEOF 8798 - if ac_fn_c_try_compile "$LINENO"; then : 9127 + if ac_fn_c_try_compile "$LINENO" 9128 + then : 8799 9129 xorg_cv_cc_flag_unused_command_line_argument=yes 8800 - else 9130 + else $as_nop 8801 9131 xorg_cv_cc_flag_unused_command_line_argument=no 8802 9132 fi 8803 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9133 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8804 9134 fi 8805 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8806 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9135 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9136 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8807 9137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8808 9138 CFLAGS="$xorg_testset_save_CFLAGS" 8809 9139 fi ··· 8821 9151 8822 9152 CFLAGS="$CFLAGS -Wmissing-braces" 8823 9153 8824 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8825 - $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9154 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9155 + printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8826 9156 cacheid=xorg_cv_cc_flag__Wmissing_braces 8827 - if eval \${$cacheid+:} false; then : 8828 - $as_echo_n "(cached) " >&6 8829 - else 9157 + if eval test \${$cacheid+y} 9158 + then : 9159 + printf %s "(cached) " >&6 9160 + else $as_nop 8830 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831 9162 /* end confdefs.h. */ 8832 9163 int i; 8833 9164 int 8834 - main () 9165 + main (void) 8835 9166 { 8836 9167 8837 9168 ; 8838 9169 return 0; 8839 9170 } 8840 9171 _ACEOF 8841 - if ac_fn_c_try_link "$LINENO"; then : 9172 + if ac_fn_c_try_link "$LINENO" 9173 + then : 8842 9174 eval $cacheid=yes 8843 - else 9175 + else $as_nop 8844 9176 eval $cacheid=no 8845 9177 fi 8846 - rm -f core conftest.err conftest.$ac_objext \ 9178 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8847 9179 conftest$ac_exeext conftest.$ac_ext 8848 9180 fi 8849 9181 ··· 8851 9183 CFLAGS="$xorg_testset_save_CFLAGS" 8852 9184 8853 9185 eval supported=\$$cacheid 8854 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8855 - $as_echo "$supported" >&6; } 9186 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9187 + printf "%s\n" "$supported" >&6; } 8856 9188 if test "$supported" = "yes" ; then 8857 9189 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8858 9190 found="yes" ··· 8877 9209 8878 9210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8879 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8881 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8882 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8883 - $as_echo_n "(cached) " >&6 8884 - else 9212 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9213 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9214 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9215 + then : 9216 + printf %s "(cached) " >&6 9217 + else $as_nop 8885 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886 9219 /* end confdefs.h. */ 8887 9220 int i; 8888 9221 _ACEOF 8889 - if ac_fn_c_try_compile "$LINENO"; then : 9222 + if ac_fn_c_try_compile "$LINENO" 9223 + then : 8890 9224 xorg_cv_cc_flag_unknown_warning_option=yes 8891 - else 9225 + else $as_nop 8892 9226 xorg_cv_cc_flag_unknown_warning_option=no 8893 9227 fi 8894 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9228 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8895 9229 fi 8896 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8897 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9230 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9231 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8898 9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8899 9233 CFLAGS="$xorg_testset_save_CFLAGS" 8900 9234 fi ··· 8904 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 9239 fi 8906 9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8907 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8908 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8909 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8910 - $as_echo_n "(cached) " >&6 8911 - else 9241 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9242 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9243 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9244 + then : 9245 + printf %s "(cached) " >&6 9246 + else $as_nop 8912 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913 9248 /* end confdefs.h. */ 8914 9249 int i; 8915 9250 _ACEOF 8916 - if ac_fn_c_try_compile "$LINENO"; then : 9251 + if ac_fn_c_try_compile "$LINENO" 9252 + then : 8917 9253 xorg_cv_cc_flag_unused_command_line_argument=yes 8918 - else 9254 + else $as_nop 8919 9255 xorg_cv_cc_flag_unused_command_line_argument=no 8920 9256 fi 8921 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9257 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8922 9258 fi 8923 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8924 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9259 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9260 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8925 9261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8926 9262 CFLAGS="$xorg_testset_save_CFLAGS" 8927 9263 fi ··· 8939 9275 8940 9276 CFLAGS="$CFLAGS -Wsequence-point" 8941 9277 8942 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8943 - $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9278 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9279 + printf %s "checking if $CC supports -Wsequence-point... " >&6; } 8944 9280 cacheid=xorg_cv_cc_flag__Wsequence_point 8945 - if eval \${$cacheid+:} false; then : 8946 - $as_echo_n "(cached) " >&6 8947 - else 9281 + if eval test \${$cacheid+y} 9282 + then : 9283 + printf %s "(cached) " >&6 9284 + else $as_nop 8948 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8949 9286 /* end confdefs.h. */ 8950 9287 int i; 8951 9288 int 8952 - main () 9289 + main (void) 8953 9290 { 8954 9291 8955 9292 ; 8956 9293 return 0; 8957 9294 } 8958 9295 _ACEOF 8959 - if ac_fn_c_try_link "$LINENO"; then : 9296 + if ac_fn_c_try_link "$LINENO" 9297 + then : 8960 9298 eval $cacheid=yes 8961 - else 9299 + else $as_nop 8962 9300 eval $cacheid=no 8963 9301 fi 8964 - rm -f core conftest.err conftest.$ac_objext \ 9302 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8965 9303 conftest$ac_exeext conftest.$ac_ext 8966 9304 fi 8967 9305 ··· 8969 9307 CFLAGS="$xorg_testset_save_CFLAGS" 8970 9308 8971 9309 eval supported=\$$cacheid 8972 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8973 - $as_echo "$supported" >&6; } 9310 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9311 + printf "%s\n" "$supported" >&6; } 8974 9312 if test "$supported" = "yes" ; then 8975 9313 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8976 9314 found="yes" ··· 8995 9333 8996 9334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8997 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8999 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9000 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9001 - $as_echo_n "(cached) " >&6 9002 - else 9336 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9337 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9338 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9339 + then : 9340 + printf %s "(cached) " >&6 9341 + else $as_nop 9003 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004 9343 /* end confdefs.h. */ 9005 9344 int i; 9006 9345 _ACEOF 9007 - if ac_fn_c_try_compile "$LINENO"; then : 9346 + if ac_fn_c_try_compile "$LINENO" 9347 + then : 9008 9348 xorg_cv_cc_flag_unknown_warning_option=yes 9009 - else 9349 + else $as_nop 9010 9350 xorg_cv_cc_flag_unknown_warning_option=no 9011 9351 fi 9012 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9352 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9013 9353 fi 9014 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9015 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9354 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9355 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9016 9356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9017 9357 CFLAGS="$xorg_testset_save_CFLAGS" 9018 9358 fi ··· 9022 9362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9023 9363 fi 9024 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9026 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9027 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9028 - $as_echo_n "(cached) " >&6 9029 - else 9365 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9366 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9367 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9368 + then : 9369 + printf %s "(cached) " >&6 9370 + else $as_nop 9030 9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031 9372 /* end confdefs.h. */ 9032 9373 int i; 9033 9374 _ACEOF 9034 - if ac_fn_c_try_compile "$LINENO"; then : 9375 + if ac_fn_c_try_compile "$LINENO" 9376 + then : 9035 9377 xorg_cv_cc_flag_unused_command_line_argument=yes 9036 - else 9378 + else $as_nop 9037 9379 xorg_cv_cc_flag_unused_command_line_argument=no 9038 9380 fi 9039 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9381 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9040 9382 fi 9041 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9042 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9383 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9384 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9043 9385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9044 9386 CFLAGS="$xorg_testset_save_CFLAGS" 9045 9387 fi ··· 9057 9399 9058 9400 CFLAGS="$CFLAGS -Wreturn-type" 9059 9401 9060 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9061 - $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9402 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9403 + printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9062 9404 cacheid=xorg_cv_cc_flag__Wreturn_type 9063 - if eval \${$cacheid+:} false; then : 9064 - $as_echo_n "(cached) " >&6 9065 - else 9405 + if eval test \${$cacheid+y} 9406 + then : 9407 + printf %s "(cached) " >&6 9408 + else $as_nop 9066 9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067 9410 /* end confdefs.h. */ 9068 9411 int i; 9069 9412 int 9070 - main () 9413 + main (void) 9071 9414 { 9072 9415 9073 9416 ; 9074 9417 return 0; 9075 9418 } 9076 9419 _ACEOF 9077 - if ac_fn_c_try_link "$LINENO"; then : 9420 + if ac_fn_c_try_link "$LINENO" 9421 + then : 9078 9422 eval $cacheid=yes 9079 - else 9423 + else $as_nop 9080 9424 eval $cacheid=no 9081 9425 fi 9082 - rm -f core conftest.err conftest.$ac_objext \ 9426 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9083 9427 conftest$ac_exeext conftest.$ac_ext 9084 9428 fi 9085 9429 ··· 9087 9431 CFLAGS="$xorg_testset_save_CFLAGS" 9088 9432 9089 9433 eval supported=\$$cacheid 9090 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9091 - $as_echo "$supported" >&6; } 9434 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9435 + printf "%s\n" "$supported" >&6; } 9092 9436 if test "$supported" = "yes" ; then 9093 9437 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9094 9438 found="yes" ··· 9113 9457 9114 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9115 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9116 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9117 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9118 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9119 - $as_echo_n "(cached) " >&6 9120 - else 9460 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9461 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9462 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9463 + then : 9464 + printf %s "(cached) " >&6 9465 + else $as_nop 9121 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122 9467 /* end confdefs.h. */ 9123 9468 int i; 9124 9469 _ACEOF 9125 - if ac_fn_c_try_compile "$LINENO"; then : 9470 + if ac_fn_c_try_compile "$LINENO" 9471 + then : 9126 9472 xorg_cv_cc_flag_unknown_warning_option=yes 9127 - else 9473 + else $as_nop 9128 9474 xorg_cv_cc_flag_unknown_warning_option=no 9129 9475 fi 9130 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9476 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9131 9477 fi 9132 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9133 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9478 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9479 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9134 9480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9135 9481 CFLAGS="$xorg_testset_save_CFLAGS" 9136 9482 fi ··· 9140 9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9141 9487 fi 9142 9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9143 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9144 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9145 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9146 - $as_echo_n "(cached) " >&6 9147 - else 9489 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9490 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9491 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9492 + then : 9493 + printf %s "(cached) " >&6 9494 + else $as_nop 9148 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149 9496 /* end confdefs.h. */ 9150 9497 int i; 9151 9498 _ACEOF 9152 - if ac_fn_c_try_compile "$LINENO"; then : 9499 + if ac_fn_c_try_compile "$LINENO" 9500 + then : 9153 9501 xorg_cv_cc_flag_unused_command_line_argument=yes 9154 - else 9502 + else $as_nop 9155 9503 xorg_cv_cc_flag_unused_command_line_argument=no 9156 9504 fi 9157 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9505 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9158 9506 fi 9159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9160 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9507 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9508 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9161 9509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9162 9510 CFLAGS="$xorg_testset_save_CFLAGS" 9163 9511 fi ··· 9175 9523 9176 9524 CFLAGS="$CFLAGS -Wtrigraphs" 9177 9525 9178 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9179 - $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9526 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9527 + printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9180 9528 cacheid=xorg_cv_cc_flag__Wtrigraphs 9181 - if eval \${$cacheid+:} false; then : 9182 - $as_echo_n "(cached) " >&6 9183 - else 9529 + if eval test \${$cacheid+y} 9530 + then : 9531 + printf %s "(cached) " >&6 9532 + else $as_nop 9184 9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185 9534 /* end confdefs.h. */ 9186 9535 int i; 9187 9536 int 9188 - main () 9537 + main (void) 9189 9538 { 9190 9539 9191 9540 ; 9192 9541 return 0; 9193 9542 } 9194 9543 _ACEOF 9195 - if ac_fn_c_try_link "$LINENO"; then : 9544 + if ac_fn_c_try_link "$LINENO" 9545 + then : 9196 9546 eval $cacheid=yes 9197 - else 9547 + else $as_nop 9198 9548 eval $cacheid=no 9199 9549 fi 9200 - rm -f core conftest.err conftest.$ac_objext \ 9550 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9201 9551 conftest$ac_exeext conftest.$ac_ext 9202 9552 fi 9203 9553 ··· 9205 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9206 9556 9207 9557 eval supported=\$$cacheid 9208 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9209 - $as_echo "$supported" >&6; } 9558 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9559 + printf "%s\n" "$supported" >&6; } 9210 9560 if test "$supported" = "yes" ; then 9211 9561 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9212 9562 found="yes" ··· 9231 9581 9232 9582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9233 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9235 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9236 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9237 - $as_echo_n "(cached) " >&6 9238 - else 9584 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9585 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9586 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9587 + then : 9588 + printf %s "(cached) " >&6 9589 + else $as_nop 9239 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240 9591 /* end confdefs.h. */ 9241 9592 int i; 9242 9593 _ACEOF 9243 - if ac_fn_c_try_compile "$LINENO"; then : 9594 + if ac_fn_c_try_compile "$LINENO" 9595 + then : 9244 9596 xorg_cv_cc_flag_unknown_warning_option=yes 9245 - else 9597 + else $as_nop 9246 9598 xorg_cv_cc_flag_unknown_warning_option=no 9247 9599 fi 9248 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9600 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9249 9601 fi 9250 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9251 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9602 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9603 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9252 9604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9253 9605 CFLAGS="$xorg_testset_save_CFLAGS" 9254 9606 fi ··· 9258 9610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9259 9611 fi 9260 9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9261 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9262 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9263 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9264 - $as_echo_n "(cached) " >&6 9265 - else 9613 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9614 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9615 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9616 + then : 9617 + printf %s "(cached) " >&6 9618 + else $as_nop 9266 9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267 9620 /* end confdefs.h. */ 9268 9621 int i; 9269 9622 _ACEOF 9270 - if ac_fn_c_try_compile "$LINENO"; then : 9623 + if ac_fn_c_try_compile "$LINENO" 9624 + then : 9271 9625 xorg_cv_cc_flag_unused_command_line_argument=yes 9272 - else 9626 + else $as_nop 9273 9627 xorg_cv_cc_flag_unused_command_line_argument=no 9274 9628 fi 9275 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9629 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9276 9630 fi 9277 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9278 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9631 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9632 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9279 9633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9280 9634 CFLAGS="$xorg_testset_save_CFLAGS" 9281 9635 fi ··· 9293 9647 9294 9648 CFLAGS="$CFLAGS -Warray-bounds" 9295 9649 9296 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9297 - $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9650 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9651 + printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9298 9652 cacheid=xorg_cv_cc_flag__Warray_bounds 9299 - if eval \${$cacheid+:} false; then : 9300 - $as_echo_n "(cached) " >&6 9301 - else 9653 + if eval test \${$cacheid+y} 9654 + then : 9655 + printf %s "(cached) " >&6 9656 + else $as_nop 9302 9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303 9658 /* end confdefs.h. */ 9304 9659 int i; 9305 9660 int 9306 - main () 9661 + main (void) 9307 9662 { 9308 9663 9309 9664 ; 9310 9665 return 0; 9311 9666 } 9312 9667 _ACEOF 9313 - if ac_fn_c_try_link "$LINENO"; then : 9668 + if ac_fn_c_try_link "$LINENO" 9669 + then : 9314 9670 eval $cacheid=yes 9315 - else 9671 + else $as_nop 9316 9672 eval $cacheid=no 9317 9673 fi 9318 - rm -f core conftest.err conftest.$ac_objext \ 9674 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9319 9675 conftest$ac_exeext conftest.$ac_ext 9320 9676 fi 9321 9677 ··· 9323 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9324 9680 9325 9681 eval supported=\$$cacheid 9326 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9327 - $as_echo "$supported" >&6; } 9682 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9683 + printf "%s\n" "$supported" >&6; } 9328 9684 if test "$supported" = "yes" ; then 9329 9685 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9330 9686 found="yes" ··· 9349 9705 9350 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9351 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9353 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9354 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9355 - $as_echo_n "(cached) " >&6 9356 - else 9708 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9709 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9710 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9711 + then : 9712 + printf %s "(cached) " >&6 9713 + else $as_nop 9357 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358 9715 /* end confdefs.h. */ 9359 9716 int i; 9360 9717 _ACEOF 9361 - if ac_fn_c_try_compile "$LINENO"; then : 9718 + if ac_fn_c_try_compile "$LINENO" 9719 + then : 9362 9720 xorg_cv_cc_flag_unknown_warning_option=yes 9363 - else 9721 + else $as_nop 9364 9722 xorg_cv_cc_flag_unknown_warning_option=no 9365 9723 fi 9366 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9724 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9367 9725 fi 9368 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9369 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9726 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9727 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9370 9728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9371 9729 CFLAGS="$xorg_testset_save_CFLAGS" 9372 9730 fi ··· 9376 9734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9377 9735 fi 9378 9736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9379 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9380 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9381 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9382 - $as_echo_n "(cached) " >&6 9383 - else 9737 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9738 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9739 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9740 + then : 9741 + printf %s "(cached) " >&6 9742 + else $as_nop 9384 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385 9744 /* end confdefs.h. */ 9386 9745 int i; 9387 9746 _ACEOF 9388 - if ac_fn_c_try_compile "$LINENO"; then : 9747 + if ac_fn_c_try_compile "$LINENO" 9748 + then : 9389 9749 xorg_cv_cc_flag_unused_command_line_argument=yes 9390 - else 9750 + else $as_nop 9391 9751 xorg_cv_cc_flag_unused_command_line_argument=no 9392 9752 fi 9393 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9753 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9394 9754 fi 9395 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9396 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9755 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9756 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9397 9757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9398 9758 CFLAGS="$xorg_testset_save_CFLAGS" 9399 9759 fi ··· 9411 9771 9412 9772 CFLAGS="$CFLAGS -Wwrite-strings" 9413 9773 9414 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9415 - $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9774 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9775 + printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9416 9776 cacheid=xorg_cv_cc_flag__Wwrite_strings 9417 - if eval \${$cacheid+:} false; then : 9418 - $as_echo_n "(cached) " >&6 9419 - else 9777 + if eval test \${$cacheid+y} 9778 + then : 9779 + printf %s "(cached) " >&6 9780 + else $as_nop 9420 9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421 9782 /* end confdefs.h. */ 9422 9783 int i; 9423 9784 int 9424 - main () 9785 + main (void) 9425 9786 { 9426 9787 9427 9788 ; 9428 9789 return 0; 9429 9790 } 9430 9791 _ACEOF 9431 - if ac_fn_c_try_link "$LINENO"; then : 9792 + if ac_fn_c_try_link "$LINENO" 9793 + then : 9432 9794 eval $cacheid=yes 9433 - else 9795 + else $as_nop 9434 9796 eval $cacheid=no 9435 9797 fi 9436 - rm -f core conftest.err conftest.$ac_objext \ 9798 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9437 9799 conftest$ac_exeext conftest.$ac_ext 9438 9800 fi 9439 9801 ··· 9441 9803 CFLAGS="$xorg_testset_save_CFLAGS" 9442 9804 9443 9805 eval supported=\$$cacheid 9444 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9445 - $as_echo "$supported" >&6; } 9806 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9807 + printf "%s\n" "$supported" >&6; } 9446 9808 if test "$supported" = "yes" ; then 9447 9809 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9448 9810 found="yes" ··· 9467 9829 9468 9830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9469 9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9471 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9472 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9473 - $as_echo_n "(cached) " >&6 9474 - else 9832 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9833 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9834 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9835 + then : 9836 + printf %s "(cached) " >&6 9837 + else $as_nop 9475 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476 9839 /* end confdefs.h. */ 9477 9840 int i; 9478 9841 _ACEOF 9479 - if ac_fn_c_try_compile "$LINENO"; then : 9842 + if ac_fn_c_try_compile "$LINENO" 9843 + then : 9480 9844 xorg_cv_cc_flag_unknown_warning_option=yes 9481 - else 9845 + else $as_nop 9482 9846 xorg_cv_cc_flag_unknown_warning_option=no 9483 9847 fi 9484 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9485 9849 fi 9486 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9487 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9850 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9851 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9488 9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9489 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9490 9854 fi ··· 9494 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9495 9859 fi 9496 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9497 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9498 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9499 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9500 - $as_echo_n "(cached) " >&6 9501 - else 9861 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9862 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9863 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9864 + then : 9865 + printf %s "(cached) " >&6 9866 + else $as_nop 9502 9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503 9868 /* end confdefs.h. */ 9504 9869 int i; 9505 9870 _ACEOF 9506 - if ac_fn_c_try_compile "$LINENO"; then : 9871 + if ac_fn_c_try_compile "$LINENO" 9872 + then : 9507 9873 xorg_cv_cc_flag_unused_command_line_argument=yes 9508 - else 9874 + else $as_nop 9509 9875 xorg_cv_cc_flag_unused_command_line_argument=no 9510 9876 fi 9511 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9877 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9512 9878 fi 9513 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9514 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9879 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9880 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9515 9881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9516 9882 CFLAGS="$xorg_testset_save_CFLAGS" 9517 9883 fi ··· 9529 9895 9530 9896 CFLAGS="$CFLAGS -Waddress" 9531 9897 9532 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9533 - $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9898 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9899 + printf %s "checking if $CC supports -Waddress... " >&6; } 9534 9900 cacheid=xorg_cv_cc_flag__Waddress 9535 - if eval \${$cacheid+:} false; then : 9536 - $as_echo_n "(cached) " >&6 9537 - else 9901 + if eval test \${$cacheid+y} 9902 + then : 9903 + printf %s "(cached) " >&6 9904 + else $as_nop 9538 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539 9906 /* end confdefs.h. */ 9540 9907 int i; 9541 9908 int 9542 - main () 9909 + main (void) 9543 9910 { 9544 9911 9545 9912 ; 9546 9913 return 0; 9547 9914 } 9548 9915 _ACEOF 9549 - if ac_fn_c_try_link "$LINENO"; then : 9916 + if ac_fn_c_try_link "$LINENO" 9917 + then : 9550 9918 eval $cacheid=yes 9551 - else 9919 + else $as_nop 9552 9920 eval $cacheid=no 9553 9921 fi 9554 - rm -f core conftest.err conftest.$ac_objext \ 9922 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9555 9923 conftest$ac_exeext conftest.$ac_ext 9556 9924 fi 9557 9925 ··· 9559 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9560 9928 9561 9929 eval supported=\$$cacheid 9562 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9563 - $as_echo "$supported" >&6; } 9930 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9931 + printf "%s\n" "$supported" >&6; } 9564 9932 if test "$supported" = "yes" ; then 9565 9933 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9566 9934 found="yes" ··· 9585 9953 9586 9954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9587 9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9589 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9590 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9591 - $as_echo_n "(cached) " >&6 9592 - else 9956 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9957 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9958 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9959 + then : 9960 + printf %s "(cached) " >&6 9961 + else $as_nop 9593 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594 9963 /* end confdefs.h. */ 9595 9964 int i; 9596 9965 _ACEOF 9597 - if ac_fn_c_try_compile "$LINENO"; then : 9966 + if ac_fn_c_try_compile "$LINENO" 9967 + then : 9598 9968 xorg_cv_cc_flag_unknown_warning_option=yes 9599 - else 9969 + else $as_nop 9600 9970 xorg_cv_cc_flag_unknown_warning_option=no 9601 9971 fi 9602 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9603 9973 fi 9604 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9605 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9974 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9975 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9606 9976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9607 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9608 9978 fi ··· 9612 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9613 9983 fi 9614 9984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9615 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9616 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9617 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9618 - $as_echo_n "(cached) " >&6 9619 - else 9985 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9986 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9987 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9988 + then : 9989 + printf %s "(cached) " >&6 9990 + else $as_nop 9620 9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621 9992 /* end confdefs.h. */ 9622 9993 int i; 9623 9994 _ACEOF 9624 - if ac_fn_c_try_compile "$LINENO"; then : 9995 + if ac_fn_c_try_compile "$LINENO" 9996 + then : 9625 9997 xorg_cv_cc_flag_unused_command_line_argument=yes 9626 - else 9998 + else $as_nop 9627 9999 xorg_cv_cc_flag_unused_command_line_argument=no 9628 10000 fi 9629 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10001 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9630 10002 fi 9631 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9632 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10003 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10004 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9633 10005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9634 10006 CFLAGS="$xorg_testset_save_CFLAGS" 9635 10007 fi ··· 9647 10019 9648 10020 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9649 10021 9650 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9651 - $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10022 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10023 + printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9652 10024 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9653 - if eval \${$cacheid+:} false; then : 9654 - $as_echo_n "(cached) " >&6 9655 - else 10025 + if eval test \${$cacheid+y} 10026 + then : 10027 + printf %s "(cached) " >&6 10028 + else $as_nop 9656 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657 10030 /* end confdefs.h. */ 9658 10031 int i; 9659 10032 int 9660 - main () 10033 + main (void) 9661 10034 { 9662 10035 9663 10036 ; 9664 10037 return 0; 9665 10038 } 9666 10039 _ACEOF 9667 - if ac_fn_c_try_link "$LINENO"; then : 10040 + if ac_fn_c_try_link "$LINENO" 10041 + then : 9668 10042 eval $cacheid=yes 9669 - else 10043 + else $as_nop 9670 10044 eval $cacheid=no 9671 10045 fi 9672 - rm -f core conftest.err conftest.$ac_objext \ 10046 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9673 10047 conftest$ac_exeext conftest.$ac_ext 9674 10048 fi 9675 10049 ··· 9677 10051 CFLAGS="$xorg_testset_save_CFLAGS" 9678 10052 9679 10053 eval supported=\$$cacheid 9680 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9681 - $as_echo "$supported" >&6; } 10054 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10055 + printf "%s\n" "$supported" >&6; } 9682 10056 if test "$supported" = "yes" ; then 9683 10057 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9684 10058 found="yes" ··· 9703 10077 9704 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9705 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9706 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9707 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9708 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9709 - $as_echo_n "(cached) " >&6 9710 - else 10080 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10081 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10082 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10083 + then : 10084 + printf %s "(cached) " >&6 10085 + else $as_nop 9711 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712 10087 /* end confdefs.h. */ 9713 10088 int i; 9714 10089 _ACEOF 9715 - if ac_fn_c_try_compile "$LINENO"; then : 10090 + if ac_fn_c_try_compile "$LINENO" 10091 + then : 9716 10092 xorg_cv_cc_flag_unknown_warning_option=yes 9717 - else 10093 + else $as_nop 9718 10094 xorg_cv_cc_flag_unknown_warning_option=no 9719 10095 fi 9720 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10096 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9721 10097 fi 9722 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9723 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10098 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10099 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9724 10100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9725 10101 CFLAGS="$xorg_testset_save_CFLAGS" 9726 10102 fi ··· 9730 10106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9731 10107 fi 9732 10108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9733 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9734 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9735 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9736 - $as_echo_n "(cached) " >&6 9737 - else 10109 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10110 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10111 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10112 + then : 10113 + printf %s "(cached) " >&6 10114 + else $as_nop 9738 10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739 10116 /* end confdefs.h. */ 9740 10117 int i; 9741 10118 _ACEOF 9742 - if ac_fn_c_try_compile "$LINENO"; then : 10119 + if ac_fn_c_try_compile "$LINENO" 10120 + then : 9743 10121 xorg_cv_cc_flag_unused_command_line_argument=yes 9744 - else 10122 + else $as_nop 9745 10123 xorg_cv_cc_flag_unused_command_line_argument=no 9746 10124 fi 9747 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10125 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9748 10126 fi 9749 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9750 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10127 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10128 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9751 10129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9752 10130 CFLAGS="$xorg_testset_save_CFLAGS" 9753 10131 fi ··· 9765 10143 9766 10144 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9767 10145 9768 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9769 - $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10146 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10147 + printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9770 10148 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9771 - if eval \${$cacheid+:} false; then : 9772 - $as_echo_n "(cached) " >&6 9773 - else 10149 + if eval test \${$cacheid+y} 10150 + then : 10151 + printf %s "(cached) " >&6 10152 + else $as_nop 9774 10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775 10154 /* end confdefs.h. */ 9776 10155 int i; 9777 10156 int 9778 - main () 10157 + main (void) 9779 10158 { 9780 10159 9781 10160 ; 9782 10161 return 0; 9783 10162 } 9784 10163 _ACEOF 9785 - if ac_fn_c_try_link "$LINENO"; then : 10164 + if ac_fn_c_try_link "$LINENO" 10165 + then : 9786 10166 eval $cacheid=yes 9787 - else 10167 + else $as_nop 9788 10168 eval $cacheid=no 9789 10169 fi 9790 - rm -f core conftest.err conftest.$ac_objext \ 10170 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9791 10171 conftest$ac_exeext conftest.$ac_ext 9792 10172 fi 9793 10173 ··· 9795 10175 CFLAGS="$xorg_testset_save_CFLAGS" 9796 10176 9797 10177 eval supported=\$$cacheid 9798 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9799 - $as_echo "$supported" >&6; } 10178 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10179 + printf "%s\n" "$supported" >&6; } 9800 10180 if test "$supported" = "yes" ; then 9801 10181 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9802 10182 found="yes" ··· 9825 10205 9826 10206 9827 10207 # Check whether --enable-strict-compilation was given. 9828 - if test "${enable_strict_compilation+set}" = set; then : 10208 + if test ${enable_strict_compilation+y} 10209 + then : 9829 10210 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9830 - else 10211 + else $as_nop 9831 10212 STRICT_COMPILE=no 9832 10213 fi 9833 10214 ··· 9854 10235 9855 10236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9856 10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9857 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9858 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9859 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9860 - $as_echo_n "(cached) " >&6 9861 - else 10238 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10239 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10240 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10241 + then : 10242 + printf %s "(cached) " >&6 10243 + else $as_nop 9862 10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863 10245 /* end confdefs.h. */ 9864 10246 int i; 9865 10247 _ACEOF 9866 - if ac_fn_c_try_compile "$LINENO"; then : 10248 + if ac_fn_c_try_compile "$LINENO" 10249 + then : 9867 10250 xorg_cv_cc_flag_unknown_warning_option=yes 9868 - else 10251 + else $as_nop 9869 10252 xorg_cv_cc_flag_unknown_warning_option=no 9870 10253 fi 9871 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10254 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9872 10255 fi 9873 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9874 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10256 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10257 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9875 10258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9876 10259 CFLAGS="$xorg_testset_save_CFLAGS" 9877 10260 fi ··· 9881 10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9882 10265 fi 9883 10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9884 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9885 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9886 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9887 - $as_echo_n "(cached) " >&6 9888 - else 10267 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10268 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10269 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10270 + then : 10271 + printf %s "(cached) " >&6 10272 + else $as_nop 9889 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890 10274 /* end confdefs.h. */ 9891 10275 int i; 9892 10276 _ACEOF 9893 - if ac_fn_c_try_compile "$LINENO"; then : 10277 + if ac_fn_c_try_compile "$LINENO" 10278 + then : 9894 10279 xorg_cv_cc_flag_unused_command_line_argument=yes 9895 - else 10280 + else $as_nop 9896 10281 xorg_cv_cc_flag_unused_command_line_argument=no 9897 10282 fi 9898 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10283 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9899 10284 fi 9900 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9901 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10285 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10286 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9902 10287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9903 10288 CFLAGS="$xorg_testset_save_CFLAGS" 9904 10289 fi ··· 9916 10301 9917 10302 CFLAGS="$CFLAGS -pedantic" 9918 10303 9919 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9920 - $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10304 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10305 + printf %s "checking if $CC supports -pedantic... " >&6; } 9921 10306 cacheid=xorg_cv_cc_flag__pedantic 9922 - if eval \${$cacheid+:} false; then : 9923 - $as_echo_n "(cached) " >&6 9924 - else 10307 + if eval test \${$cacheid+y} 10308 + then : 10309 + printf %s "(cached) " >&6 10310 + else $as_nop 9925 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926 10312 /* end confdefs.h. */ 9927 10313 int i; 9928 10314 int 9929 - main () 10315 + main (void) 9930 10316 { 9931 10317 9932 10318 ; 9933 10319 return 0; 9934 10320 } 9935 10321 _ACEOF 9936 - if ac_fn_c_try_link "$LINENO"; then : 10322 + if ac_fn_c_try_link "$LINENO" 10323 + then : 9937 10324 eval $cacheid=yes 9938 - else 10325 + else $as_nop 9939 10326 eval $cacheid=no 9940 10327 fi 9941 - rm -f core conftest.err conftest.$ac_objext \ 10328 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9942 10329 conftest$ac_exeext conftest.$ac_ext 9943 10330 fi 9944 10331 ··· 9946 10333 CFLAGS="$xorg_testset_save_CFLAGS" 9947 10334 9948 10335 eval supported=\$$cacheid 9949 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9950 - $as_echo "$supported" >&6; } 10336 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10337 + printf "%s\n" "$supported" >&6; } 9951 10338 if test "$supported" = "yes" ; then 9952 10339 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9953 10340 found="yes" ··· 9972 10359 9973 10360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9974 10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9976 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9977 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9978 - $as_echo_n "(cached) " >&6 9979 - else 10362 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10363 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10364 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10365 + then : 10366 + printf %s "(cached) " >&6 10367 + else $as_nop 9980 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981 10369 /* end confdefs.h. */ 9982 10370 int i; 9983 10371 _ACEOF 9984 - if ac_fn_c_try_compile "$LINENO"; then : 10372 + if ac_fn_c_try_compile "$LINENO" 10373 + then : 9985 10374 xorg_cv_cc_flag_unknown_warning_option=yes 9986 - else 10375 + else $as_nop 9987 10376 xorg_cv_cc_flag_unknown_warning_option=no 9988 10377 fi 9989 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10378 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9990 10379 fi 9991 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9992 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10380 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10381 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9993 10382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9994 10383 CFLAGS="$xorg_testset_save_CFLAGS" 9995 10384 fi ··· 9999 10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10000 10389 fi 10001 10390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10002 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10003 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10004 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10005 - $as_echo_n "(cached) " >&6 10006 - else 10391 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10392 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10393 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10394 + then : 10395 + printf %s "(cached) " >&6 10396 + else $as_nop 10007 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008 10398 /* end confdefs.h. */ 10009 10399 int i; 10010 10400 _ACEOF 10011 - if ac_fn_c_try_compile "$LINENO"; then : 10401 + if ac_fn_c_try_compile "$LINENO" 10402 + then : 10012 10403 xorg_cv_cc_flag_unused_command_line_argument=yes 10013 - else 10404 + else $as_nop 10014 10405 xorg_cv_cc_flag_unused_command_line_argument=no 10015 10406 fi 10016 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10407 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10017 10408 fi 10018 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10019 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10409 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10410 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10020 10411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10021 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10022 10413 fi ··· 10034 10425 10035 10426 CFLAGS="$CFLAGS -Werror" 10036 10427 10037 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10038 - $as_echo_n "checking if $CC supports -Werror... " >&6; } 10428 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10429 + printf %s "checking if $CC supports -Werror... " >&6; } 10039 10430 cacheid=xorg_cv_cc_flag__Werror 10040 - if eval \${$cacheid+:} false; then : 10041 - $as_echo_n "(cached) " >&6 10042 - else 10431 + if eval test \${$cacheid+y} 10432 + then : 10433 + printf %s "(cached) " >&6 10434 + else $as_nop 10043 10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044 10436 /* end confdefs.h. */ 10045 10437 int i; 10046 10438 int 10047 - main () 10439 + main (void) 10048 10440 { 10049 10441 10050 10442 ; 10051 10443 return 0; 10052 10444 } 10053 10445 _ACEOF 10054 - if ac_fn_c_try_link "$LINENO"; then : 10446 + if ac_fn_c_try_link "$LINENO" 10447 + then : 10055 10448 eval $cacheid=yes 10056 - else 10449 + else $as_nop 10057 10450 eval $cacheid=no 10058 10451 fi 10059 - rm -f core conftest.err conftest.$ac_objext \ 10452 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10060 10453 conftest$ac_exeext conftest.$ac_ext 10061 10454 fi 10062 10455 ··· 10064 10457 CFLAGS="$xorg_testset_save_CFLAGS" 10065 10458 10066 10459 eval supported=\$$cacheid 10067 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10068 - $as_echo "$supported" >&6; } 10460 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10461 + printf "%s\n" "$supported" >&6; } 10069 10462 if test "$supported" = "yes" ; then 10070 10463 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10071 10464 found="yes" ··· 10083 10476 10084 10477 CFLAGS="$CFLAGS -errwarn" 10085 10478 10086 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10087 - $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10479 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10480 + printf %s "checking if $CC supports -errwarn... " >&6; } 10088 10481 cacheid=xorg_cv_cc_flag__errwarn 10089 - if eval \${$cacheid+:} false; then : 10090 - $as_echo_n "(cached) " >&6 10091 - else 10482 + if eval test \${$cacheid+y} 10483 + then : 10484 + printf %s "(cached) " >&6 10485 + else $as_nop 10092 10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093 10487 /* end confdefs.h. */ 10094 10488 int i; 10095 10489 int 10096 - main () 10490 + main (void) 10097 10491 { 10098 10492 10099 10493 ; 10100 10494 return 0; 10101 10495 } 10102 10496 _ACEOF 10103 - if ac_fn_c_try_link "$LINENO"; then : 10497 + if ac_fn_c_try_link "$LINENO" 10498 + then : 10104 10499 eval $cacheid=yes 10105 - else 10500 + else $as_nop 10106 10501 eval $cacheid=no 10107 10502 fi 10108 - rm -f core conftest.err conftest.$ac_objext \ 10503 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10109 10504 conftest$ac_exeext conftest.$ac_ext 10110 10505 fi 10111 10506 ··· 10113 10508 CFLAGS="$xorg_testset_save_CFLAGS" 10114 10509 10115 10510 eval supported=\$$cacheid 10116 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10117 - $as_echo "$supported" >&6; } 10511 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10512 + printf "%s\n" "$supported" >&6; } 10118 10513 if test "$supported" = "yes" ; then 10119 10514 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10120 10515 found="yes" ··· 10142 10537 10143 10538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10144 10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10146 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10147 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10148 - $as_echo_n "(cached) " >&6 10149 - else 10540 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10541 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10542 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10543 + then : 10544 + printf %s "(cached) " >&6 10545 + else $as_nop 10150 10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151 10547 /* end confdefs.h. */ 10152 10548 int i; 10153 10549 _ACEOF 10154 - if ac_fn_c_try_compile "$LINENO"; then : 10550 + if ac_fn_c_try_compile "$LINENO" 10551 + then : 10155 10552 xorg_cv_cc_flag_unknown_warning_option=yes 10156 - else 10553 + else $as_nop 10157 10554 xorg_cv_cc_flag_unknown_warning_option=no 10158 10555 fi 10159 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10556 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10160 10557 fi 10161 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10162 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10558 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10559 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10163 10560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10164 10561 CFLAGS="$xorg_testset_save_CFLAGS" 10165 10562 fi ··· 10169 10566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10170 10567 fi 10171 10568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10172 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10173 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10174 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10175 - $as_echo_n "(cached) " >&6 10176 - else 10569 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10570 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10571 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10572 + then : 10573 + printf %s "(cached) " >&6 10574 + else $as_nop 10177 10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178 10576 /* end confdefs.h. */ 10179 10577 int i; 10180 10578 _ACEOF 10181 - if ac_fn_c_try_compile "$LINENO"; then : 10579 + if ac_fn_c_try_compile "$LINENO" 10580 + then : 10182 10581 xorg_cv_cc_flag_unused_command_line_argument=yes 10183 - else 10582 + else $as_nop 10184 10583 xorg_cv_cc_flag_unused_command_line_argument=no 10185 10584 fi 10186 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10585 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10187 10586 fi 10188 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10189 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10587 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10588 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10190 10589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10191 10590 CFLAGS="$xorg_testset_save_CFLAGS" 10192 10591 fi ··· 10204 10603 10205 10604 CFLAGS="$CFLAGS -Werror=attributes" 10206 10605 10207 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10208 - $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10606 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10607 + printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10209 10608 cacheid=xorg_cv_cc_flag__Werror_attributes 10210 - if eval \${$cacheid+:} false; then : 10211 - $as_echo_n "(cached) " >&6 10212 - else 10609 + if eval test \${$cacheid+y} 10610 + then : 10611 + printf %s "(cached) " >&6 10612 + else $as_nop 10213 10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214 10614 /* end confdefs.h. */ 10215 10615 int i; 10216 10616 int 10217 - main () 10617 + main (void) 10218 10618 { 10219 10619 10220 10620 ; 10221 10621 return 0; 10222 10622 } 10223 10623 _ACEOF 10224 - if ac_fn_c_try_link "$LINENO"; then : 10624 + if ac_fn_c_try_link "$LINENO" 10625 + then : 10225 10626 eval $cacheid=yes 10226 - else 10627 + else $as_nop 10227 10628 eval $cacheid=no 10228 10629 fi 10229 - rm -f core conftest.err conftest.$ac_objext \ 10630 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10230 10631 conftest$ac_exeext conftest.$ac_ext 10231 10632 fi 10232 10633 ··· 10234 10635 CFLAGS="$xorg_testset_save_CFLAGS" 10235 10636 10236 10637 eval supported=\$$cacheid 10237 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10238 - $as_echo "$supported" >&6; } 10638 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10639 + printf "%s\n" "$supported" >&6; } 10239 10640 if test "$supported" = "yes" ; then 10240 10641 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10241 10642 found="yes" ··· 10248 10649 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10249 10650 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10250 10651 fi 10652 + 10653 + 10251 10654 10252 10655 10253 10656 ··· 10263 10666 PVM="0" 10264 10667 fi 10265 10668 10266 - cat >>confdefs.h <<_ACEOF 10267 - #define PACKAGE_VERSION_MINOR $PVM 10268 - _ACEOF 10669 + printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10269 10670 10270 10671 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10271 10672 if test "x$PVP" = "x"; then 10272 10673 PVP="0" 10273 10674 fi 10274 10675 10275 - cat >>confdefs.h <<_ACEOF 10276 - #define PACKAGE_VERSION_PATCHLEVEL $PVP 10277 - _ACEOF 10676 + printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10278 10677 10279 10678 10280 10679 ··· 10304 10703 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10305 10704 # check for a man page file found in later versions that use 10306 10705 # traditional section numbers instead 10307 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10308 - $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10309 - if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10310 - $as_echo_n "(cached) " >&6 10311 - else 10706 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10707 + printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10708 + if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10709 + then : 10710 + printf %s "(cached) " >&6 10711 + else $as_nop 10312 10712 test "$cross_compiling" = yes && 10313 10713 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10314 10714 if test -r "/usr/share/man/man7/attributes.7"; then ··· 10317 10717 ac_cv_file__usr_share_man_man7_attributes_7=no 10318 10718 fi 10319 10719 fi 10320 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10321 - $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10322 - if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10720 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10721 + printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10722 + if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10723 + then : 10323 10724 SYSV_MAN_SECTIONS=false 10324 - else 10725 + else $as_nop 10325 10726 SYSV_MAN_SECTIONS=true 10326 10727 fi 10327 10728 ··· 10416 10817 10417 10818 10418 10819 # Check whether --enable-silent-rules was given. 10419 - if test "${enable_silent_rules+set}" = set; then : 10820 + if test ${enable_silent_rules+y} 10821 + then : 10420 10822 enableval=$enable_silent_rules; 10421 10823 fi 10422 10824 ··· 10426 10828 *) AM_DEFAULT_VERBOSITY=0;; 10427 10829 esac 10428 10830 am_make=${MAKE-make} 10429 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10430 - $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10431 - if ${am_cv_make_support_nested_variables+:} false; then : 10432 - $as_echo_n "(cached) " >&6 10433 - else 10434 - if $as_echo 'TRUE=$(BAR$(V)) 10831 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10832 + printf %s "checking whether $am_make supports nested variables... " >&6; } 10833 + if test ${am_cv_make_support_nested_variables+y} 10834 + then : 10835 + printf %s "(cached) " >&6 10836 + else $as_nop 10837 + if printf "%s\n" 'TRUE=$(BAR$(V)) 10435 10838 BAR0=false 10436 10839 BAR1=true 10437 10840 V=1 ··· 10443 10846 am_cv_make_support_nested_variables=no 10444 10847 fi 10445 10848 fi 10446 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10447 - $as_echo "$am_cv_make_support_nested_variables" >&6; } 10849 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10850 + printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10448 10851 if test $am_cv_make_support_nested_variables = yes; then 10449 10852 AM_V='$(V)' 10450 10853 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' ··· 10456 10859 10457 10860 10458 10861 10862 + 10459 10863 # Checks for pkg-config packages 10460 10864 10461 10865 pkg_failed=no 10462 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" >&5 10463 - $as_echo_n "checking for xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17... " >&6; } 10866 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" >&5 10867 + printf %s "checking for xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17... " >&6; } 10464 10868 10465 10869 if test -n "$XEYES_CFLAGS"; then 10466 10870 pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS" 10467 10871 elif test -n "$PKG_CONFIG"; then 10468 10872 if test -n "$PKG_CONFIG" && \ 10469 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 10873 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 10470 10874 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5 10471 10875 ac_status=$? 10472 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10876 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10473 10877 test $ac_status = 0; }; then 10474 10878 pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null` 10475 10879 test "x$?" != "x0" && pkg_failed=yes ··· 10483 10887 pkg_cv_XEYES_LIBS="$XEYES_LIBS" 10484 10888 elif test -n "$PKG_CONFIG"; then 10485 10889 if test -n "$PKG_CONFIG" && \ 10486 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 10890 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 10487 10891 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5 10488 10892 ac_status=$? 10489 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10893 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10490 10894 test $ac_status = 0; }; then 10491 10895 pkg_cv_XEYES_LIBS=`$PKG_CONFIG --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null` 10492 10896 test "x$?" != "x0" && pkg_failed=yes ··· 10500 10904 10501 10905 10502 10906 if test $pkg_failed = yes; then 10503 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10504 - $as_echo "no" >&6; } 10907 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10908 + printf "%s\n" "no" >&6; } 10505 10909 10506 10910 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10507 10911 _pkg_short_errors_supported=yes ··· 10527 10931 and XEYES_LIBS to avoid the need to call pkg-config. 10528 10932 See the pkg-config man page for more details." "$LINENO" 5 10529 10933 elif test $pkg_failed = untried; then 10530 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10531 - $as_echo "no" >&6; } 10532 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10533 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10934 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10935 + printf "%s\n" "no" >&6; } 10936 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10937 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10534 10938 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10535 10939 is in your PATH or set the PKG_CONFIG environment variable to the full 10536 10940 path to pkg-config. ··· 10544 10948 else 10545 10949 XEYES_CFLAGS=$pkg_cv_XEYES_CFLAGS 10546 10950 XEYES_LIBS=$pkg_cv_XEYES_LIBS 10547 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10548 - $as_echo "yes" >&6; } 10951 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10952 + printf "%s\n" "yes" >&6; } 10549 10953 10550 10954 fi 10551 10955 10552 10956 10553 10957 # Check whether --with-xrender was given. 10554 - if test "${with_xrender+set}" = set; then : 10958 + if test ${with_xrender+y} 10959 + then : 10555 10960 withval=$with_xrender; use_xrender="$withval" 10556 - else 10961 + else $as_nop 10557 10962 use_xrender="try" 10558 10963 fi 10559 10964 10560 10965 if test x$use_xrender != xno ; then 10561 10966 10562 10967 pkg_failed=no 10563 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.4" >&5 10564 - $as_echo_n "checking for xrender >= 0.4... " >&6; } 10968 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.4" >&5 10969 + printf %s "checking for xrender >= 0.4... " >&6; } 10565 10970 10566 10971 if test -n "$XRENDER_CFLAGS"; then 10567 10972 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 10568 10973 elif test -n "$PKG_CONFIG"; then 10569 10974 if test -n "$PKG_CONFIG" && \ 10570 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 10975 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 10571 10976 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5 10572 10977 ac_status=$? 10573 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10978 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10574 10979 test $ac_status = 0; }; then 10575 10980 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.4" 2>/dev/null` 10576 10981 test "x$?" != "x0" && pkg_failed=yes ··· 10584 10989 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 10585 10990 elif test -n "$PKG_CONFIG"; then 10586 10991 if test -n "$PKG_CONFIG" && \ 10587 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 10992 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 10588 10993 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5 10589 10994 ac_status=$? 10590 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10995 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10591 10996 test $ac_status = 0; }; then 10592 10997 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.4" 2>/dev/null` 10593 10998 test "x$?" != "x0" && pkg_failed=yes ··· 10601 11006 10602 11007 10603 11008 if test $pkg_failed = yes; then 10604 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10605 - $as_echo "no" >&6; } 11009 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010 + printf "%s\n" "no" >&6; } 10606 11011 10607 11012 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10608 11013 _pkg_short_errors_supported=yes ··· 10628 11033 and XRENDER_LIBS to avoid the need to call pkg-config. 10629 11034 See the pkg-config man page for more details." "$LINENO" 5 10630 11035 elif test $pkg_failed = untried; then 10631 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10632 - $as_echo "no" >&6; } 10633 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10634 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11036 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11037 + printf "%s\n" "no" >&6; } 11038 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11039 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10635 11040 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10636 11041 is in your PATH or set the PKG_CONFIG environment variable to the full 10637 11042 path to pkg-config. ··· 10645 11050 else 10646 11051 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 10647 11052 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 10648 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10649 - $as_echo "yes" >&6; } 11053 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11054 + printf "%s\n" "yes" >&6; } 10650 11055 10651 11056 fi 10652 11057 10653 - $as_echo "#define XRENDER 1" >>confdefs.h 11058 + printf "%s\n" "#define XRENDER 1" >>confdefs.h 10654 11059 10655 11060 fi 10656 11061 10657 11062 10658 11063 # Check whether --with-present was given. 10659 - if test "${with_present+set}" = set; then : 11064 + if test ${with_present+y} 11065 + then : 10660 11066 withval=$with_present; use_present="$withval" 10661 - else 11067 + else $as_nop 10662 11068 use_present="try" 10663 11069 fi 10664 11070 10665 11071 if test x$use_present != xno ; then 10666 11072 10667 11073 pkg_failed=no 10668 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" >&5 10669 - $as_echo_n "checking for x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage... " >&6; } 11074 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" >&5 11075 + printf %s "checking for x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage... " >&6; } 10670 11076 10671 11077 if test -n "$PRESENT_CFLAGS"; then 10672 11078 pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS" 10673 11079 elif test -n "$PKG_CONFIG"; then 10674 11080 if test -n "$PKG_CONFIG" && \ 10675 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 11081 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 10676 11082 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5 10677 11083 ac_status=$? 10678 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11084 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10679 11085 test $ac_status = 0; }; then 10680 11086 pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null` 10681 11087 test "x$?" != "x0" && pkg_failed=yes ··· 10689 11095 pkg_cv_PRESENT_LIBS="$PRESENT_LIBS" 10690 11096 elif test -n "$PKG_CONFIG"; then 10691 11097 if test -n "$PKG_CONFIG" && \ 10692 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 11098 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 10693 11099 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5 10694 11100 ac_status=$? 10695 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11101 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10696 11102 test $ac_status = 0; }; then 10697 11103 pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null` 10698 11104 test "x$?" != "x0" && pkg_failed=yes ··· 10706 11112 10707 11113 10708 11114 if test $pkg_failed = yes; then 10709 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10710 - $as_echo "no" >&6; } 11115 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11116 + printf "%s\n" "no" >&6; } 10711 11117 10712 11118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10713 11119 _pkg_short_errors_supported=yes ··· 10733 11139 and PRESENT_LIBS to avoid the need to call pkg-config. 10734 11140 See the pkg-config man page for more details." "$LINENO" 5 10735 11141 elif test $pkg_failed = untried; then 10736 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10737 - $as_echo "no" >&6; } 10738 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10739 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11142 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11143 + printf "%s\n" "no" >&6; } 11144 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11145 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10740 11146 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10741 11147 is in your PATH or set the PKG_CONFIG environment variable to the full 10742 11148 path to pkg-config. ··· 10750 11156 else 10751 11157 PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS 10752 11158 PRESENT_LIBS=$pkg_cv_PRESENT_LIBS 10753 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10754 - $as_echo "yes" >&6; } 11159 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11160 + printf "%s\n" "yes" >&6; } 10755 11161 10756 11162 fi 10757 11163 10758 - $as_echo "#define PRESENT 1" >>confdefs.h 11164 + printf "%s\n" "#define PRESENT 1" >>confdefs.h 10759 11165 10760 11166 fi 10761 11167 ··· 10788 11194 case $ac_val in #( 10789 11195 *${as_nl}*) 10790 11196 case $ac_var in #( 10791 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10792 - $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11197 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11198 + printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10793 11199 esac 10794 11200 case $ac_var in #( 10795 11201 _ | IFS | as_nl) ;; #( ··· 10819 11225 /^ac_cv_env_/b end 10820 11226 t clear 10821 11227 :clear 10822 - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11228 + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 10823 11229 t end 10824 11230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10825 11231 :end' >>confcache 10826 11232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10827 11233 if test -w "$cache_file"; then 10828 11234 if test "x$cache_file" != "x/dev/null"; then 10829 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10830 - $as_echo "$as_me: updating cache $cache_file" >&6;} 11235 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11236 + printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 10831 11237 if test ! -f "$cache_file" || test -h "$cache_file"; then 10832 11238 cat confcache >"$cache_file" 10833 11239 else ··· 10841 11247 fi 10842 11248 fi 10843 11249 else 10844 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10845 - $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11250 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11251 + printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 10846 11252 fi 10847 11253 fi 10848 11254 rm -f confcache ··· 10859 11265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10860 11266 # 1. Remove the extension, and $U if already installed. 10861 11267 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10862 - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11268 + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 10863 11269 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10864 11270 # will be set to the directory where LIBOBJS objects are built. 10865 11271 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" ··· 10870 11276 LTLIBOBJS=$ac_ltlibobjs 10871 11277 10872 11278 10873 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10874 - $as_echo_n "checking that generated files are newer than configure... " >&6; } 11279 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11280 + printf %s "checking that generated files are newer than configure... " >&6; } 10875 11281 if test -n "$am_sleep_pid"; then 10876 11282 # Hide warnings about reused PIDs. 10877 11283 wait $am_sleep_pid 2>/dev/null 10878 11284 fi 10879 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10880 - $as_echo "done" >&6; } 11285 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11286 + printf "%s\n" "done" >&6; } 10881 11287 if test -n "$EXEEXT"; then 10882 11288 am__EXEEXT_TRUE= 10883 11289 am__EXEEXT_FALSE='#' ··· 10890 11296 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10891 11297 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10892 11298 fi 10893 - if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10894 - as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10895 - Usually this means the macro was only invoked conditionally." "$LINENO" 5 10896 - fi 10897 11299 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10898 11300 as_fn_error $? "conditional \"AMDEP\" was never defined. 10899 11301 Usually this means the macro was only invoked conditionally." "$LINENO" 5 ··· 10907 11309 ac_write_fail=0 10908 11310 ac_clean_files_save=$ac_clean_files 10909 11311 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10910 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10911 - $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11312 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11313 + printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 10912 11314 as_write_fail=0 10913 11315 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10914 11316 #! $SHELL ··· 10931 11333 10932 11334 # Be more Bourne compatible 10933 11335 DUALCASE=1; export DUALCASE # for MKS sh 10934 - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11336 + as_nop=: 11337 + if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11338 + then : 10935 11339 emulate sh 10936 11340 NULLCMD=: 10937 11341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10938 11342 # is contrary to our usage. Disable this feature. 10939 11343 alias -g '${1+"$@"}'='"$@"' 10940 11344 setopt NO_GLOB_SUBST 10941 - else 11345 + else $as_nop 10942 11346 case `(set -o) 2>/dev/null` in #( 10943 11347 *posix*) : 10944 11348 set -o posix ;; #( ··· 10948 11352 fi 10949 11353 10950 11354 11355 + 11356 + # Reset variables that may have inherited troublesome values from 11357 + # the environment. 11358 + 11359 + # IFS needs to be set, to space, tab, and newline, in precisely that order. 11360 + # (If _AS_PATH_WALK were called with IFS unset, it would have the 11361 + # side effect of setting IFS to empty, thus disabling word splitting.) 11362 + # Quoting is to prevent editors from complaining about space-tab. 10951 11363 as_nl=' 10952 11364 ' 10953 11365 export as_nl 10954 - # Printing a long string crashes Solaris 7 /usr/bin/printf. 10955 - as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10956 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10957 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10958 - # Prefer a ksh shell builtin over an external printf program on Solaris, 10959 - # but without wasting forks for bash or zsh. 10960 - if test -z "$BASH_VERSION$ZSH_VERSION" \ 10961 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10962 - as_echo='print -r --' 10963 - as_echo_n='print -rn --' 10964 - elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10965 - as_echo='printf %s\n' 10966 - as_echo_n='printf %s' 10967 - else 10968 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10969 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10970 - as_echo_n='/usr/ucb/echo -n' 10971 - else 10972 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10973 - as_echo_n_body='eval 10974 - arg=$1; 10975 - case $arg in #( 10976 - *"$as_nl"*) 10977 - expr "X$arg" : "X\\(.*\\)$as_nl"; 10978 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10979 - esac; 10980 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10981 - ' 10982 - export as_echo_n_body 10983 - as_echo_n='sh -c $as_echo_n_body as_echo' 10984 - fi 10985 - export as_echo_body 10986 - as_echo='sh -c $as_echo_body as_echo' 10987 - fi 11366 + IFS=" "" $as_nl" 11367 + 11368 + PS1='$ ' 11369 + PS2='> ' 11370 + PS4='+ ' 11371 + 11372 + # Ensure predictable behavior from utilities with locale-dependent output. 11373 + LC_ALL=C 11374 + export LC_ALL 11375 + LANGUAGE=C 11376 + export LANGUAGE 11377 + 11378 + # We cannot yet rely on "unset" to work, but we need these variables 11379 + # to be unset--not just set to an empty or harmless value--now, to 11380 + # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11381 + # also avoids known problems related to "unset" and subshell syntax 11382 + # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11383 + for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11384 + do eval test \${$as_var+y} \ 11385 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11386 + done 11387 + 11388 + # Ensure that fds 0, 1, and 2 are open. 11389 + if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11390 + if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11391 + if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 10988 11392 10989 11393 # The user is always right. 10990 - if test "${PATH_SEPARATOR+set}" != set; then 11394 + if ${PATH_SEPARATOR+false} :; then 10991 11395 PATH_SEPARATOR=: 10992 11396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10993 11397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ··· 10996 11400 fi 10997 11401 10998 11402 10999 - # IFS 11000 - # We need space, tab and new line, in precisely that order. Quoting is 11001 - # there to prevent editors from complaining about space-tab. 11002 - # (If _AS_PATH_WALK were called with IFS unset, it would disable word 11003 - # splitting by setting IFS to empty value.) 11004 - IFS=" "" $as_nl" 11005 - 11006 11403 # Find who we are. Look in the path if we contain no directory separator. 11007 11404 as_myself= 11008 11405 case $0 in #(( ··· 11011 11408 for as_dir in $PATH 11012 11409 do 11013 11410 IFS=$as_save_IFS 11014 - test -z "$as_dir" && as_dir=. 11015 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11411 + case $as_dir in #((( 11412 + '') as_dir=./ ;; 11413 + */) ;; 11414 + *) as_dir=$as_dir/ ;; 11415 + esac 11416 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11016 11417 done 11017 11418 IFS=$as_save_IFS 11018 11419 ··· 11024 11425 as_myself=$0 11025 11426 fi 11026 11427 if test ! -f "$as_myself"; then 11027 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11428 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11028 11429 exit 1 11029 11430 fi 11030 11431 11031 - # Unset variables that we do not need and which cause bugs (e.g. in 11032 - # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11033 - # suppresses any "Segmentation fault" message there. '((' could 11034 - # trigger a bug in pdksh 5.2.14. 11035 - for as_var in BASH_ENV ENV MAIL MAILPATH 11036 - do eval test x\${$as_var+set} = xset \ 11037 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11038 - done 11039 - PS1='$ ' 11040 - PS2='> ' 11041 - PS4='+ ' 11042 - 11043 - # NLS nuisances. 11044 - LC_ALL=C 11045 - export LC_ALL 11046 - LANGUAGE=C 11047 - export LANGUAGE 11048 - 11049 - # CDPATH. 11050 - (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11051 11432 11052 11433 11053 11434 # as_fn_error STATUS ERROR [LINENO LOG_FD] ··· 11060 11441 as_status=$1; test $as_status -eq 0 && as_status=1 11061 11442 if test "$4"; then 11062 11443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11063 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11444 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11064 11445 fi 11065 - $as_echo "$as_me: error: $2" >&2 11446 + printf "%s\n" "$as_me: error: $2" >&2 11066 11447 as_fn_exit $as_status 11067 11448 } # as_fn_error 11449 + 11068 11450 11069 11451 11070 11452 # as_fn_set_status STATUS ··· 11093 11475 { eval $1=; unset $1;} 11094 11476 } 11095 11477 as_unset=as_fn_unset 11478 + 11096 11479 # as_fn_append VAR VALUE 11097 11480 # ---------------------- 11098 11481 # Append the text in VALUE to the end of the definition contained in VAR. Take 11099 11482 # advantage of any shell optimizations that allow amortized linear growth over 11100 11483 # repeated appends, instead of the typical quadratic growth present in naive 11101 11484 # implementations. 11102 - if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11485 + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11486 + then : 11103 11487 eval 'as_fn_append () 11104 11488 { 11105 11489 eval $1+=\$2 11106 11490 }' 11107 - else 11491 + else $as_nop 11108 11492 as_fn_append () 11109 11493 { 11110 11494 eval $1=\$$1\$2 ··· 11116 11500 # Perform arithmetic evaluation on the ARGs, and store the result in the 11117 11501 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11118 11502 # must be portable across $(()) and expr. 11119 - if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11503 + if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11504 + then : 11120 11505 eval 'as_fn_arith () 11121 11506 { 11122 11507 as_val=$(( $* )) 11123 11508 }' 11124 - else 11509 + else $as_nop 11125 11510 as_fn_arith () 11126 11511 { 11127 11512 as_val=`expr "$@" || test $? -eq 1` ··· 11152 11537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11153 11538 X"$0" : 'X\(//\)$' \| \ 11154 11539 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11155 - $as_echo X/"$0" | 11540 + printf "%s\n" X/"$0" | 11156 11541 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11157 11542 s//\1/ 11158 11543 q ··· 11174 11559 as_cr_digits='0123456789' 11175 11560 as_cr_alnum=$as_cr_Letters$as_cr_digits 11176 11561 11562 + 11563 + # Determine whether it's possible to make 'echo' print without a newline. 11564 + # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11565 + # for compatibility with existing Makefiles. 11177 11566 ECHO_C= ECHO_N= ECHO_T= 11178 11567 case `echo -n x` in #((((( 11179 11568 -n*) ··· 11187 11576 ECHO_N='-n';; 11188 11577 esac 11189 11578 11579 + # For backward compatibility with old third-party macros, we provide 11580 + # the shell variables $as_echo and $as_echo_n. New code should use 11581 + # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11582 + as_echo='printf %s\n' 11583 + as_echo_n='printf %s' 11584 + 11190 11585 rm -f conf$$ conf$$.exe conf$$.file 11191 11586 if test -d conf$$.dir; then 11192 11587 rm -f conf$$.dir/conf$$.file ··· 11228 11623 as_dirs= 11229 11624 while :; do 11230 11625 case $as_dir in #( 11231 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11626 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11232 11627 *) as_qdir=$as_dir;; 11233 11628 esac 11234 11629 as_dirs="'$as_qdir' $as_dirs" ··· 11237 11632 X"$as_dir" : 'X\(//\)[^/]' \| \ 11238 11633 X"$as_dir" : 'X\(//\)$' \| \ 11239 11634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11240 - $as_echo X"$as_dir" | 11635 + printf "%s\n" X"$as_dir" | 11241 11636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11242 11637 s//\1/ 11243 11638 q ··· 11299 11694 # report actual input values of CONFIG_FILES etc. instead of their 11300 11695 # values after options handling. 11301 11696 ac_log=" 11302 - This file was extended by xeyes $as_me 1.2.0, which was 11303 - generated by GNU Autoconf 2.69. Invocation command line was 11697 + This file was extended by xeyes $as_me 1.3.0, which was 11698 + generated by GNU Autoconf 2.71. Invocation command line was 11304 11699 11305 11700 CONFIG_FILES = $CONFIG_FILES 11306 11701 CONFIG_HEADERS = $CONFIG_HEADERS ··· 11359 11754 Configuration commands: 11360 11755 $config_commands 11361 11756 11362 - Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>." 11757 + Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues>." 11363 11758 11364 11759 _ACEOF 11760 + ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11761 + ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11365 11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11366 - ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11763 + ac_cs_config='$ac_cs_config_escaped' 11367 11764 ac_cs_version="\\ 11368 - xeyes config.status 1.2.0 11369 - configured by $0, generated by GNU Autoconf 2.69, 11765 + xeyes config.status 1.3.0 11766 + configured by $0, generated by GNU Autoconf 2.71, 11370 11767 with options \\"\$ac_cs_config\\" 11371 11768 11372 - Copyright (C) 2012 Free Software Foundation, Inc. 11769 + Copyright (C) 2021 Free Software Foundation, Inc. 11373 11770 This config.status script is free software; the Free Software Foundation 11374 11771 gives unlimited permission to copy, distribute and modify it." 11375 11772 ··· 11409 11806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11410 11807 ac_cs_recheck=: ;; 11411 11808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11412 - $as_echo "$ac_cs_version"; exit ;; 11809 + printf "%s\n" "$ac_cs_version"; exit ;; 11413 11810 --config | --confi | --conf | --con | --co | --c ) 11414 - $as_echo "$ac_cs_config"; exit ;; 11811 + printf "%s\n" "$ac_cs_config"; exit ;; 11415 11812 --debug | --debu | --deb | --de | --d | -d ) 11416 11813 debug=: ;; 11417 11814 --file | --fil | --fi | --f ) 11418 11815 $ac_shift 11419 11816 case $ac_optarg in 11420 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11817 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11421 11818 '') as_fn_error $? "missing file argument" ;; 11422 11819 esac 11423 11820 as_fn_append CONFIG_FILES " '$ac_optarg'" ··· 11425 11822 --header | --heade | --head | --hea ) 11426 11823 $ac_shift 11427 11824 case $ac_optarg in 11428 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11825 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11429 11826 esac 11430 11827 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11431 11828 ac_need_defaults=false;; ··· 11434 11831 as_fn_error $? "ambiguous option: \`$1' 11435 11832 Try \`$0 --help' for more information.";; 11436 11833 --help | --hel | -h ) 11437 - $as_echo "$ac_cs_usage"; exit ;; 11834 + printf "%s\n" "$ac_cs_usage"; exit ;; 11438 11835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11439 11836 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11440 11837 ac_cs_silent=: ;; ··· 11462 11859 if \$ac_cs_recheck; then 11463 11860 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11464 11861 shift 11465 - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11862 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11466 11863 CONFIG_SHELL='$SHELL' 11467 11864 export CONFIG_SHELL 11468 11865 exec "\$@" ··· 11476 11873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11477 11874 ## Running $as_me. ## 11478 11875 _ASBOX 11479 - $as_echo "$ac_log" 11876 + printf "%s\n" "$ac_log" 11480 11877 } >&5 11481 11878 11482 11879 _ACEOF ··· 11509 11906 # We use the long form for the default assignment because of an extremely 11510 11907 # bizarre bug on SunOS 4.1.3. 11511 11908 if $ac_need_defaults; then 11512 - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11513 - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11514 - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11909 + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11910 + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11911 + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11515 11912 fi 11516 11913 11517 11914 # Have a temporary directory for convenience. Make it in the build tree ··· 11847 12244 esac || 11848 12245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11849 12246 esac 11850 - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12247 + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11851 12248 as_fn_append ac_file_inputs " '$ac_f'" 11852 12249 done 11853 12250 ··· 11855 12252 # use $as_me), people would be surprised to read: 11856 12253 # /* config.h. Generated by config.status. */ 11857 12254 configure_input='Generated from '` 11858 - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12255 + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11859 12256 `' by configure.' 11860 12257 if test x"$ac_file" != x-; then 11861 12258 configure_input="$ac_file. $configure_input" 11862 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11863 - $as_echo "$as_me: creating $ac_file" >&6;} 12259 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12260 + printf "%s\n" "$as_me: creating $ac_file" >&6;} 11864 12261 fi 11865 12262 # Neutralize special characters interpreted by sed in replacement strings. 11866 12263 case $configure_input in #( 11867 12264 *\&* | *\|* | *\\* ) 11868 - ac_sed_conf_input=`$as_echo "$configure_input" | 12265 + ac_sed_conf_input=`printf "%s\n" "$configure_input" | 11869 12266 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11870 12267 *) ac_sed_conf_input=$configure_input;; 11871 12268 esac ··· 11882 12279 X"$ac_file" : 'X\(//\)[^/]' \| \ 11883 12280 X"$ac_file" : 'X\(//\)$' \| \ 11884 12281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11885 - $as_echo X"$ac_file" | 12282 + printf "%s\n" X"$ac_file" | 11886 12283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11887 12284 s//\1/ 11888 12285 q ··· 11906 12303 case "$ac_dir" in 11907 12304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11908 12305 *) 11909 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12306 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 11910 12307 # A ".." for each directory in $ac_dir_suffix. 11911 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12308 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11912 12309 case $ac_top_builddir_sub in 11913 12310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11914 12311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ··· 11970 12367 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11971 12368 *datarootdir*) ac_datarootdir_seen=yes;; 11972 12369 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11973 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11974 - $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12370 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12371 + printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11975 12372 _ACEOF 11976 12373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11977 12374 ac_datarootdir_hack=' ··· 12015 12412 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12016 12413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12017 12414 "$ac_tmp/out"`; test -z "$ac_out"; } && 12018 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12415 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12019 12416 which seems to be undefined. Please make sure it is defined" >&5 12020 - $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12417 + printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12021 12418 which seems to be undefined. Please make sure it is defined" >&2;} 12022 12419 12023 12420 rm -f "$ac_tmp/stdin" ··· 12033 12430 # 12034 12431 if test x"$ac_file" != x-; then 12035 12432 { 12036 - $as_echo "/* $configure_input */" \ 12433 + printf "%s\n" "/* $configure_input */" >&1 \ 12037 12434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12038 12435 } >"$ac_tmp/config.h" \ 12039 12436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12040 12437 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12041 - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12042 - $as_echo "$as_me: $ac_file is unchanged" >&6;} 12438 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12439 + printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12043 12440 else 12044 12441 rm -f "$ac_file" 12045 12442 mv "$ac_tmp/config.h" "$ac_file" \ 12046 12443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12047 12444 fi 12048 12445 else 12049 - $as_echo "/* $configure_input */" \ 12446 + printf "%s\n" "/* $configure_input */" >&1 \ 12050 12447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12051 12448 || as_fn_error $? "could not create -" "$LINENO" 5 12052 12449 fi ··· 12066 12463 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12067 12464 X"$_am_arg" : 'X\(//\)$' \| \ 12068 12465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12069 - $as_echo X"$_am_arg" | 12466 + printf "%s\n" X"$_am_arg" | 12070 12467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12071 12468 s//\1/ 12072 12469 q ··· 12086 12483 s/.*/./; q'`/stamp-h$_am_stamp_count 12087 12484 ;; 12088 12485 12089 - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12090 - $as_echo "$as_me: executing $ac_file commands" >&6;} 12486 + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12487 + printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12091 12488 ;; 12092 12489 esac 12093 12490 ··· 12119 12516 X"$mf" : 'X\(//\)[^/]' \| \ 12120 12517 X"$mf" : 'X\(//\)$' \| \ 12121 12518 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12122 - $as_echo X"$mf" | 12519 + printf "%s\n" X"$mf" | 12123 12520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12124 12521 s//\1/ 12125 12522 q ··· 12161 12558 X"$file" : 'X\(//\)[^/]' \| \ 12162 12559 X"$file" : 'X\(//\)$' \| \ 12163 12560 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12164 - $as_echo X"$file" | 12561 + printf "%s\n" X"$file" | 12165 12562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12166 12563 s//\1/ 12167 12564 q ··· 12220 12617 $ac_cs_success || as_fn_exit 1 12221 12618 fi 12222 12619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12223 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12224 - $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12620 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12621 + printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12225 12622 fi 12226 12623
+3 -4
app/xeyes/configure.ac
··· 23 23 24 24 # Initialize Autoconf 25 25 AC_PREREQ([2.60]) 26 - AC_INIT([xeyes], [1.2.0], 27 - [https://gitlab.freedesktop.org/xorg/app/xeyes/issues], [xeyes]) 26 + AC_INIT([xeyes], [1.3.0], 27 + [https://gitlab.freedesktop.org/xorg/app/xeyes/-/issues], [xeyes]) 28 28 AC_CONFIG_SRCDIR([Makefile.am]) 29 29 AC_CONFIG_HEADERS([config.h]) 30 30 31 31 # Initialize Automake 32 - AM_INIT_AUTOMAKE([foreign dist-bzip2]) 33 - AM_MAINTAINER_MODE 32 + AM_INIT_AUTOMAKE([foreign dist-xz]) 34 33 35 34 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 36 35 m4_ifndef([XORG_MACROS_VERSION],
+214 -200
app/xeyes/install-sh
··· 1 1 #!/bin/sh 2 2 # install - install a program, script, or datafile 3 3 4 - scriptversion=2011-11-20.07; # UTC 4 + scriptversion=2020-11-14.01; # UTC 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was 7 7 # later released in X11R6 (xc/config/util/install.sh) with the ··· 41 41 # This script is compatible with the BSD install script, but was written 42 42 # from scratch. 43 43 44 + tab=' ' 44 45 nl=' 45 46 ' 46 - IFS=" "" $nl" 47 + IFS=" $tab$nl" 47 48 48 - # set DOITPROG to echo to test this script 49 + # Set DOITPROG to "echo" to test this script. 49 50 50 - # Don't use :- since 4.3BSD and earlier shells don't like it. 51 51 doit=${DOITPROG-} 52 - if test -z "$doit"; then 53 - doit_exec=exec 54 - else 55 - doit_exec=$doit 56 - fi 52 + doit_exec=${doit:-exec} 57 53 58 54 # Put in absolute file names if you don't have them in your path; 59 55 # or use environment vars. ··· 68 64 rmprog=${RMPROG-rm} 69 65 stripprog=${STRIPPROG-strip} 70 66 71 - posix_glob='?' 72 - initialize_posix_glob=' 73 - test "$posix_glob" != "?" || { 74 - if (set -f) 2>/dev/null; then 75 - posix_glob= 76 - else 77 - posix_glob=: 78 - fi 79 - } 80 - ' 81 - 82 67 posix_mkdir= 83 68 84 69 # Desired mode of installed file. 85 70 mode=0755 86 71 72 + # Create dirs (including intermediate dirs) using mode 755. 73 + # This is like GNU 'install' as of coreutils 8.32 (2020). 74 + mkdir_umask=22 75 + 76 + backupsuffix= 87 77 chgrpcmd= 88 78 chmodcmd=$chmodprog 89 79 chowncmd= ··· 97 87 dst_arg= 98 88 99 89 copy_on_change=false 100 - no_target_directory= 90 + is_target_a_directory=possibly 101 91 102 92 usage="\ 103 93 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE ··· 114 104 --version display version info and exit. 115 105 116 106 -c (ignored) 117 - -C install only if different (preserve the last data modification time) 107 + -C install only if different (preserve data modification time) 118 108 -d create directories instead of installing files. 119 109 -g GROUP $chgrpprog installed files to GROUP. 120 110 -m MODE $chmodprog installed files to MODE. 121 111 -o USER $chownprog installed files to USER. 112 + -p pass -p to $cpprog. 122 113 -s $stripprog installed files. 114 + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. 123 115 -t DIRECTORY install into DIRECTORY. 124 116 -T report an error if DSTFILE is a directory. 125 117 126 118 Environment variables override the default commands: 127 119 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG 128 120 RMPROG STRIPPROG 121 + 122 + By default, rm is invoked with -f; when overridden with RMPROG, 123 + it's up to you to specify -f if you want it. 124 + 125 + If -S is not specified, no backups are attempted. 126 + 127 + Email bug reports to bug-automake@gnu.org. 128 + Automake home page: https://www.gnu.org/software/automake/ 129 129 " 130 130 131 131 while test $# -ne 0; do ··· 137 137 -d) dir_arg=true;; 138 138 139 139 -g) chgrpcmd="$chgrpprog $2" 140 - shift;; 140 + shift;; 141 141 142 142 --help) echo "$usage"; exit $?;; 143 143 144 144 -m) mode=$2 145 - case $mode in 146 - *' '* | *' '* | *' 147 - '* | *'*'* | *'?'* | *'['*) 148 - echo "$0: invalid mode: $mode" >&2 149 - exit 1;; 150 - esac 151 - shift;; 145 + case $mode in 146 + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) 147 + echo "$0: invalid mode: $mode" >&2 148 + exit 1;; 149 + esac 150 + shift;; 152 151 153 152 -o) chowncmd="$chownprog $2" 154 - shift;; 153 + shift;; 154 + 155 + -p) cpprog="$cpprog -p";; 155 156 156 157 -s) stripcmd=$stripprog;; 157 158 158 - -t) dst_arg=$2 159 - # Protect names problematic for 'test' and other utilities. 160 - case $dst_arg in 161 - -* | [=\(\)!]) dst_arg=./$dst_arg;; 162 - esac 163 - shift;; 159 + -S) backupsuffix="$2" 160 + shift;; 164 161 165 - -T) no_target_directory=true;; 162 + -t) 163 + is_target_a_directory=always 164 + dst_arg=$2 165 + # Protect names problematic for 'test' and other utilities. 166 + case $dst_arg in 167 + -* | [=\(\)!]) dst_arg=./$dst_arg;; 168 + esac 169 + shift;; 170 + 171 + -T) is_target_a_directory=never;; 166 172 167 173 --version) echo "$0 $scriptversion"; exit $?;; 168 174 169 - --) shift 170 - break;; 175 + --) shift 176 + break;; 171 177 172 - -*) echo "$0: invalid option: $1" >&2 173 - exit 1;; 178 + -*) echo "$0: invalid option: $1" >&2 179 + exit 1;; 174 180 175 181 *) break;; 176 182 esac 177 183 shift 178 184 done 185 + 186 + # We allow the use of options -d and -T together, by making -d 187 + # take the precedence; this is for compatibility with GNU install. 188 + 189 + if test -n "$dir_arg"; then 190 + if test -n "$dst_arg"; then 191 + echo "$0: target directory not allowed when installing a directory." >&2 192 + exit 1 193 + fi 194 + fi 179 195 180 196 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then 181 197 # When -d is used, all remaining arguments are directories to create. ··· 208 224 fi 209 225 210 226 if test -z "$dir_arg"; then 227 + if test $# -gt 1 || test "$is_target_a_directory" = always; then 228 + if test ! -d "$dst_arg"; then 229 + echo "$0: $dst_arg: Is not a directory." >&2 230 + exit 1 231 + fi 232 + fi 233 + fi 234 + 235 + if test -z "$dir_arg"; then 211 236 do_exit='(exit $ret); exit $ret' 212 237 trap "ret=129; $do_exit" 1 213 238 trap "ret=130; $do_exit" 2 ··· 223 248 224 249 *[0-7]) 225 250 if test -z "$stripcmd"; then 226 - u_plus_rw= 251 + u_plus_rw= 227 252 else 228 - u_plus_rw='% 200' 253 + u_plus_rw='% 200' 229 254 fi 230 255 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 231 256 *) 232 257 if test -z "$stripcmd"; then 233 - u_plus_rw= 258 + u_plus_rw= 234 259 else 235 - u_plus_rw=,u+rw 260 + u_plus_rw=,u+rw 236 261 fi 237 262 cp_umask=$mode$u_plus_rw;; 238 263 esac ··· 250 275 dstdir=$dst 251 276 test -d "$dstdir" 252 277 dstdir_status=$? 278 + # Don't chown directories that already exist. 279 + if test $dstdir_status = 0; then 280 + chowncmd="" 281 + fi 253 282 else 254 283 255 284 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command ··· 266 295 fi 267 296 dst=$dst_arg 268 297 269 - # If destination is a directory, append the input filename; won't work 270 - # if double slashes aren't ignored. 298 + # If destination is a directory, append the input filename. 271 299 if test -d "$dst"; then 272 - if test -n "$no_target_directory"; then 273 - echo "$0: $dst_arg: Is a directory" >&2 274 - exit 1 300 + if test "$is_target_a_directory" = never; then 301 + echo "$0: $dst_arg: Is a directory" >&2 302 + exit 1 275 303 fi 276 304 dstdir=$dst 277 - dst=$dstdir/`basename "$src"` 305 + dstbase=`basename "$src"` 306 + case $dst in 307 + */) dst=$dst$dstbase;; 308 + *) dst=$dst/$dstbase;; 309 + esac 278 310 dstdir_status=0 279 311 else 280 - # Prefer dirname, but fall back on a substitute if dirname fails. 281 - dstdir=` 282 - (dirname "$dst") 2>/dev/null || 283 - expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 284 - X"$dst" : 'X\(//\)[^/]' \| \ 285 - X"$dst" : 'X\(//\)$' \| \ 286 - X"$dst" : 'X\(/\)' \| . 2>/dev/null || 287 - echo X"$dst" | 288 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 289 - s//\1/ 290 - q 291 - } 292 - /^X\(\/\/\)[^/].*/{ 293 - s//\1/ 294 - q 295 - } 296 - /^X\(\/\/\)$/{ 297 - s//\1/ 298 - q 299 - } 300 - /^X\(\/\).*/{ 301 - s//\1/ 302 - q 303 - } 304 - s/.*/./; q' 305 - ` 306 - 312 + dstdir=`dirname "$dst"` 307 313 test -d "$dstdir" 308 314 dstdir_status=$? 309 315 fi 310 316 fi 317 + 318 + case $dstdir in 319 + */) dstdirslash=$dstdir;; 320 + *) dstdirslash=$dstdir/;; 321 + esac 311 322 312 323 obsolete_mkdir_used=false 313 324 314 325 if test $dstdir_status != 0; then 315 326 case $posix_mkdir in 316 327 '') 317 - # Create intermediate dirs using mode 755 as modified by the umask. 318 - # This is like FreeBSD 'install' as of 1997-10-28. 319 - umask=`umask` 320 - case $stripcmd.$umask in 321 - # Optimize common cases. 322 - *[2367][2367]) mkdir_umask=$umask;; 323 - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 328 + # With -d, create the new directory with the user-specified mode. 329 + # Otherwise, rely on $mkdir_umask. 330 + if test -n "$dir_arg"; then 331 + mkdir_mode=-m$mode 332 + else 333 + mkdir_mode= 334 + fi 335 + 336 + posix_mkdir=false 337 + # The $RANDOM variable is not portable (e.g., dash). Use it 338 + # here however when possible just to lower collision chance. 339 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 324 340 325 - *[0-7]) 326 - mkdir_umask=`expr $umask + 22 \ 327 - - $umask % 100 % 40 + $umask % 20 \ 328 - - $umask % 10 % 4 + $umask % 2 329 - `;; 330 - *) mkdir_umask=$umask,go-w;; 331 - esac 341 + trap ' 342 + ret=$? 343 + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null 344 + exit $ret 345 + ' 0 332 346 333 - # With -d, create the new directory with the user-specified mode. 334 - # Otherwise, rely on $mkdir_umask. 335 - if test -n "$dir_arg"; then 336 - mkdir_mode=-m$mode 347 + # Because "mkdir -p" follows existing symlinks and we likely work 348 + # directly in world-writeable /tmp, make sure that the '$tmpdir' 349 + # directory is successfully created first before we actually test 350 + # 'mkdir -p'. 351 + if (umask $mkdir_umask && 352 + $mkdirprog $mkdir_mode "$tmpdir" && 353 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 354 + then 355 + if test -z "$dir_arg" || { 356 + # Check for POSIX incompatibilities with -m. 357 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 358 + # other-writable bit of parent directory when it shouldn't. 359 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 360 + test_tmpdir="$tmpdir/a" 361 + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` 362 + case $ls_ld_tmpdir in 363 + d????-?r-*) different_mode=700;; 364 + d????-?--*) different_mode=755;; 365 + *) false;; 366 + esac && 367 + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { 368 + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` 369 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 370 + } 371 + } 372 + then posix_mkdir=: 373 + fi 374 + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 337 375 else 338 - mkdir_mode= 376 + # Remove any dirs left behind by ancient mkdir implementations. 377 + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null 339 378 fi 340 - 341 - posix_mkdir=false 342 - case $umask in 343 - *[123567][0-7][0-7]) 344 - # POSIX mkdir -p sets u+wx bits regardless of umask, which 345 - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 346 - ;; 347 - *) 348 - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 349 - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 350 - 351 - if (umask $mkdir_umask && 352 - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 353 - then 354 - if test -z "$dir_arg" || { 355 - # Check for POSIX incompatibilities with -m. 356 - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 357 - # other-writable bit of parent directory when it shouldn't. 358 - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 359 - ls_ld_tmpdir=`ls -ld "$tmpdir"` 360 - case $ls_ld_tmpdir in 361 - d????-?r-*) different_mode=700;; 362 - d????-?--*) different_mode=755;; 363 - *) false;; 364 - esac && 365 - $mkdirprog -m$different_mode -p -- "$tmpdir" && { 366 - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 367 - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 368 - } 369 - } 370 - then posix_mkdir=: 371 - fi 372 - rmdir "$tmpdir/d" "$tmpdir" 373 - else 374 - # Remove any dirs left behind by ancient mkdir implementations. 375 - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 376 - fi 377 - trap '' 0;; 378 - esac;; 379 + trap '' 0;; 379 380 esac 380 381 381 382 if 382 383 $posix_mkdir && ( 383 - umask $mkdir_umask && 384 - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 384 + umask $mkdir_umask && 385 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 385 386 ) 386 387 then : 387 388 else 388 389 389 - # The umask is ridiculous, or mkdir does not conform to POSIX, 390 + # mkdir does not conform to POSIX, 390 391 # or it failed possibly due to a race condition. Create the 391 392 # directory the slow way, step by step, checking for races as we go. 392 393 393 394 case $dstdir in 394 - /*) prefix='/';; 395 - [-=\(\)!]*) prefix='./';; 396 - *) prefix='';; 395 + /*) prefix='/';; 396 + [-=\(\)!]*) prefix='./';; 397 + *) prefix='';; 397 398 esac 398 - 399 - eval "$initialize_posix_glob" 400 399 401 400 oIFS=$IFS 402 401 IFS=/ 403 - $posix_glob set -f 402 + set -f 404 403 set fnord $dstdir 405 404 shift 406 - $posix_glob set +f 405 + set +f 407 406 IFS=$oIFS 408 407 409 408 prefixes= 410 409 411 410 for d 412 411 do 413 - test X"$d" = X && continue 412 + test X"$d" = X && continue 414 413 415 - prefix=$prefix$d 416 - if test -d "$prefix"; then 417 - prefixes= 418 - else 419 - if $posix_mkdir; then 420 - (umask=$mkdir_umask && 421 - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 422 - # Don't fail if two instances are running concurrently. 423 - test -d "$prefix" || exit 1 424 - else 425 - case $prefix in 426 - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 427 - *) qprefix=$prefix;; 428 - esac 429 - prefixes="$prefixes '$qprefix'" 430 - fi 431 - fi 432 - prefix=$prefix/ 414 + prefix=$prefix$d 415 + if test -d "$prefix"; then 416 + prefixes= 417 + else 418 + if $posix_mkdir; then 419 + (umask $mkdir_umask && 420 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 421 + # Don't fail if two instances are running concurrently. 422 + test -d "$prefix" || exit 1 423 + else 424 + case $prefix in 425 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 426 + *) qprefix=$prefix;; 427 + esac 428 + prefixes="$prefixes '$qprefix'" 429 + fi 430 + fi 431 + prefix=$prefix/ 433 432 done 434 433 435 434 if test -n "$prefixes"; then 436 - # Don't fail if two instances are running concurrently. 437 - (umask $mkdir_umask && 438 - eval "\$doit_exec \$mkdirprog $prefixes") || 439 - test -d "$dstdir" || exit 1 440 - obsolete_mkdir_used=true 435 + # Don't fail if two instances are running concurrently. 436 + (umask $mkdir_umask && 437 + eval "\$doit_exec \$mkdirprog $prefixes") || 438 + test -d "$dstdir" || exit 1 439 + obsolete_mkdir_used=true 441 440 fi 442 441 fi 443 442 fi ··· 450 449 else 451 450 452 451 # Make a couple of temp file names in the proper directory. 453 - dsttmp=$dstdir/_inst.$$_ 454 - rmtmp=$dstdir/_rm.$$_ 452 + dsttmp=${dstdirslash}_inst.$$_ 453 + rmtmp=${dstdirslash}_rm.$$_ 455 454 456 455 # Trap to clean up those temp files at exit. 457 456 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 458 457 459 458 # Copy the file name to the temp name. 460 - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 459 + (umask $cp_umask && 460 + { test -z "$stripcmd" || { 461 + # Create $dsttmp read-write so that cp doesn't create it read-only, 462 + # which would cause strip to fail. 463 + if test -z "$doit"; then 464 + : >"$dsttmp" # No need to fork-exec 'touch'. 465 + else 466 + $doit touch "$dsttmp" 467 + fi 468 + } 469 + } && 470 + $doit_exec $cpprog "$src" "$dsttmp") && 461 471 462 472 # and set any options; do chmod last to preserve setuid bits. 463 473 # ··· 472 482 473 483 # If -C, don't bother to copy if it wouldn't change the file. 474 484 if $copy_on_change && 475 - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && 476 - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && 477 - 478 - eval "$initialize_posix_glob" && 479 - $posix_glob set -f && 485 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && 486 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && 487 + set -f && 480 488 set X $old && old=:$2:$4:$5:$6 && 481 489 set X $new && new=:$2:$4:$5:$6 && 482 - $posix_glob set +f && 483 - 490 + set +f && 484 491 test "$old" = "$new" && 485 492 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 486 493 then 487 494 rm -f "$dsttmp" 488 495 else 496 + # If $backupsuffix is set, and the file being installed 497 + # already exists, attempt a backup. Don't worry if it fails, 498 + # e.g., if mv doesn't support -f. 499 + if test -n "$backupsuffix" && test -f "$dst"; then 500 + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null 501 + fi 502 + 489 503 # Rename the file to the real destination. 490 504 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || 491 505 ··· 493 507 # to itself, or perhaps because mv is so ancient that it does not 494 508 # support -f. 495 509 { 496 - # Now remove or move aside any old file at destination location. 497 - # We try this two ways since rm can't unlink itself on some 498 - # systems and the destination file might be busy for other 499 - # reasons. In this case, the final cleanup might fail but the new 500 - # file should still install successfully. 501 - { 502 - test ! -f "$dst" || 503 - $doit $rmcmd -f "$dst" 2>/dev/null || 504 - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 505 - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } 506 - } || 507 - { echo "$0: cannot unlink or rename $dst" >&2 508 - (exit 1); exit 1 509 - } 510 - } && 510 + # Now remove or move aside any old file at destination location. 511 + # We try this two ways since rm can't unlink itself on some 512 + # systems and the destination file might be busy for other 513 + # reasons. In this case, the final cleanup might fail but the new 514 + # file should still install successfully. 515 + { 516 + test ! -f "$dst" || 517 + $doit $rmcmd "$dst" 2>/dev/null || 518 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 519 + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } 520 + } || 521 + { echo "$0: cannot unlink or rename $dst" >&2 522 + (exit 1); exit 1 523 + } 524 + } && 511 525 512 - # Now rename the file to the real destination. 513 - $doit $mvcmd "$dsttmp" "$dst" 526 + # Now rename the file to the real destination. 527 + $doit $mvcmd "$dsttmp" "$dst" 514 528 } 515 529 fi || exit 1 516 530 ··· 519 533 done 520 534 521 535 # Local variables: 522 - # eval: (add-hook 'write-file-hooks 'time-stamp) 536 + # eval: (add-hook 'before-save-hook 'time-stamp) 523 537 # time-stamp-start: "scriptversion=" 524 538 # time-stamp-format: "%:y-%02m-%02d.%02H" 525 - # time-stamp-time-zone: "UTC" 539 + # time-stamp-time-zone: "UTC0" 526 540 # time-stamp-end: "; # UTC" 527 541 # End:
-3
app/xeyes/man/Makefile.in
··· 126 126 CCDEPMODE = @CCDEPMODE@ 127 127 CFLAGS = @CFLAGS@ 128 128 CHANGELOG_CMD = @CHANGELOG_CMD@ 129 - CPP = @CPP@ 130 129 CPPFLAGS = @CPPFLAGS@ 131 130 CWARNFLAGS = @CWARNFLAGS@ 132 131 CYGPATH_W = @CYGPATH_W@ ··· 137 136 ECHO_C = @ECHO_C@ 138 137 ECHO_N = @ECHO_N@ 139 138 ECHO_T = @ECHO_T@ 140 - EGREP = @EGREP@ 141 139 EXEEXT = @EXEEXT@ 142 140 FILE_MAN_DIR = @FILE_MAN_DIR@ 143 141 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ 144 - GREP = @GREP@ 145 142 INSTALL = @INSTALL@ 146 143 INSTALL_CMD = @INSTALL_CMD@ 147 144 INSTALL_DATA = @INSTALL_DATA@
+9 -2
app/xeyes/man/xeyes.man
··· 51 51 .TP 8 52 52 .B \-distance 53 53 uses an alternative mapping, as if the eyes were set back from the screen, thus following the mouse more precisely. 54 + .TP 8 55 + .B \-biblicallyAccurate 56 + renders the eyes as if they belonged to a biblically accurate angel. 57 + .TP 8 58 + .B \-help 59 + print a usage message and exit. 60 + .TP 8 61 + .B \-version 62 + print the version number and exit. 54 63 .SH "SEE ALSO" 55 64 X(__miscmansuffix__), X Toolkit documentation 56 - .br 57 - See \fIX(__miscmansuffix__)\fP for a full statement of rights and permissions. 58 65 .SH AUTHOR 59 66 Keith Packard, MIT X Consortium 60 67 .br
+1 -1
app/xeyes/transform.h
··· 1 1 /* 2 2 * header file for transformed coordinate system. No rotations 3 - * supported, as elipses cannot be rotated in X. 3 + * supported, as ellipses cannot be rotated in X. 4 4 */ 5 5 6 6 typedef struct _transform {
+40 -13
app/xeyes/xeyes.c
··· 44 44 /* Exit with message describing command line format */ 45 45 46 46 static void _X_NORETURN 47 - usage(void) 47 + usage(int exitval) 48 48 { 49 49 fprintf(stderr, 50 - "usage: xeyes\n" 51 - " [-display [{host}]:[{vs}]]\n" 52 - " [-geometry [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]]\n" 53 - " [-fg {color}] [-bg {color}] [-bd {color}] [-bw {pixels}]\n" 54 - " [-shape | +shape] [-outline {color}] [-center {color}]\n" 55 - " [-backing {backing-store}] [-distance]\n"); 50 + "usage: xeyes [-display [{host}]:{vs}]\n" 51 + " [-geometry [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]]\n" 52 + " [-fg {color}] [-bg {color}] [-bd {color}] [-bw {pixels}]\n" 53 + " [-shape | +shape] [-outline {color}] [-center {color}]\n" 54 + " [-backing {backing-store}] [-distance]\n" 55 + " [-biblicallyAccurate]\n" 56 56 #ifdef XRENDER 57 - fprintf(stderr, 58 - " [-render | +render]\n"); 57 + " [-render | +render]\n" 59 58 #endif 60 59 #ifdef PRESENT 61 - fprintf(stderr, 62 - " [-present | +present]\n"); 60 + " [-present | +present]\n" 63 61 #endif 64 - exit(1); 62 + " xeyes -help\n" 63 + " xeyes -version\n"); 64 + exit(exitval); 65 65 } 66 66 67 67 /* Command line options table. Only resources are entered here...there is a ··· 82 82 {(char *)"+present", (char *)"*eyes.present", XrmoptionNoArg, (char *)"FALSE"}, 83 83 #endif 84 84 {(char *)"-distance", (char *)"*eyes.distance", XrmoptionNoArg, (char *)"TRUE"}, 85 + {(char *)"-biblicallyAccurate", (char *)"*eyes.biblicallyAccurate", XrmoptionNoArg, (char *)"TRUE"}, 85 86 }; 86 87 87 88 static Atom wm_delete_window; ··· 113 114 114 115 XtSetLanguageProc(NULL, (XtLanguageProc) NULL, NULL); 115 116 117 + /* Handle args that don't require opening a display */ 118 + for (int n = 1; n < argc; n++) { 119 + const char *argn = argv[n]; 120 + /* accept single or double dash for -help & -version */ 121 + if (argn[0] == '-' && argn[1] == '-') { 122 + argn++; 123 + } 124 + if (strcmp(argn, "-help") == 0) { 125 + usage(0); 126 + } 127 + if (strcmp(argn, "-version") == 0) { 128 + puts(PACKAGE_STRING); 129 + exit(0); 130 + } 131 + } 132 + 116 133 toplevel = XtAppInitialize(&app_context, "XEyes", 117 134 options, XtNumber(options), &argc, argv, 118 135 NULL, arg, (Cardinal) 0); 119 - if (argc != 1) usage(); 136 + 137 + if (argc != 1) { 138 + fputs("Unknown argument(s):", stderr); 139 + for (int n = 1; n < argc; n++) { 140 + if ((n < (argc -1)) || (argv[n][0] == '-')) { 141 + fprintf(stderr, " %s", argv[n]); 142 + } 143 + } 144 + fputs("\n\n", stderr); 145 + usage(1); 146 + } 120 147 121 148 wm_delete_window = XInternAtom(XtDisplay(toplevel), "WM_DELETE_WINDOW", 122 149 False);