annotate build-aux/mk-octave-config-h.sh @ 30564:796f54d4ddbf stable

update Octave Project Developers copyright for the new year In files that have the "Octave Project Developers" copyright notice, update for 2021. In all .txi and .texi files except gpl.txi and gpl.texi in the doc/liboctave and doc/interpreter directories, change the copyright to "Octave Project Developers", the same as used for other source files. Update copyright notices for 2022 (not done since 2019). For gpl.txi and gpl.texi, change the copyright notice to be "Free Software Foundation, Inc." and leave the date at 2007 only because this file only contains the text of the GPL, not anything created by the Octave Project Developers. Add Paul Thomas to contributors.in.
author John W. Eaton <jwe@octave.org>
date Tue, 28 Dec 2021 18:22:40 -0500
parents e0e22183ffca
children fdc30b576333 243b51ec9ff0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 #! /bin/sh
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
2
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
3 ########################################################################
29357
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
4 ##
30564
796f54d4ddbf update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 30505
diff changeset
5 ## Copyright (C) 2016-2022 The Octave Project Developers
29357
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
6 ##
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
7 ## See the file COPYRIGHT.md in the top-level directory of this
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
8 ## distribution or <https://octave.org/copyright/>.
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
9 ##
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
10 ## This file is part of Octave.
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
11 ##
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
12 ## Octave is free software: you can redistribute it and/or modify it
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
13 ## under the terms of the GNU General Public License as published by
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
14 ## the Free Software Foundation, either version 3 of the License, or
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
15 ## (at your option) any later version.
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
16 ##
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
17 ## Octave is distributed in the hope that it will be useful, but
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
20 ## GNU General Public License for more details.
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
21 ##
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
22 ## You should have received a copy of the GNU General Public License
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
23 ## along with Octave; see the file COPYING. If not, see
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
24 ## <https://www.gnu.org/licenses/>.
bbbe4dcc7200 use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents: 27923
diff changeset
25 ##
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
26 ########################################################################
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27
21240
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
28 # Generate a header file that provides the public symbols from Octave's
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
29 # autoconf-generated config.h file. See the notes at the top of the
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
30 # generated octave-config.h file for more details.
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
31
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
32 SED=${SED:-sed}
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
33
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 if [ $# -ne 1 ]; then
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 echo "usage: mk-octave-config-h.sh CONFIG-FILE" 1>&2
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 exit 1
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 config_h_file=$1
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 cat << EOF
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
42 // DO NOT EDIT! Generated by mk-octave-config-h.sh.
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
44 ////////////////////////////////////////////////////////////////////////
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
45 //
30564
796f54d4ddbf update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 30505
diff changeset
46 // Copyright (C) 2016-2022 The Octave Project Developers
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
47 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
48 // See the file COPYRIGHT.md in the top-level directory of this
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
49 // distribution or <https://octave.org/copyright/>.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
50 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
51 // This file is part of Octave.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
52 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
53 // Octave is free software: you can redistribute it and/or modify it
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
54 // under the terms of the GNU General Public License as published by
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
55 // the Free Software Foundation, either version 3 of the License, or
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
56 // (at your option) any later version.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
57 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
58 // Octave is distributed in the hope that it will be useful, but
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
59 // WITHOUT ANY WARRANTY; without even the implied warranty of
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
60 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
61 // GNU General Public License for more details.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
62 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
63 // You should have received a copy of the GNU General Public License
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
64 // along with Octave; see the file COPYING. If not, see
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
65 // <https://www.gnu.org/licenses/>.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
66 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
67 ////////////////////////////////////////////////////////////////////////
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
29987
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
69 // All Octave source files should begin with
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
70 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
71 // #if defined (HAVE_CONFIG_H)
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
72 // # include "config.h"
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
73 // #endif
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
74 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
75 // All public Octave header files should have the form
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
76 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
77 // #if ! defined (INCLUSION_GUARD_SYMBOL)
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
78 // #define INCLUSION_GUARD_SYMBOL 1
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
79 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
80 // #include "octave-config.h"
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
81 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
82 // ... Contents of header file ...
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
83 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
84 // #endif
21240
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
85
29987
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
86 // In Octave source files, INCLUSION_GUARD_SYMBOL should have the form
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
87 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
88 // octave_NAME_h
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
89 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
90 // with NAME formed from the header file name with '-' replaced by '_'.
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
91 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
92 // It is safe to include octave-config.h unconditionally since it will
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
93 // expand to an empty file if it is included after Octave's
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
94 // autoconf-generated config.h file.
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
95 //
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
96 // Users of Octave's libraries should not need to include octave-config.h
79b5a8901efd * mk-octave-config-h.sh: Use '//' for initial comments.
John W. Eaton <jwe@octave.org>
parents: 29954
diff changeset
97 // since all of Octave's header files already include it.
21240
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
98
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 #if ! defined (octave_octave_config_h)
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 #define octave_octave_config_h 1
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101
21240
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
102 #if ! defined (OCTAVE_AUTOCONFIG_H_INCLUDED)
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
103
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
104 # if defined (__cplusplus)
27850
8384125d6f5f Include header that defines the macros with format constants.
Markus Mützel <markus.muetzel@gmx.de>
parents: 27737
diff changeset
105 # include <cinttypes>
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
106 # else
27850
8384125d6f5f Include header that defines the macros with format constants.
Markus Mützel <markus.muetzel@gmx.de>
parents: 27737
diff changeset
107 # include <inttypes.h>
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
108 # endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109
29953
e35442c969f5 provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents: 29688
diff changeset
110 # define OCTAVE_NAMESPACE_BEGIN namespace octave {
e35442c969f5 provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents: 29688
diff changeset
111 # define OCTAVE_NAMESPACE_END }
e35442c969f5 provide macros for beginning and ending octave namespace
John W. Eaton <jwe@octave.org>
parents: 29688
diff changeset
112
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
113 # if defined (__GNUC__)
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
114 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
23615
be7b884ac589 use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents: 23220
diff changeset
115 # define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__ ("[" #ver "]: " msg)))
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
116 # else
23615
be7b884ac589 use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents: 23220
diff changeset
117 # define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
118 # endif
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
119 # define OCTAVE_NORETURN __attribute__ ((__noreturn__))
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
120 # define OCTAVE_UNUSED __attribute__ ((__unused__))
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
122 # define HAVE_OCTAVE_DEPRECATED_ATTR 1
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
123 # define HAVE_OCTAVE_NORETURN_ATTR 1
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
124 # define HAVE_OCTAVE_UNUSED_ATTR 1
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
125 # else
23615
be7b884ac589 use version number in OCTAVE_DEPRECATED macro
John W. Eaton <jwe@octave.org>
parents: 23220
diff changeset
126 # define OCTAVE_DEPRECATED(ver, msg)
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
127 # define OCTAVE_NORETURN
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
128 # define OCTAVE_UNUSED
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
130 /* # undef HAVE_OCTAVE_DEPRECATED_ATTR */
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
131 /* # undef HAVE_OCTAVE_NORETURN_ATTR */
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
132 /* # undef HAVE_OCTAVE_UNUSED_ATTR */
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
133 # endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134
26164
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
135 # if defined (__MINGW32__)
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
136 /* MinGW requires special handling due to different format specifiers
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
137 * on different platforms. The macro __MINGW_PRINTF_FORMAT maps to
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
138 * either gnu_printf or ms_printf depending on where we are compiling
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
139 * to avoid warnings on format specifiers that are legal.
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
140 * See: https://bugzilla.mozilla.org/show_bug.cgi?id=1331349 */
27737
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
141 # if defined (__cplusplus)
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
142 # include <cstdio>
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
143 # else
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
144 # include <stdio.h>
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
145 # endif
527e25f7ee38 Add missing header for compile time format check for MinGW (bug #57270).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27486
diff changeset
146
26164
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
147 # define OCTAVE_FORMAT_PRINTF(stringIndex, firstToCheck) \
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
148 __attribute__ ((format (__MINGW_PRINTF_FORMAT, stringIndex, firstToCheck)))
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
149
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
150 # define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
151 # elif defined (__GNUC__)
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
152 /* The following attributes are used with gcc and clang compilers. */
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
153 # define OCTAVE_FORMAT_PRINTF(index, first) \
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
154 __attribute__ ((__format__(printf, index, first)))
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
155
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
156 # define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
157 # else
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
158 # define OCTAVE_FORMAT_PRINTF(index, first)
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
159
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
160 /* # undef HAVE_OCTAVE_FORMAT_PRINTF_ATTR */
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
161 # endif
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
162
23826
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
163 # if ! defined (OCTAVE_FALLTHROUGH)
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
164 # if defined (__cplusplus) && __cplusplus > 201402L
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
165 # define OCTAVE_FALLTHROUGH [[fallthrough]]
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
166 # elif defined (__GNUC__) && __GNUC__ < 7
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
167 # define OCTAVE_FALLTHROUGH ((void) 0)
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
168 # else
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
169 # define OCTAVE_FALLTHROUGH __attribute__ ((__fallthrough__))
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
170 # endif
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
171 # endif
d69021d58a61 avoid fallthrough warnings
John W. Eaton <jwe@octave.org>
parents: 23615
diff changeset
172
29954
4c88a452519c rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
John W. Eaton <jwe@octave.org>
parents: 29953
diff changeset
173 # define OCTAVE_PROVIDE_DEPRECATED_SYMBOLS 1
21726
f05a00e611ff use namespace for glob and fnmatch wrapper functions
John W. Eaton <jwe@octave.org>
parents: 21691
diff changeset
174
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
175 # if defined (__cplusplus)
21691
263d18409fdf Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents: 21357
diff changeset
176 template <typename T>
263d18409fdf Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents: 21357
diff changeset
177 static inline void
263d18409fdf Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents: 21357
diff changeset
178 octave_unused_parameter (const T&)
263d18409fdf Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents: 21357
diff changeset
179 { }
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
180 # else
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
181 # define octave_unused_parameter(param) (void) param;
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
182 # endif
21691
263d18409fdf Eliminate unused variable warnings for conditionally compiled code.
John W. Eaton <jwe@octave.org>
parents: 21357
diff changeset
183
30505
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
184 /* Defined to 1 if Octave libraries were built with visibility flags */
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
185 EOF
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
186
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
187 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_LIB_VISIBILITY_FLAGS.*$\)/# \1/p' $config_h_file
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
188
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
189 cat << EOF
e0e22183ffca Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents: 30488
diff changeset
190
29313
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
191 # if defined (OCTAVE_ENABLE_LIB_VISIBILITY_FLAGS)
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
192 # if defined (_WIN32) || defined (__CYGWIN__)
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
193 # if defined (__GNUC__)
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
194 /* GCC */
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
195 # define OCTAVE_EXPORT __attribute__ ((dllexport))
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
196 # define OCTAVE_IMPORT __attribute__ ((dllimport))
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
197 # else
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
198 /* MSVC */
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
199 # define OCTAVE_EXPORT __declspec(dllexport)
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
200 # define OCTAVE_IMPORT __declspec(dllimport)
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
201 # endif
29239
f6058c6e1b18 Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29238
diff changeset
202 # else
29313
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
203 /* All other platforms. */
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
204 # define OCTAVE_EXPORT __attribute__ ((visibility ("default")))
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
205 # define OCTAVE_IMPORT
29239
f6058c6e1b18 Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29238
diff changeset
206 # endif
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
207 # else
29313
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
208 # define OCTAVE_EXPORT
6dea3b384846 Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29239
diff changeset
209 # define OCTAVE_IMPORT
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
210 # endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211
29224
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
212 /* API macro for liboctave */
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
213 #if defined (OCTAVE_DLL)
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
214 # define OCTAVE_API OCTAVE_EXPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
215 #else
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
216 # define OCTAVE_API OCTAVE_IMPORT
29224
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
217 #endif
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
218
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
219 /* API macro for libinterp */
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
220 #if defined (OCTINTERP_DLL)
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
221 # define OCTINTERP_API OCTAVE_EXPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
222 #else
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
223 # define OCTINTERP_API OCTAVE_IMPORT
29224
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
224 #endif
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
225
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
226 /* API macro for the Array class in liboctave and liboctinterp */
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
227 #if (defined (OCTAVE_DLL) || defined (OCTINTERP_DLL))
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
228 # define OCTARRAY_API OCTAVE_EXPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
229 #else
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
230 # define OCTARRAY_API OCTAVE_IMPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
231 #endif
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
232
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
233 /* API macro for libinterp/graphics */
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
234 #if defined (OCTGRAPHICS_DLL)
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
235 # define OCTGRAPHICS_API OCTAVE_EXPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
236 #else
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
237 # define OCTGRAPHICS_API OCTAVE_IMPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
238 #endif
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
239
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
240 /* API macro for libgui */
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
241 #if defined (OCTGUI_DLL)
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
242 # define OCTGUI_API OCTAVE_EXPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
243 #else
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
244 # define OCTGUI_API OCTAVE_IMPORT
cc4a4df4e32f Add API tag for Array class that is exported from liboctave and liboctinterp (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents: 27923
diff changeset
245 #endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
246 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
248 octave_idx_type="`$SED -n 's/#define OCTAVE_IDX_TYPE \([_a-zA-Z][_a-zA-Z0-9]*\)/\1/p' $config_h_file`"
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
249
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250 if test -z "$octave_idx_type"; then
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
251 echo "mk-octave-config-h.sh: failed to find OCTAVE_IDX_TYPE in $config_h_file" 1>&2
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
252 exit 1
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
253 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
254
22867
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
255 octave_f77_int_type="`$SED -n 's/#define OCTAVE_F77_INT_TYPE \([_a-zA-Z][_a-zA-Z0-9]*\)/\1/p' $config_h_file`"
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
256
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
257 if test -z "$octave_f77_int_type"; then
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
258 echo "mk-octave-config-h.sh: failed to find OCTAVE_F77_INT_TYPE in $config_h_file" 1>&2
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
259 exit 1
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
260 fi
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
261
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
262 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263
21239
ffc9806bb300 mk-octave-config-h.sh: Correct typdef for octave_idx_type.
John W. Eaton <jwe@octave.org>
parents: 21229
diff changeset
264 typedef $octave_idx_type octave_idx_type;
22867
78f1d359dd8f define octave_f77_int_type in octave-config.h (bug #49776)
John W. Eaton <jwe@octave.org>
parents: 22755
diff changeset
265 typedef $octave_f77_int_type octave_f77_int_type;
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
266
22990
f71191aea679 provide macro declaring existence of f77 integer type
John W. Eaton <jwe@octave.org>
parents: 22867
diff changeset
267 # define OCTAVE_HAVE_F77_INT_TYPE 1
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
268
24538
2b273df71aa0 allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
269
2b273df71aa0 allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
270 # if defined (__cplusplus) && ! defined (OCTAVE_THREAD_LOCAL)
2b273df71aa0 allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
271 # define OCTAVE_THREAD_LOCAL
2b273df71aa0 allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
272 # endif
2b273df71aa0 allow experimenting with thread_local storage
John W. Eaton <jwe@octave.org>
parents: 24534
diff changeset
273
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
274 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21240
diff changeset
276 if grep "#define OCTAVE_ENABLE_FLOAT_TRUNCATE 1" $config_h_file > /dev/null; then
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
277 echo "# define OCTAVE_FLOAT_TRUNCATE volatile"
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
278 else
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
279 echo "# define OCTAVE_FLOAT_TRUNCATE"
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281
22144
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
282 echo ""
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
283
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
284 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_64.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
285 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_BOUNDS_CHECK.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
286 $SED -n 's/#\(\(undef\|define\) OCTAVE_ENABLE_OPENMP.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
287 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_LONG_LONG_INT.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
288 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT.*$\)/# \1/p' $config_h_file
30488
abb4823df535 with C++17, match malloc/free for MEX memory (bug #61472)
John W. Eaton <jwe@octave.org>
parents: 29987
diff changeset
289 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_STD_PMR_POLYMORPHIC_ALLOCATOR.*$\)/# \1/p' $config_h_file
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
290 $SED -n 's/#\(\(undef\|define\) OCTAVE_HAVE_OVERLOAD_CHAR_INT8_TYPES.*$\)/# \1/p' $config_h_file
23014
7a9313d27cea define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents: 22990
diff changeset
291 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_F77_INT_TYPE.*$\)/# \1/p' $config_h_file
7a9313d27cea define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents: 22990
diff changeset
292 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_IDX_TYPE.*$\)/# \1/p' $config_h_file
29688
b36e83cdbf05 ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents: 29359
diff changeset
293 $SED -n 's/#\(\(undef\|define\) OCTAVE_SIZEOF_INT.*$\)/# \1/p' $config_h_file
21302
8376de2eaf00 define OCTAVE_HAVE_FAST_INT_OPS in octave-config.h
John W. Eaton <jwe@octave.org>
parents: 21301
diff changeset
294
26164
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
295 cat << EOF
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
296
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
297 # if defined (OCTAVE_ENABLE_64)
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
298 # define OCTAVE_IDX_TYPE_FORMAT PRId64
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
299 # else
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
300 # define OCTAVE_IDX_TYPE_FORMAT PRId32
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
301 # endif
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
302
7f6a50f73625 Silence compiler warnings about format identifier for octave_idx_type (bug #55046).
Markus Mützel <markus.muetzel@gmx.de>
parents: 26147
diff changeset
303 EOF
22144
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
304
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
305 $SED -n 's/#\(\(undef\|define\) gid_t.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
306 $SED -n 's/#\(\(undef\|define\) uid_t.*$\)/# \1/p' $config_h_file
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
307 $SED -n 's/#\(\(undef\|define\) nlink_t.*$\)/# \1/p' $config_h_file
22000
f471f513ffd0 also define gid_t, uid_t, and nlink_t in octave-config.h (bug #48332)
John W. Eaton <jwe@octave.org>
parents: 21850
diff changeset
308
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21240
diff changeset
309 if grep "#undef HAVE_DEV_T" $config_h_file > /dev/null; then
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
311 typedef short dev_t;
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
312 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
313 else
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
314 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315 /* typedef short dev_t; */
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
316 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
317 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
318
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21240
diff changeset
319 if grep "#undef HAVE_INO_T" $config_h_file > /dev/null; then
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
321 typedef unsigned long ino_t;
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
322 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
323 else
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
324 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
325 /* typedef unsigned long ino_t; */
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
326 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
327 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
328
22144
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
329 echo ""
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
330
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
331 have_roundl=no
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 21240
diff changeset
332 if grep "#define HAVE_ROUNDL" $config_h_file > /dev/null; then
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 have_roundl=yes
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
336 sizeof_long_double="`$SED -n 's/#define SIZEOF_LONG_DOUBLE \([0-9]*\)/\1/p' $config_h_file`"
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
338 if test -z "$sizeof_long_double"; then
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 echo "mk-octave-config-h.sh: failed to find SIZEOF_LONG_DOUBLE in $config_h_file" 1>&2
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
340 exit 1
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
341 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343 if test $sizeof_long_double -ge 10 && test $have_roundl = yes; then
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
344 echo "# define OCTAVE_INT_USE_LONG_DOUBLE 1"
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
345 if test $sizeof_long_double -lt 16; then
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346 cat << EOF
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
347 # if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__)
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
348 # define OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED 1
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
349 # endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
350 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
351 else
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
352 cat << EOF
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
353 /* # undef OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED */
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
354 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
355 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
356 else
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
357 cat << EOF
21850
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
358 /* # undef OCTAVE_INT_USE_LONG_DOUBLE */
0507f0d2135d indent preprocessor directives in octave-config.h and oct-conf-post.h
John W. Eaton <jwe@octave.org>
parents: 21726
diff changeset
359 /* # undef OCTAVE_ENSURE_LONG_DOUBLE_OPERATIONS_ARE_NOT_TRUNCATED */
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360 EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 fi
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362
22144
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
363 echo ""
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
364
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
365 $SED -n 's/#\(\(undef\|define\) F77_USES_.*$\)/# \1/p' $config_h_file
22144
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
366
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
367 echo ""
469a4142c4cf * mk-octave-config-h.sh: Improve readability of output.
John W. Eaton <jwe@octave.org>
parents: 22143
diff changeset
368
22468
6f5cde55e225 build: ensure GNU sed is used in mk-octave-config-h.sh
Mike Miller <mtmiller@octave.org>
parents: 22144
diff changeset
369 $SED -n 's/#\(\(undef\|define\) F77_FUNC.*$\)/# \1/p' $config_h_file
21357
d00efda9bb92 Insert F77_FUNC defines into octave-config.h (Bug #47250)
John D
parents: 21354
diff changeset
370
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
371 cat << EOF
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
373 #endif
21240
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
374
7af5ca01ecac allow octave-config.h to be included unconditionally
John W. Eaton <jwe@octave.org>
parents: 21239
diff changeset
375 #endif
21229
a83e7a384ee0 create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376 EOF