summaryrefslogtreecommitdiff
path: root/util
AgeCommit message (Collapse)Author
2023-11-12remove substitution for EXEEXT_FOR_BUILD, not defined in automakeThomas E. Dickey
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2023-05-27issue #18: cross-build issue in utilThomas E. Dickey
Modify link rule for utils/makestrs to use $(CC_FOR_BUILD) directly, avoiding libtool flags added when cross-compiling the library. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2022-06-18fixes for gcc13 warningsThomas E. Dickey
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-07-14turn off indent in generated filesThomas E. Dickey
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-07-07indent'd like "x-indent.sh", but with a more complete set of typedefs - seeThomas E. Dickey
https://github.com/ThomasDickey/cindent-snapshots/blob/master/scripts/xxx-profile Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-05-03libXt: util: don't link makestrs with target cflagsFabrice Fontaine
The line: AM_CFLAGS = $(XT_CFLAGS) in util/Makefile.am is wrong because it adds target cflags to the compilation of makestrs, which is built for the build machine, which leads to build failures when cross-compiling. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/x11r7/xlib_libXt/0001-util-don-t-link-makestrs-with-target-cflags.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-04-15Referring to the xterm FAQThomas E. Dickey
https://invisible-island.net/xterm/xterm.faq.html#building_it I would like to add an optional feature which makes the String typedef "const" if _CONST_X_STRING is defined. Modifying the Intrinsic.h header is only a partial solution because the library has not been modified to take advantage of this (if it had, most of the const-warnings from gcc would go away). This change modifies the header file as well as the makestrs.c program which generates Shell.h and StringDefs.h so that they use String-casts rather than char*-casts (reducing the warnings seen when compiling with Xt's header files). Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-03-15fix bug introduced byThomas E. Dickey
commit 57c8b133bbcf38a9a1e345eabeeabe2a3e07c1c8, which modified util/makestrs.c to avoid a shadowing warning of a function parameter versus global variable, but overlooked use of the parameter within the functions. That caused all of the resource strings in Shell.h to have the same value. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-01-11resolv:shadows a global declarationWalter Harms
2015-01-25makestrs: Use asprintf() if availableAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: Replace strcpy()+strcat() calls with snprintf() callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: Replace malloc()+strcpy() calls with strdup() callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-25makestrs: use strchr() instead of index()Alan Coopersmith
Besides being supported by more standards, strchr() has the important characteristic of having a prototype included in <string.h> on Solaris so that 64-bit compiles know it returns a pointer, not an integer. (On Solaris, index() is only found in <strings.h>, for SunOS compatibility.) Without this fix, makestrs segfaulted in 64-bit builds on Solaris after commit f9baaf55ff8cbd4bf018a34f181eda30d03b20dc switched to <string.h>. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-01-08Use string.h instead of X11/Xos.h.Thomas Klausner
Long long ago, Xos.h was needed to choose between <string.h> & <strings.h> depending on the OS in use. Today we can rely on C89 & later providing <string.h> everywhere for us. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-07Fix cross-compilationThierry Reding
When cross-compiling against a sysroot for instance, a --sysroot option is typically passed via the CPPFLAGS variable. This can cause the build to break in the util subdirectory which requires the CPPFLAGS to be set for the build system. Solve this by using the value of CPPFLAGS_FOR_BUILD for CPPFLAGS in the util subdirectory. Cross-compile setups can override the variable when calling the configure script. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03makestrs: Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Strip trailing whitespaceAlan Coopersmith
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-06Don't need to use target-specific CFLAGS for makestrsAlan Coopersmith
It's the only thing built in that directory, so we can use AM_CFLAGS and drop the requirement for AM_PROG_CC_C_O in configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-05Remove ancient #if defined(macII) hack for A/UX from makestrs.cAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-05makestrs: Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONSGaetan Nadon
The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: Use $(SED) from AC_PROG_SED supplied by XORG_DEFAULT_OPTIONSGaetan Nadon
Use the appropriate platform version of sed Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: remove unsed $(appman_DATA)Gaetan Nadon
Man page is not installed, this variable is not defined. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-07Fix make distcheck (./util/makestrs.1 left after distclean)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-12-07Don't install makestrs on the systemRémi Cardona
It has no known outside-libXt users. Let's not install it and its man page. Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-06Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith
Includes adding many $(AM_V_GEN) calls for the AM_SILENT_RULES included by XORG_DEFAULT_OPTIONS when automake-1.11 or newer is used Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-03Fix compilation of host tools in cross-compilation caseThomas Petazzoni
At 36e9f0d351afbf7fd2595990b2d39e7c551f6420, a fix was added to use the host gcc instead of the target gcc when cross-compiling libXt. This fix works, but is not solve the whole problem: the CFLAGS and LDFLAGS used with the host compilers are the one defined for the target compiler (and the flags for both compilers might be very different). This new fix let libXt obey to CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD environment variables, and use them to compile the host tools in util/. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-01-30Janitor: ansification, make distcheck, compiler warnings, .gitignore.Paulo Cesar Pereira de Andrade
Most "compiler" warnings were actually sparse warnings, due to assigning a integer to a pointer, or an external symbol without a previous declaration.
2008-10-20X.Org Bug 17942: libXt manpage formattingPeter Breitenlohner
<http://bugs.freedesktop.org/show_bug.cgi?id=17942>
2008-09-23configure.ac: Use native compiler for build toolsJohn Tapsell
makestrs is used during the build, so use the native compiler (either gcc or cc in $PATH, can be overridden as $CC_FOR_BUILD) instead of the (possibly cross-) compiler.
2007-01-02Bug 9514: Markup error in makestrs.1x man pageEric S. Raymond
<https://bugs.freedesktop.org/show_bug.cgi?id=9514>
2006-10-27Add more generated files to ignore.Eric Anholt
2006-07-13renamed: .cvsignore -> .gitignoreAlan Coopersmith
2005-12-10Add configure option to install makestrs and its manpage.MODULAR_COPYKevin E Martin
Add makestrs man page.
2005-07-09Add .cvsignore filesKeith Packard
2005-05-24Make source directory for templates configurableXORG-6_8_99_9XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Alexander Gottwald
2005-05-18- conditionally include config.h in xc/lib/Xt sourcesXORG-6_8_99_8Søren Sandmann Pedersen
- add build system for lib/Xt
2005-05-15Add settings to bring Solaris builds closer to the ones Sun packages inAlan Coopersmith
Solaris. Adds "BuildLikeSun" options for areas Sun deviates from the way Xorg is packaged on other platforms. See comment in sun.cf for details. Also, use system-provided Expat on Solaris 10 and other cleanups. Set shared library versions for Solaris builds to match versions used in Solaris. Add missing SharedXfixesReqs and SharedXdamageReqs. Add -solarisabi option to create XtStrings code compatibile with existing Solaris binaries. (Off by default, on if "BuildLikeSun" is set in sun.cf)
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16Kaleb Keithley
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley