annotate src/gl2ps-1-configure.patch @ 3834:291c610413cd

use autotools for building gl2ps on Linux systems
author John W. Eaton <jwe@octave.org>
date Wed, 04 Mar 2015 17:25:01 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3834
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 diff -uNr a/aclocal.m4 b/aclocal.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 --- a/aclocal.m4 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 +++ b/aclocal.m4 2014-12-12 15:37:48.132166030 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 @@ -0,0 +1,9751 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 +# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 +# Copyright (C) 1996-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 +# This program is distributed in the hope that it will be useful,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 +# PARTICULAR PURPOSE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 +m4_ifndef([AC_AUTOCONF_VERSION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 +[m4_warning([this file was generated for autoconf 2.69.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 +You have another version of autoconf. It may work, but is not guaranteed to.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 +If you have problems, you may need to regenerate the build system entirely.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 +To do so, use the procedure documented by the package, typically 'autoreconf'.])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 +# Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 +# Written by Gordon Matzigkeit, 1996
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 +# This file is free software; the Free Software Foundation gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 +# unlimited permission to copy and/or distribute it, with or without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 +# modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 +m4_define([_LT_COPYING], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 +# Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 +# Written by Gordon Matzigkeit, 1996
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 +# This file is part of GNU Libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 +# GNU Libtool is free software; you can redistribute it and/or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 +# modify it under the terms of the GNU General Public License as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 +# published by the Free Software Foundation; either version 2 of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 +# the License, or (at your option) any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 +# As a special exception to the GNU General Public License,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 +# if you distribute this file as part of a program or library that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 +# is built using GNU Libtool, you may include this file under the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 +# same distribution terms that you use for the rest of that program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 +# GNU Libtool is distributed in the hope that it will be useful,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 +# GNU General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 +# along with GNU Libtool; see the file COPYING. If not, a copy
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 +# obtained by writing to the Free Software Foundation, Inc.,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 +# serial 57 LT_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 +# LT_PREREQ(VERSION)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 +# Complain and exit if this libtool version is less that VERSION.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74 +m4_defun([LT_PREREQ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 + [m4_default([$3],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 + [m4_fatal([Libtool version $1 or higher is required],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78 + 63)])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 + [$2])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 +# _LT_CHECK_BUILDDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
84 +# Complain if the absolute build directory name contains unusual characters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85 +m4_defun([_LT_CHECK_BUILDDIR],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 +[case `pwd` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 + *\ * | *\ *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 +# LT_INIT([OPTIONS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 +AC_DEFUN([LT_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 +AC_BEFORE([$0], [LT_LANG])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99 +AC_BEFORE([$0], [LT_OUTPUT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 +AC_BEFORE([$0], [LTDL_INIT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 +m4_require([_LT_CHECK_BUILDDIR])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 +dnl unless we require an AC_DEFUNed macro:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 +AC_REQUIRE([LTSUGAR_VERSION])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 +AC_REQUIRE([LTVERSION_VERSION])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 +m4_require([_LT_PROG_LTMAIN])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114 +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 +dnl Parse OPTIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 +_LT_SET_OPTIONS([$0], [$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119 +# This can be used to rebuild libtool when needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
120 +LIBTOOL_DEPS="$ltmain"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 +# Always use our own libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124 +AC_SUBST(LIBTOOL)dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126 +_LT_SETUP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128 +# Only expand once:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129 +m4_define([LT_INIT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
130 +])# LT_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
131 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140 +# _LT_CC_BASENAME(CC)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 +# -------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 +m4_defun([_LT_CC_BASENAME],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 +[for cc_temp in $1""; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 + case $cc_temp in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148 + \-*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 + *) break;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
156 +# _LT_FILEUTILS_DEFAULTS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
157 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
158 +# It is okay to use these file commands and assume they have been set
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
159 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160 +m4_defun([_LT_FILEUTILS_DEFAULTS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 +[: ${CP="cp -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162 +: ${MV="mv -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 +: ${RM="rm -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 +])# _LT_FILEUTILS_DEFAULTS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167 +# _LT_SETUP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168 +# ---------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 +m4_defun([_LT_SETUP],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172 +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177 +_LT_DECL([], [host_alias], [0], [The host system])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178 +_LT_DECL([], [host], [0])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179 +_LT_DECL([], [host_os], [0])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 +_LT_DECL([], [build_alias], [0], [The build system])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 +_LT_DECL([], [build], [0])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183 +_LT_DECL([], [build_os], [0])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
184 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
185 +AC_REQUIRE([AC_PROG_CC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186 +AC_REQUIRE([LT_PATH_LD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
187 +AC_REQUIRE([LT_PATH_NM])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189 +AC_REQUIRE([AC_PROG_LN_S])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
190 +test -z "$LN_S" && LN_S="ln -s"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
192 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
195 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
196 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
197 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
198 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
199 +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
200 +m4_require([_LT_CMD_RELOAD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
201 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202 +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
205 +m4_require([_LT_WITH_SYSROOT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
206 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207 +_LT_CONFIG_LIBTOOL_INIT([
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208 +# See if we are running on zsh, and set the options which allow our
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 +# commands through without removal of \ escapes INIT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210 +if test -n "\${ZSH_VERSION+set}" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
211 + setopt NO_GLOB_SUBST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 +if test -n "${ZSH_VERSION+set}" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215 + setopt NO_GLOB_SUBST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
217 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 +_LT_CHECK_OBJDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220 +m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
222 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
223 +aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
224 + # AIX sometimes has problems with the GCC collect2 program. For some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
225 + # reason, if we set the COLLECT_NAMES environment variable, the problems
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
226 + # vanish in a puff of smoke.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
227 + if test "X${COLLECT_NAMES+set}" != Xset; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
228 + COLLECT_NAMES=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
229 + export COLLECT_NAMES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
230 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
231 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
232 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
234 +# Global variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
235 +ofile=libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
236 +can_build_shared=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
238 +# All known linkers require a `.a' archive for static linking (except MSVC,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
239 +# which needs '.lib').
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
240 +libext=a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
241 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
242 +with_gnu_ld="$lt_cv_prog_gnu_ld"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
243 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
244 +old_CC="$CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
245 +old_CFLAGS="$CFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
246 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
247 +# Set sane defaults for various variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
248 +test -z "$CC" && CC=cc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
249 +test -z "$LTCC" && LTCC=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
250 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
251 +test -z "$LD" && LD=ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
252 +test -z "$ac_objext" && ac_objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
253 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
254 +_LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
255 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
256 +# Only perform the check for file, if the check method requires it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
257 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
258 +case $deplibs_check_method in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
259 +file_magic*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
260 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
261 + _LT_PATH_MAGIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
262 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
263 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
264 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
265 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
266 +# Use C for the default configuration in the libtool script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
267 +LT_SUPPORTED_TAG([CC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
268 +_LT_LANG_C_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
269 +_LT_LANG_DEFAULT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
270 +_LT_CONFIG_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
271 +])# _LT_SETUP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
272 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
273 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
274 +# _LT_PREPARE_SED_QUOTE_VARS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
275 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
276 +# Define a few sed substitution that help us do robust quoting.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
277 +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
278 +[# Backslashify metacharacters that are still active within
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
279 +# double-quoted strings.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
280 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
281 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
282 +# Same as above, but do not quote variable references.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
283 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
284 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
285 +# Sed substitution to delay expansion of an escaped shell variable in a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
286 +# double_quote_subst'ed string.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
287 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
288 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
289 +# Sed substitution to delay expansion of an escaped single quote.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
290 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
291 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
292 +# Sed substitution to avoid accidental globbing in evaled expressions
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
293 +no_glob_subst='s/\*/\\\*/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
294 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
295 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
296 +# _LT_PROG_LTMAIN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
297 +# ---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
298 +# Note that this code is called both from `configure', and `config.status'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
299 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
300 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
301 +# so we pass a copy along to make sure it has a sensible value anyway.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
302 +m4_defun([_LT_PROG_LTMAIN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
303 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
304 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
305 +ltmain="$ac_aux_dir/ltmain.sh"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
306 +])# _LT_PROG_LTMAIN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
307 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
308 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
309 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
310 +# So that we can recreate a full libtool script including additional
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
311 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
312 +# in macros and then make a single call at the end using the `libtool'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
313 +# label.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
314 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
315 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
316 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
317 +# ----------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
318 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
319 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
320 +[m4_ifval([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
321 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
322 + [$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
323 +])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
324 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
325 +# Initialize.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
326 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
327 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
328 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
329 +# _LT_CONFIG_LIBTOOL([COMMANDS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
330 +# ------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
331 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
332 +m4_define([_LT_CONFIG_LIBTOOL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
333 +[m4_ifval([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
334 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
335 + [$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
336 +])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
337 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
338 +# Initialize.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
339 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
340 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
341 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
342 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
343 +# -----------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
344 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
345 +[_LT_CONFIG_LIBTOOL([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
346 +_LT_CONFIG_LIBTOOL_INIT([$2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
347 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
348 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
349 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
350 +# _LT_FORMAT_COMMENT([COMMENT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
351 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
352 +# Add leading comment marks to the start of each line, and a trailing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
353 +# full-stop to the whole comment if one is not present already.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
354 +m4_define([_LT_FORMAT_COMMENT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
355 +[m4_ifval([$1], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
356 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
357 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
358 +)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
360 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
361 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
362 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
363 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
364 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
365 +# -------------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
366 +# CONFIGNAME is the name given to the value in the libtool script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
367 +# VARNAME is the (base) name used in the configure script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
368 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
369 +# VARNAME. Any other value will be used directly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
370 +m4_define([_LT_DECL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
371 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
372 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
373 + [m4_ifval([$1], [$1], [$2])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
374 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
375 + m4_ifval([$4],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
376 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
377 + lt_dict_add_subkey([lt_decl_dict], [$2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
378 + [tagged?], [m4_ifval([$5], [yes], [no])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
379 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
380 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
381 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
382 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
383 +# --------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
384 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
385 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
386 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
387 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
388 +# ------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
389 +m4_define([lt_decl_tag_varnames],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
390 +[_lt_decl_filter([tagged?], [yes], $@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
391 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
392 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
393 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
394 +# ---------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
395 +m4_define([_lt_decl_filter],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
396 +[m4_case([$#],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
397 + [0], [m4_fatal([$0: too few arguments: $#])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
398 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
399 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
400 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
401 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
402 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
403 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
404 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
405 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
406 +# --------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
407 +m4_define([lt_decl_quote_varnames],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
408 +[_lt_decl_filter([value], [1], $@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
409 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
410 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
411 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
412 +# ---------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
413 +m4_define([lt_decl_dquote_varnames],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
414 +[_lt_decl_filter([value], [2], $@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
415 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
416 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
417 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
418 +# ---------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
419 +m4_define([lt_decl_varnames_tagged],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
420 +[m4_assert([$# <= 2])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
421 +_$0(m4_quote(m4_default([$1], [[, ]])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
422 + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
423 + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
424 +m4_define([_lt_decl_varnames_tagged],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
425 +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
426 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
427 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
428 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
429 +# ------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
430 +m4_define([lt_decl_all_varnames],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
431 +[_$0(m4_quote(m4_default([$1], [[, ]])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
432 + m4_if([$2], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
433 + m4_quote(lt_decl_varnames),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
434 + m4_quote(m4_shift($@))))[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
435 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
436 +m4_define([_lt_decl_all_varnames],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
437 +[lt_join($@, lt_decl_varnames_tagged([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
438 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
439 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
440 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
442 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
443 +# ------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
444 +# Quote a variable value, and forward it to `config.status' so that its
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
445 +# declaration there will have the same value as in `configure'. VARNAME
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
446 +# must have a single quote delimited value for this to work.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
447 +m4_define([_LT_CONFIG_STATUS_DECLARE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
448 +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
449 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
450 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
451 +# _LT_CONFIG_STATUS_DECLARATIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
452 +# ------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
453 +# We delimit libtool config variables with single quotes, so when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
454 +# we write them to config.status, we have to be sure to quote all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
455 +# embedded single quotes properly. In configure, this macro expands
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
456 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
457 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
458 +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
459 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
460 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
461 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
462 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
463 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
464 +# _LT_LIBTOOL_TAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
465 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
466 +# Output comment and list of tags supported by the script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
467 +m4_defun([_LT_LIBTOOL_TAGS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
468 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
469 +available_tags="_LT_TAGS"dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
470 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
471 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
472 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
473 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
474 +# -----------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
475 +# Extract the dictionary values for VARNAME (optionally with TAG) and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
476 +# expand to a commented shell variable setting:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
477 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
478 +# # Some comment about what VAR is for.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
479 +# visible_name=$lt_internal_name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
480 +m4_define([_LT_LIBTOOL_DECLARE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
481 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
482 + [description])))[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
483 +m4_pushdef([_libtool_name],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
484 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
485 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
486 + [0], [_libtool_name=[$]$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
487 + [1], [_libtool_name=$lt_[]$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
488 + [2], [_libtool_name=$lt_[]$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
489 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
490 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
491 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
492 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
493 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
494 +# _LT_LIBTOOL_CONFIG_VARS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
495 +# -----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
496 +# Produce commented declarations of non-tagged libtool config variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
497 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
498 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
499 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
500 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
501 +[m4_foreach([_lt_var],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
502 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
503 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
504 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
505 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
506 +# _LT_LIBTOOL_TAG_VARS(TAG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
507 +# -------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
508 +m4_define([_LT_LIBTOOL_TAG_VARS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
509 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
510 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
511 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
512 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
513 +# _LT_TAGVAR(VARNAME, [TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
514 +# ------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
515 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
517 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
518 +# _LT_CONFIG_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
519 +# -------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
520 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
521 +# variables for single and double quote escaping we saved from calls
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
522 +# to _LT_DECL, we can put quote escaped variables declarations
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
523 +# into `config.status', and then the shell code to quote escape them in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
524 +# for loops in `config.status'. Finally, any additional code accumulated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
525 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
526 +m4_defun([_LT_CONFIG_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
527 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
528 + dnl If the libtool generation code has been placed in $CONFIG_LT,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
529 + dnl instead of duplicating it all over again into config.status,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
530 + dnl then we will have config.status run $CONFIG_LT later, so it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
531 + dnl needs to know what name is stored there:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
532 + [AC_CONFIG_COMMANDS([libtool],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
533 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
534 + dnl If the libtool generation code is destined for config.status,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
535 + dnl expand the accumulated commands and init code now:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
536 + [AC_CONFIG_COMMANDS([libtool],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
537 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
538 +])#_LT_CONFIG_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
539 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
540 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
541 +# Initialize.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
542 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
543 +[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
544 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
545 +# The HP-UX ksh and POSIX shell print the target directory to stdout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
546 +# if CDPATH is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
547 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
548 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
549 +sed_quote_subst='$sed_quote_subst'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
550 +double_quote_subst='$double_quote_subst'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
551 +delay_variable_subst='$delay_variable_subst'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
552 +_LT_CONFIG_STATUS_DECLARATIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
553 +LTCC='$LTCC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
554 +LTCFLAGS='$LTCFLAGS'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
555 +compiler='$compiler_DEFAULT'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
556 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
557 +# A function that is used when there is no print builtin or printf.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
558 +func_fallback_echo ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
559 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
560 + eval 'cat <<_LTECHO_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
561 +\$[]1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
562 +_LTECHO_EOF'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
563 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
564 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
565 +# Quote evaled strings.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
566 +for var in lt_decl_all_varnames([[ \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
567 +]], lt_decl_quote_varnames); do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
568 + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
569 + *[[\\\\\\\`\\"\\\$]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
570 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
571 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
572 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
573 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
574 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
575 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
576 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
577 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
578 +# Double-quote double-evaled strings.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
579 +for var in lt_decl_all_varnames([[ \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
580 +]], lt_decl_dquote_varnames); do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
581 + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
582 + *[[\\\\\\\`\\"\\\$]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
583 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
584 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
585 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
586 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
587 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
588 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
589 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
590 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
591 +_LT_OUTPUT_LIBTOOL_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
592 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
593 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
594 +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
595 +# ------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
596 +# Generate a child script FILE with all initialization necessary to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
597 +# reuse the environment learned by the parent script, and make the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
598 +# file executable. If COMMENT is supplied, it is inserted after the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
599 +# `#!' sequence but before initialization text begins. After this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
600 +# macro, additional text can be appended to FILE to form the body of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
601 +# the child script. The macro ends with non-zero status if the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
602 +# file could not be fully written (such as if the disk is full).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
603 +m4_ifdef([AS_INIT_GENERATED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
604 +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
605 +[m4_defun([_LT_GENERATED_FILE_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
606 +[m4_require([AS_PREPARE])]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
607 +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
608 +[lt_write_fail=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
609 +cat >$1 <<_ASEOF || lt_write_fail=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
610 +#! $SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
611 +# Generated by $as_me.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
612 +$2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
613 +SHELL=\${CONFIG_SHELL-$SHELL}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
614 +export SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
615 +_ASEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
616 +cat >>$1 <<\_ASEOF || lt_write_fail=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
617 +AS_SHELL_SANITIZE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
618 +_AS_PREPARE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
619 +exec AS_MESSAGE_FD>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
620 +_ASEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
621 +test $lt_write_fail = 0 && chmod +x $1[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
622 +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
623 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
624 +# LT_OUTPUT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
625 +# ---------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
626 +# This macro allows early generation of the libtool script (before
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
627 +# AC_OUTPUT is called), incase it is used in configure for compilation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
628 +# tests.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
629 +AC_DEFUN([LT_OUTPUT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
630 +[: ${CONFIG_LT=./config.lt}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
631 +AC_MSG_NOTICE([creating $CONFIG_LT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
632 +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
633 +[# Run this file to recreate a libtool stub with the current configuration.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
634 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
635 +cat >>"$CONFIG_LT" <<\_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
636 +lt_cl_silent=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
637 +exec AS_MESSAGE_LOG_FD>>config.log
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
638 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
639 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
640 + AS_BOX([Running $as_me.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
641 +} >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
642 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
643 +lt_cl_help="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
644 +\`$as_me' creates a local libtool stub from the current configuration,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
645 +for use in further configure time tests before the real libtool is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
646 +generated.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
647 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
648 +Usage: $[0] [[OPTIONS]]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
650 + -h, --help print this help, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
651 + -V, --version print version number, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
652 + -q, --quiet do not print progress messages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
653 + -d, --debug don't remove temporary files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
654 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
655 +Report bugs to <bug-libtool@gnu.org>."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
656 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
657 +lt_cl_version="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
658 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
659 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
660 +configured by $[0], generated by m4_PACKAGE_STRING.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
661 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
662 +Copyright (C) 2011 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
663 +This config.lt script is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
664 +gives unlimited permision to copy, distribute and modify it."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
665 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
666 +while test $[#] != 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
667 +do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
668 + case $[1] in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
669 + --version | --v* | -V )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
670 + echo "$lt_cl_version"; exit 0 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
671 + --help | --h* | -h )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
672 + echo "$lt_cl_help"; exit 0 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
673 + --debug | --d* | -d )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
674 + debug=: ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
675 + --quiet | --q* | --silent | --s* | -q )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
676 + lt_cl_silent=: ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
677 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
678 + -*) AC_MSG_ERROR([unrecognized option: $[1]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
679 +Try \`$[0] --help' for more information.]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
680 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
681 + *) AC_MSG_ERROR([unrecognized argument: $[1]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
682 +Try \`$[0] --help' for more information.]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
683 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
684 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
685 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
686 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
687 +if $lt_cl_silent; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
688 + exec AS_MESSAGE_FD>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
689 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
690 +_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
692 +cat >>"$CONFIG_LT" <<_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
693 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
694 +_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
695 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
696 +cat >>"$CONFIG_LT" <<\_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
697 +AC_MSG_NOTICE([creating $ofile])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
698 +_LT_OUTPUT_LIBTOOL_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
699 +AS_EXIT(0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
700 +_LTEOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
701 +chmod +x "$CONFIG_LT"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
702 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
703 +# configure is writing to config.log, but config.lt does its own redirection,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
704 +# appending to config.log, which fails on DOS, as config.log is still kept
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
705 +# open by configure. Here we exec the FD to /dev/null, effectively closing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
706 +# config.log, so it can be properly (re)opened and appended to by config.lt.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
707 +lt_cl_success=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
708 +test "$silent" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
709 + lt_config_lt_args="$lt_config_lt_args --quiet"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
710 +exec AS_MESSAGE_LOG_FD>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
711 +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
712 +exec AS_MESSAGE_LOG_FD>>config.log
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
713 +$lt_cl_success || AS_EXIT(1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
714 +])# LT_OUTPUT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
715 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
716 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
717 +# _LT_CONFIG(TAG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
718 +# ---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
719 +# If TAG is the built-in tag, create an initial libtool script with a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
720 +# default configuration from the untagged config vars. Otherwise add code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
721 +# to config.status for appending the configuration named by TAG from the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
722 +# matching tagged config vars.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
723 +m4_defun([_LT_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
724 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
725 +_LT_CONFIG_SAVE_COMMANDS([
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
726 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
727 + m4_if(_LT_TAG, [C], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
728 + # See if we are running on zsh, and set the options which allow our
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
729 + # commands through without removal of \ escapes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
730 + if test -n "${ZSH_VERSION+set}" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
731 + setopt NO_GLOB_SUBST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
732 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
733 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
734 + cfgfile="${ofile}T"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
735 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
736 + $RM "$cfgfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
737 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
738 + cat <<_LT_EOF >> "$cfgfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
739 +#! $SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
740 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
741 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
742 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
743 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
744 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
745 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
746 +_LT_COPYING
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
747 +_LT_LIBTOOL_TAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
748 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
749 +# ### BEGIN LIBTOOL CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
750 +_LT_LIBTOOL_CONFIG_VARS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
751 +_LT_LIBTOOL_TAG_VARS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
752 +# ### END LIBTOOL CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
753 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
754 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
756 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
757 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
758 + cat <<\_LT_EOF >> "$cfgfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
759 +# AIX sometimes has problems with the GCC collect2 program. For some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
760 +# reason, if we set the COLLECT_NAMES environment variable, the problems
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
761 +# vanish in a puff of smoke.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
762 +if test "X${COLLECT_NAMES+set}" != Xset; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
763 + COLLECT_NAMES=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
764 + export COLLECT_NAMES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
765 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
766 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
767 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
768 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
769 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
770 + _LT_PROG_LTMAIN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
771 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
772 + # We use sed instead of cat because bash on DJGPP gets confused if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
773 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
774 + # text mode, it properly converts lines to CR/LF. This bash problem
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
775 + # is reportedly fixed, but why not run on old versions too?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
776 + sed '$q' "$ltmain" >> "$cfgfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
777 + || (rm -f "$cfgfile"; exit 1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
778 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
779 + _LT_PROG_REPLACE_SHELLFNS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
781 + mv -f "$cfgfile" "$ofile" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
782 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
783 + chmod +x "$ofile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
784 +],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
785 +[cat <<_LT_EOF >> "$ofile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
786 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
787 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
788 +dnl in a comment (ie after a #).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
789 +# ### BEGIN LIBTOOL TAG CONFIG: $1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
790 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
791 +# ### END LIBTOOL TAG CONFIG: $1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
792 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
793 +])dnl /m4_if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
794 +],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
795 +[m4_if([$1], [], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
796 + PACKAGE='$PACKAGE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
797 + VERSION='$VERSION'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
798 + TIMESTAMP='$TIMESTAMP'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
799 + RM='$RM'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
800 + ofile='$ofile'], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
801 +])dnl /_LT_CONFIG_SAVE_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
802 +])# _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
803 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
805 +# LT_SUPPORTED_TAG(TAG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
806 +# ---------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
807 +# Trace this macro to discover what tags are supported by the libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
808 +# --tag option, using:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
809 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
810 +AC_DEFUN([LT_SUPPORTED_TAG], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
811 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
812 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
813 +# C support is built-in for now
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
814 +m4_define([_LT_LANG_C_enabled], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
815 +m4_define([_LT_TAGS], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
816 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
817 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
818 +# LT_LANG(LANG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
819 +# -------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
820 +# Enable libtool support for the given language if not already enabled.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
821 +AC_DEFUN([LT_LANG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
822 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
823 +m4_case([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
824 + [C], [_LT_LANG(C)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
825 + [C++], [_LT_LANG(CXX)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
826 + [Go], [_LT_LANG(GO)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
827 + [Java], [_LT_LANG(GCJ)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
828 + [Fortran 77], [_LT_LANG(F77)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
829 + [Fortran], [_LT_LANG(FC)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
830 + [Windows Resource], [_LT_LANG(RC)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
831 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
832 + [_LT_LANG($1)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
833 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
834 +])# LT_LANG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
835 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
836 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
837 +# _LT_LANG(LANGNAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
838 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
839 +m4_defun([_LT_LANG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
840 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
841 + [LT_SUPPORTED_TAG([$1])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
842 + m4_append([_LT_TAGS], [$1 ])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
843 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
844 + _LT_LANG_$1_CONFIG($1)])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
845 +])# _LT_LANG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
846 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
847 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
848 +m4_ifndef([AC_PROG_GO], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
849 +# NOTE: This macro has been submitted for inclusion into #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
850 +# GNU Autoconf as AC_PROG_GO. When it is available in #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
851 +# a released version of Autoconf we should remove this #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
852 +# macro and use it instead. #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
853 +m4_defun([AC_PROG_GO],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
854 +[AC_LANG_PUSH(Go)dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
855 +AC_ARG_VAR([GOC], [Go compiler command])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
856 +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
857 +_AC_ARG_VAR_LDFLAGS()dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
858 +AC_CHECK_TOOL(GOC, gccgo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
859 +if test -z "$GOC"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
860 + if test -n "$ac_tool_prefix"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
861 + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
862 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
863 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
864 +if test -z "$GOC"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
865 + AC_CHECK_PROG(GOC, gccgo, gccgo, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
866 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
867 +])#m4_defun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
868 +])#m4_ifndef
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
869 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
870 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
871 +# _LT_LANG_DEFAULT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
872 +# -----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
873 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
874 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
875 + [LT_LANG(CXX)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
876 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
877 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
878 +AC_PROVIDE_IFELSE([AC_PROG_F77],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
879 + [LT_LANG(F77)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
880 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
881 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
882 +AC_PROVIDE_IFELSE([AC_PROG_FC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
883 + [LT_LANG(FC)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
884 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
885 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
886 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
887 +dnl pulling things in needlessly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
888 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
889 + [LT_LANG(GCJ)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
890 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
891 + [LT_LANG(GCJ)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
892 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
893 + [LT_LANG(GCJ)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
894 + [m4_ifdef([AC_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
895 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
896 + m4_ifdef([A][M_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
897 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
898 + m4_ifdef([LT_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
899 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
900 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
901 +AC_PROVIDE_IFELSE([AC_PROG_GO],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
902 + [LT_LANG(GO)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
903 + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
904 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
905 +AC_PROVIDE_IFELSE([LT_PROG_RC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
906 + [LT_LANG(RC)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
907 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
908 +])# _LT_LANG_DEFAULT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
909 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
910 +# Obsolete macros:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
911 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
912 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
913 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
914 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
915 +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
916 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
917 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
918 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
919 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
920 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
921 +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
922 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
923 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
924 +# _LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
925 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
926 +m4_defun([_LT_TAG_COMPILER],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
927 +[AC_REQUIRE([AC_PROG_CC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
928 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
929 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
930 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
931 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
932 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
933 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
934 +# If no C compiler was specified, use CC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
935 +LTCC=${LTCC-"$CC"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
936 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
937 +# If no C compiler flags were specified, use CFLAGS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
938 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
939 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
940 +# Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
941 +compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
942 +])# _LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
943 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
944 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
945 +# _LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
946 +# ------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
947 +# Check for compiler boilerplate output or warnings with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
948 +# the simple compiler test code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
949 +m4_defun([_LT_COMPILER_BOILERPLATE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
950 +[m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
951 +ac_outfile=conftest.$ac_objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
952 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
953 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
954 +_lt_compiler_boilerplate=`cat conftest.err`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
955 +$RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
956 +])# _LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
957 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
958 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
959 +# _LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
960 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
961 +# Check for linker boilerplate output or warnings with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
962 +# the simple link test code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
963 +m4_defun([_LT_LINKER_BOILERPLATE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
964 +[m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
965 +ac_outfile=conftest.$ac_objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
966 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
967 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
968 +_lt_linker_boilerplate=`cat conftest.err`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
969 +$RM -r conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
970 +])# _LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
971 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
972 +# _LT_REQUIRED_DARWIN_CHECKS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
973 +# -------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
974 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
975 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
976 + rhapsody* | darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
977 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
978 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
979 + AC_CHECK_TOOL([LIPO], [lipo], [:])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
980 + AC_CHECK_TOOL([OTOOL], [otool], [:])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
981 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
982 + _LT_DECL([], [DSYMUTIL], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
983 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
984 + _LT_DECL([], [NMEDIT], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
985 + [Tool to change global to local symbols on Mac OS X])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
986 + _LT_DECL([], [LIPO], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
987 + [Tool to manipulate fat objects and archives on Mac OS X])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
988 + _LT_DECL([], [OTOOL], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
989 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
990 + _LT_DECL([], [OTOOL64], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
991 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
992 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
993 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
994 + [lt_cv_apple_cc_single_mod=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
995 + if test -z "${LT_MULTI_MODULE}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
996 + # By default we will add the -single_module flag. You can override
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
997 + # by either setting the environment variable LT_MULTI_MODULE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
998 + # non-empty at configure time, or by adding -multi_module to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
999 + # link flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1000 + rm -rf libconftest.dylib*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1001 + echo "int foo(void){return 1;}" > conftest.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1002 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1003 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1004 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1005 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1006 + _lt_result=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1007 + # If there is a non-empty error log, and "single_module"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1008 + # appears in it, assume the flag caused a linker warning
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1009 + if test -s conftest.err && $GREP single_module conftest.err; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1010 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1011 + # Otherwise, if the output was created with a 0 exit code from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1012 + # the compiler, it worked.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1013 + elif test -f libconftest.dylib && test $_lt_result -eq 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1014 + lt_cv_apple_cc_single_mod=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1015 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1016 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1017 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1018 + rm -rf libconftest.dylib*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1019 + rm -f conftest.*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1020 + fi])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1021 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1022 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1023 + [lt_cv_ld_exported_symbols_list],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1024 + [lt_cv_ld_exported_symbols_list=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1025 + save_LDFLAGS=$LDFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1026 + echo "_main" > conftest.sym
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1027 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1028 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1029 + [lt_cv_ld_exported_symbols_list=yes],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1030 + [lt_cv_ld_exported_symbols_list=no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1031 + LDFLAGS="$save_LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1032 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1033 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1034 + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1035 + [lt_cv_ld_force_load=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1036 + cat > conftest.c << _LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1037 +int forced_loaded() { return 2;}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1038 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1039 + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1040 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1041 + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1042 + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1043 + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1044 + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1045 + cat > conftest.c << _LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1046 +int main() { return 0;}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1047 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1048 + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1049 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1050 + _lt_result=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1051 + if test -s conftest.err && $GREP force_load conftest.err; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1052 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1053 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1054 + lt_cv_ld_force_load=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1055 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1056 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1057 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1058 + rm -f conftest.err libconftest.a conftest conftest.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1059 + rm -rf conftest.dSYM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1060 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1061 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1062 + rhapsody* | darwin1.[[012]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1063 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1064 + darwin1.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1065 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1066 + darwin*) # darwin 5.x on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1067 + # if running on 10.5 or later, the deployment target defaults
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1068 + # to the OS version, if on x86, and 10.4, the deployment
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1069 + # target defaults to 10.4. Don't you love it?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1070 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1071 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1072 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1073 + 10.[[012]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1074 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1075 + 10.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1076 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1077 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1078 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1079 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1080 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1081 + _lt_dar_single_mod='$single_module'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1082 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1083 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1084 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1085 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1086 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1087 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1088 + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1089 + _lt_dsymutil='~$DSYMUTIL $lib || :'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1090 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1091 + _lt_dsymutil=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1092 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1093 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1094 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1095 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1097 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1098 +# _LT_DARWIN_LINKER_FEATURES([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1099 +# ---------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1100 +# Checks for linker and compiler features on darwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1101 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1102 +[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1103 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1104 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1105 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1106 + _LT_TAGVAR(hardcode_automatic, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1107 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1108 + if test "$lt_cv_ld_force_load" = "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1109 + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1110 + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1111 + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1112 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1113 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1114 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1115 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1116 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1117 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1118 + ifort*) _lt_dar_can_shared=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1119 + *) _lt_dar_can_shared=$GCC ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1120 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1121 + if test "$_lt_dar_can_shared" = "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1122 + output_verbose_link_cmd=func_echo_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1123 + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1124 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1125 + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1126 + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1127 + m4_if([$1], [CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1128 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1129 + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1130 + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1131 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1132 +],[])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1133 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1134 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1135 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1136 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1137 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1138 +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1139 +# ----------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1140 +# Links a minimal program and checks the executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1141 +# for the system default hardcoded library path. In most cases,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1142 +# this is /usr/lib:/lib, but when the MPI compilers are used
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1143 +# the location of the communication and MPI libs are included too.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1144 +# If we don't find anything, use the default library path according
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1145 +# to the aix ld manual.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1146 +# Store the results from the different compilers for each TAGNAME.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1147 +# Allow to override them for all tags through lt_cv_aix_libpath.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1148 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1149 +[m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1150 +if test "${lt_cv_aix_libpath+set}" = set; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1151 + aix_libpath=$lt_cv_aix_libpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1152 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1153 + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1154 + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1155 + lt_aix_libpath_sed='[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1156 + /Import File Strings/,/^$/ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1157 + /^0/ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1158 + s/^0 *\([^ ]*\) *$/\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1159 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1160 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1161 + }]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1162 + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1163 + # Check for a 64-bit object if we didn't find anything.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1164 + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1165 + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1166 + fi],[])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1167 + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1168 + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1169 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1170 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1171 + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1172 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1173 +])# _LT_SYS_MODULE_PATH_AIX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1174 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1175 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1176 +# _LT_SHELL_INIT(ARG)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1177 +# -------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1178 +m4_define([_LT_SHELL_INIT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1179 +[m4_divert_text([M4SH-INIT], [$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1180 +])])# _LT_SHELL_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1181 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1182 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1183 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1184 +# _LT_PROG_ECHO_BACKSLASH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1185 +# -----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1186 +# Find how we can fake an echo command that does not interpret backslash.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1187 +# In particular, with Autoconf 2.60 or later we add some code to the start
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1188 +# of the generated configure script which will find a shell with a builtin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1189 +# printf (which we can use as an echo command).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1190 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1191 +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1192 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1193 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1194 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1195 +AC_MSG_CHECKING([how to print strings])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1196 +# Test print first, because it will be a builtin if present.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1197 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1198 + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1199 + ECHO='print -r --'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1200 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1201 + ECHO='printf %s\n'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1202 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1203 + # Use this function as a fallback that always works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1204 + func_fallback_echo ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1205 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1206 + eval 'cat <<_LTECHO_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1207 +$[]1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1208 +_LTECHO_EOF'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1209 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1210 + ECHO='func_fallback_echo'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1211 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1212 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1213 +# func_echo_all arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1214 +# Invoke $ECHO with all args, space-separated.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1215 +func_echo_all ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1216 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1217 + $ECHO "$*"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1218 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1219 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1220 +case "$ECHO" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1221 + printf*) AC_MSG_RESULT([printf]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1222 + print*) AC_MSG_RESULT([print -r]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1223 + *) AC_MSG_RESULT([cat]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1224 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1225 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1226 +m4_ifdef([_AS_DETECT_SUGGESTED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1227 +[_AS_DETECT_SUGGESTED([
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1228 + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1229 + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1230 + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1231 + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1232 + PATH=/empty FPATH=/empty; export PATH FPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1233 + test "X`printf %s $ECHO`" = "X$ECHO" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1234 + || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1235 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1236 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1237 +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1238 +])# _LT_PROG_ECHO_BACKSLASH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1239 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1240 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1241 +# _LT_WITH_SYSROOT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1242 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1243 +AC_DEFUN([_LT_WITH_SYSROOT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1244 +[AC_MSG_CHECKING([for sysroot])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1245 +AC_ARG_WITH([sysroot],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1246 +[ --with-sysroot[=DIR] Search for dependent libraries within DIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1247 + (or the compiler's sysroot if not specified).],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1248 +[], [with_sysroot=no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1249 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1250 +dnl lt_sysroot will always be passed unquoted. We quote it here
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1251 +dnl in case the user passed a directory name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1252 +lt_sysroot=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1253 +case ${with_sysroot} in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1254 + yes)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1255 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1256 + lt_sysroot=`$CC --print-sysroot 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1257 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1258 + ;; #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1259 + /*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1260 + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1261 + ;; #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1262 + no|'')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1263 + ;; #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1264 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1265 + AC_MSG_RESULT([${with_sysroot}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1266 + AC_MSG_ERROR([The sysroot must be an absolute path.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1267 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1268 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1269 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1270 + AC_MSG_RESULT([${lt_sysroot:-no}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1271 +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1272 +[dependent libraries, and in which our libraries should be installed.])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1273 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1274 +# _LT_ENABLE_LOCK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1275 +# ---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1276 +m4_defun([_LT_ENABLE_LOCK],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1277 +[AC_ARG_ENABLE([libtool-lock],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1278 + [AS_HELP_STRING([--disable-libtool-lock],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1279 + [avoid locking (might break parallel builds)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1280 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1281 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1282 +# Some flags need to be propagated to the compiler or linker for good
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1283 +# libtool support.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1284 +case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1285 +ia64-*-hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1286 + # Find out which ABI we are using.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1287 + echo 'int i;' > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1288 + if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1289 + case `/usr/bin/file conftest.$ac_objext` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1290 + *ELF-32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1291 + HPUX_IA64_MODE="32"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1292 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1293 + *ELF-64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1294 + HPUX_IA64_MODE="64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1295 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1296 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1297 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1298 + rm -rf conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1299 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1300 +*-*-irix6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1301 + # Find out which ABI we are using.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1302 + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1303 + if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1304 + if test "$lt_cv_prog_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1305 + case `/usr/bin/file conftest.$ac_objext` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1306 + *32-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1307 + LD="${LD-ld} -melf32bsmip"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1308 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1309 + *N32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1310 + LD="${LD-ld} -melf32bmipn32"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1311 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1312 + *64-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1313 + LD="${LD-ld} -melf64bmip"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1314 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1315 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1316 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1317 + case `/usr/bin/file conftest.$ac_objext` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1318 + *32-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1319 + LD="${LD-ld} -32"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1320 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1321 + *N32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1322 + LD="${LD-ld} -n32"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1323 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1324 + *64-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1325 + LD="${LD-ld} -64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1326 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1327 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1328 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1329 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1330 + rm -rf conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1331 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1332 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1333 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1334 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1335 + # Find out which ABI we are using.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1336 + echo 'int i;' > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1337 + if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1338 + case `/usr/bin/file conftest.o` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1339 + *32-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1340 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1341 + x86_64-*kfreebsd*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1342 + LD="${LD-ld} -m elf_i386_fbsd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1343 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1344 + x86_64-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1345 + case `/usr/bin/file conftest.o` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1346 + *x86-64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1347 + LD="${LD-ld} -m elf32_x86_64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1348 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1349 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1350 + LD="${LD-ld} -m elf_i386"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1351 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1352 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1354 + powerpc64le-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1355 + LD="${LD-ld} -m elf32lppclinux"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1356 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1357 + powerpc64-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1358 + LD="${LD-ld} -m elf32ppclinux"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1359 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1360 + s390x-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1361 + LD="${LD-ld} -m elf_s390"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1362 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1363 + sparc64-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1364 + LD="${LD-ld} -m elf32_sparc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1365 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1366 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1367 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1368 + *64-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1369 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1370 + x86_64-*kfreebsd*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1371 + LD="${LD-ld} -m elf_x86_64_fbsd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1372 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1373 + x86_64-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1374 + LD="${LD-ld} -m elf_x86_64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1375 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1376 + powerpcle-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1377 + LD="${LD-ld} -m elf64lppc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1378 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1379 + powerpc-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1380 + LD="${LD-ld} -m elf64ppc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1381 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1382 + s390*-*linux*|s390*-*tpf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1383 + LD="${LD-ld} -m elf64_s390"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1384 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1385 + sparc*-*linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1386 + LD="${LD-ld} -m elf64_sparc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1387 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1388 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1389 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1390 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1391 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1392 + rm -rf conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1393 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1394 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1395 +*-*-sco3.2v5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1396 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1397 + SAVE_CFLAGS="$CFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1398 + CFLAGS="$CFLAGS -belf"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1399 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1400 + [AC_LANG_PUSH(C)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1401 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1402 + AC_LANG_POP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1403 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1404 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1405 + CFLAGS="$SAVE_CFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1406 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1407 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1408 +*-*solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1409 + # Find out which ABI we are using.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1410 + echo 'int i;' > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1411 + if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1412 + case `/usr/bin/file conftest.o` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1413 + *64-bit*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1414 + case $lt_cv_prog_gnu_ld in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1415 + yes*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1416 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1417 + i?86-*-solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1418 + LD="${LD-ld} -m elf_x86_64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1419 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1420 + sparc*-*-solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1421 + LD="${LD-ld} -m elf64_sparc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1422 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1423 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1424 + # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1425 + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1426 + LD="${LD-ld}_sol2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1427 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1428 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1429 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1430 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1431 + LD="${LD-ld} -64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1432 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1433 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1434 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1435 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1436 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1437 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1438 + rm -rf conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1439 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1440 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1442 +need_locks="$enable_libtool_lock"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1443 +])# _LT_ENABLE_LOCK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1444 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1445 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1446 +# _LT_PROG_AR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1447 +# -----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1448 +m4_defun([_LT_PROG_AR],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1449 +[AC_CHECK_TOOLS(AR, [ar], false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1450 +: ${AR=ar}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1451 +: ${AR_FLAGS=cru}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1452 +_LT_DECL([], [AR], [1], [The archiver])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1453 +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1454 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1455 +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1456 + [lt_cv_ar_at_file=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1457 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1458 + [echo conftest.$ac_objext > conftest.lst
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1459 + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1460 + AC_TRY_EVAL([lt_ar_try])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1461 + if test "$ac_status" -eq 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1462 + # Ensure the archiver fails upon bogus file names.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1463 + rm -f conftest.$ac_objext libconftest.a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1464 + AC_TRY_EVAL([lt_ar_try])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1465 + if test "$ac_status" -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1466 + lt_cv_ar_at_file=@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1467 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1468 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1469 + rm -f conftest.* libconftest.a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1470 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1471 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1472 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1473 +if test "x$lt_cv_ar_at_file" = xno; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1474 + archiver_list_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1475 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1476 + archiver_list_spec=$lt_cv_ar_at_file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1477 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1478 +_LT_DECL([], [archiver_list_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1479 + [How to feed a file listing to the archiver])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1480 +])# _LT_PROG_AR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1481 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1482 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1483 +# _LT_CMD_OLD_ARCHIVE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1484 +# -------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1485 +m4_defun([_LT_CMD_OLD_ARCHIVE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1486 +[_LT_PROG_AR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1487 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1488 +AC_CHECK_TOOL(STRIP, strip, :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1489 +test -z "$STRIP" && STRIP=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1490 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1491 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1492 +AC_CHECK_TOOL(RANLIB, ranlib, :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1493 +test -z "$RANLIB" && RANLIB=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1494 +_LT_DECL([], [RANLIB], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1495 + [Commands used to install an old-style archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1496 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1497 +# Determine commands to create old-style static archives.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1498 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1499 +old_postinstall_cmds='chmod 644 $oldlib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1500 +old_postuninstall_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1501 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1502 +if test -n "$RANLIB"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1503 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1504 + openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1505 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1506 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1507 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1508 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1509 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1510 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1511 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1512 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1513 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1514 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1515 + darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1516 + lock_old_archive_extraction=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1517 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1518 + lock_old_archive_extraction=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1519 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1520 +_LT_DECL([], [old_postinstall_cmds], [2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1521 +_LT_DECL([], [old_postuninstall_cmds], [2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1522 +_LT_TAGDECL([], [old_archive_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1523 + [Commands used to build an old-style archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1524 +_LT_DECL([], [lock_old_archive_extraction], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1525 + [Whether to use a lock for old archive extraction])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1526 +])# _LT_CMD_OLD_ARCHIVE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1527 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1528 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1529 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1530 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1531 +# ----------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1532 +# Check whether the given compiler option works
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1533 +AC_DEFUN([_LT_COMPILER_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1534 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1535 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1536 +AC_CACHE_CHECK([$1], [$2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1537 + [$2=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1538 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1539 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1540 + lt_compiler_flag="$3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1541 + # Insert the option either (1) after the last *FLAGS variable, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1542 + # (2) before a word containing "conftest.", or (3) at the end.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1543 + # Note that $ac_compile itself does not contain backslashes and begins
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1544 + # with a dollar sign (not a hyphen), so the echo should work correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1545 + # The option is referenced via a variable to avoid confusing sed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1546 + lt_compile=`echo "$ac_compile" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1547 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1548 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1549 + -e 's:$: $lt_compiler_flag:'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1550 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1551 + (eval "$lt_compile" 2>conftest.err)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1552 + ac_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1553 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1554 + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1555 + if (exit $ac_status) && test -s "$ac_outfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1556 + # The compiler can only warn and ignore the option if not recognized
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1557 + # So say no if there are warnings other than the usual output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1558 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1559 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1560 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1561 + $2=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1562 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1563 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1564 + $RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1565 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1566 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1567 +if test x"[$]$2" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1568 + m4_if([$5], , :, [$5])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1569 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1570 + m4_if([$6], , :, [$6])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1571 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1572 +])# _LT_COMPILER_OPTION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1573 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1574 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1575 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1576 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1577 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1578 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1579 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1580 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1581 +# [ACTION-SUCCESS], [ACTION-FAILURE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1582 +# ----------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1583 +# Check whether the given linker option works
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1584 +AC_DEFUN([_LT_LINKER_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1585 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1586 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1587 +AC_CACHE_CHECK([$1], [$2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1588 + [$2=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1589 + save_LDFLAGS="$LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1590 + LDFLAGS="$LDFLAGS $3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1591 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1592 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1593 + # The linker can only warn and ignore the option if not recognized
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1594 + # So say no if there are warnings
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1595 + if test -s conftest.err; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1596 + # Append any errors to the config.log.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1597 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1598 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1599 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1600 + if diff conftest.exp conftest.er2 >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1601 + $2=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1602 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1603 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1604 + $2=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1605 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1606 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1607 + $RM -r conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1608 + LDFLAGS="$save_LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1609 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1610 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1611 +if test x"[$]$2" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1612 + m4_if([$4], , :, [$4])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1613 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1614 + m4_if([$5], , :, [$5])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1615 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1616 +])# _LT_LINKER_OPTION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1617 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1618 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1619 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1620 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1621 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1622 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1623 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1624 +# LT_CMD_MAX_LEN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1625 +#---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1626 +AC_DEFUN([LT_CMD_MAX_LEN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1627 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1628 +# find the maximum length of command line arguments
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1629 +AC_MSG_CHECKING([the maximum length of command line arguments])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1630 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1631 + i=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1632 + teststring="ABCD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1633 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1634 + case $build_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1635 + msdosdjgpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1636 + # On DJGPP, this test can blow up pretty badly due to problems in libc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1637 + # (any single argument exceeding 2000 bytes causes a buffer overrun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1638 + # during glob expansion). Even if it were fixed, the result of this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1639 + # check would be larger than it should be.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1640 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1641 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1642 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1643 + gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1644 + # Under GNU Hurd, this test is not required because there is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1645 + # no limit to the length of command line arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1646 + # Libtool will interpret -1 as no limit whatsoever
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1647 + lt_cv_sys_max_cmd_len=-1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1648 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1650 + cygwin* | mingw* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1651 + # On Win9x/ME, this test blows up -- it succeeds, but takes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1652 + # about 5 minutes as the teststring grows exponentially.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1653 + # Worse, since 9x/ME are not pre-emptively multitasking,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1654 + # you end up with a "frozen" computer, even though with patience
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1655 + # the test eventually succeeds (with a max line length of 256k).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1656 + # Instead, let's just punt: use the minimum linelength reported by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1657 + # all of the supported platforms: 8192 (on NT/2K/XP).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1658 + lt_cv_sys_max_cmd_len=8192;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1659 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1660 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1661 + mint*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1662 + # On MiNT this can take a long time and run out of memory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1663 + lt_cv_sys_max_cmd_len=8192;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1664 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1665 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1666 + amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1667 + # On AmigaOS with pdksh, this test takes hours, literally.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1668 + # So we just punt and use a minimum line length of 8192.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1669 + lt_cv_sys_max_cmd_len=8192;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1670 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1671 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1672 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1673 + # This has been around since 386BSD, at least. Likely further.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1674 + if test -x /sbin/sysctl; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1675 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1676 + elif test -x /usr/sbin/sysctl; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1677 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1678 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1679 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1680 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1681 + # And add a safety zone
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1682 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1683 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1684 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1685 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1686 + interix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1687 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1688 + lt_cv_sys_max_cmd_len=196608
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1689 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1690 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1691 + os2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1692 + # The test takes a long time on OS/2.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1693 + lt_cv_sys_max_cmd_len=8192
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1694 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1695 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1696 + osf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1697 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1698 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1699 + # nice to cause kernel panics so lets avoid the loop below.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1700 + # First set a reasonable default.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1701 + lt_cv_sys_max_cmd_len=16384
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1702 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1703 + if test -x /sbin/sysconfig; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1704 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1705 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1706 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1707 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1708 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1709 + sco3.2v5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1710 + lt_cv_sys_max_cmd_len=102400
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1711 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1712 + sysv5* | sco5v6* | sysv4.2uw2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1713 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1714 + if test -n "$kargmax"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1715 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1716 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1717 + lt_cv_sys_max_cmd_len=32768
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1718 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1719 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1720 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1721 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1722 + if test -n "$lt_cv_sys_max_cmd_len" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1723 + test undefined != "$lt_cv_sys_max_cmd_len"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1724 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1725 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1726 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1727 + # Make teststring a little bigger before we do anything with it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1728 + # a 1K string should be a reasonable start.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1729 + for i in 1 2 3 4 5 6 7 8 ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1730 + teststring=$teststring$teststring
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1731 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1732 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1733 + # If test is not a shell built-in, we'll probably end up computing a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1734 + # maximum length that is only half of the actual maximum length, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1735 + # we can't tell.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1736 + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1737 + = "X$teststring$teststring"; } >/dev/null 2>&1 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1738 + test $i != 17 # 1/2 MB should be enough
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1739 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1740 + i=`expr $i + 1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1741 + teststring=$teststring$teststring
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1742 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1743 + # Only check the string length outside the loop.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1744 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1745 + teststring=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1746 + # Add a significant safety factor because C++ compilers can tack on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1747 + # massive amounts of additional arguments before passing them to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1748 + # linker. It appears as though 1/2 is a usable value.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1749 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1750 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1751 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1752 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1753 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1754 +if test -n $lt_cv_sys_max_cmd_len ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1755 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1756 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1757 + AC_MSG_RESULT(none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1758 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1759 +max_cmd_len=$lt_cv_sys_max_cmd_len
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1760 +_LT_DECL([], [max_cmd_len], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1761 + [What is the maximum length of a command?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1762 +])# LT_CMD_MAX_LEN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1763 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1764 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1765 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1766 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1767 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1768 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1769 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1770 +# _LT_HEADER_DLFCN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1771 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1772 +m4_defun([_LT_HEADER_DLFCN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1773 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1774 +])# _LT_HEADER_DLFCN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1775 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1776 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1777 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1778 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1779 +# ----------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1780 +m4_defun([_LT_TRY_DLOPEN_SELF],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1781 +[m4_require([_LT_HEADER_DLFCN])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1782 +if test "$cross_compiling" = yes; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1783 + [$4]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1784 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1785 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1786 + lt_status=$lt_dlunknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1787 + cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1788 +[#line $LINENO "configure"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1789 +#include "confdefs.h"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1790 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1791 +#if HAVE_DLFCN_H
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1792 +#include <dlfcn.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1793 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1794 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1795 +#include <stdio.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1796 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1797 +#ifdef RTLD_GLOBAL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1798 +# define LT_DLGLOBAL RTLD_GLOBAL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1799 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1800 +# ifdef DL_GLOBAL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1801 +# define LT_DLGLOBAL DL_GLOBAL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1802 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1803 +# define LT_DLGLOBAL 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1804 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1805 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1806 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1807 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1808 + find out it does not work in some platform. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1809 +#ifndef LT_DLLAZY_OR_NOW
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1810 +# ifdef RTLD_LAZY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1811 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1812 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1813 +# ifdef DL_LAZY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1814 +# define LT_DLLAZY_OR_NOW DL_LAZY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1815 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1816 +# ifdef RTLD_NOW
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1817 +# define LT_DLLAZY_OR_NOW RTLD_NOW
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1818 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1819 +# ifdef DL_NOW
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1820 +# define LT_DLLAZY_OR_NOW DL_NOW
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1821 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1822 +# define LT_DLLAZY_OR_NOW 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1823 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1824 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1825 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1826 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1827 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1828 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1829 +/* When -fvisbility=hidden is used, assume the code has been annotated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1830 + correspondingly for the symbols needed. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1831 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1832 +int fnord () __attribute__((visibility("default")));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1833 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1834 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1835 +int fnord () { return 42; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1836 +int main ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1837 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1838 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1839 + int status = $lt_dlunknown;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1840 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1841 + if (self)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1842 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1843 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1844 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1845 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1846 + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1847 + else puts (dlerror ());
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1848 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1849 + /* dlclose (self); */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1850 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1851 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1852 + puts (dlerror ());
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1853 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1854 + return status;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1855 +}]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1856 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1857 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1858 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1859 + lt_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1860 + case x$lt_status in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1861 + x$lt_dlno_uscore) $1 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1862 + x$lt_dlneed_uscore) $2 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1863 + x$lt_dlunknown|x*) $3 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1864 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1865 + else :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1866 + # compilation failed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1867 + $3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1868 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1869 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1870 +rm -fr conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1871 +])# _LT_TRY_DLOPEN_SELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1872 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1873 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1874 +# LT_SYS_DLOPEN_SELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1875 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1876 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1877 +[m4_require([_LT_HEADER_DLFCN])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1878 +if test "x$enable_dlopen" != xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1879 + enable_dlopen=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1880 + enable_dlopen_self=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1881 + enable_dlopen_self_static=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1882 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1883 + lt_cv_dlopen=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1884 + lt_cv_dlopen_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1885 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1886 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1887 + beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1888 + lt_cv_dlopen="load_add_on"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1889 + lt_cv_dlopen_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1890 + lt_cv_dlopen_self=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1891 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1892 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1893 + mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1894 + lt_cv_dlopen="LoadLibrary"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1895 + lt_cv_dlopen_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1896 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1897 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1898 + cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1899 + lt_cv_dlopen="dlopen"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1900 + lt_cv_dlopen_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1901 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1902 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1903 + darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1904 + # if libdl is installed we need to link against it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1905 + AC_CHECK_LIB([dl], [dlopen],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1906 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1907 + lt_cv_dlopen="dyld"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1908 + lt_cv_dlopen_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1909 + lt_cv_dlopen_self=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1910 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1911 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1912 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1913 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1914 + AC_CHECK_FUNC([shl_load],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1915 + [lt_cv_dlopen="shl_load"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1916 + [AC_CHECK_LIB([dld], [shl_load],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1917 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1918 + [AC_CHECK_FUNC([dlopen],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1919 + [lt_cv_dlopen="dlopen"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1920 + [AC_CHECK_LIB([dl], [dlopen],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1921 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1922 + [AC_CHECK_LIB([svld], [dlopen],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1923 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1924 + [AC_CHECK_LIB([dld], [dld_link],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1925 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1926 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1927 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1928 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1929 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1930 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1931 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1932 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1933 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1934 + if test "x$lt_cv_dlopen" != xno; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1935 + enable_dlopen=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1936 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1937 + enable_dlopen=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1938 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1939 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1940 + case $lt_cv_dlopen in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1941 + dlopen)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1942 + save_CPPFLAGS="$CPPFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1943 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1944 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1945 + save_LDFLAGS="$LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1946 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1947 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1948 + save_LIBS="$LIBS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1949 + LIBS="$lt_cv_dlopen_libs $LIBS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1950 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1951 + AC_CACHE_CHECK([whether a program can dlopen itself],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1952 + lt_cv_dlopen_self, [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1953 + _LT_TRY_DLOPEN_SELF(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1954 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1955 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1956 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1957 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1958 + if test "x$lt_cv_dlopen_self" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1959 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1960 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1961 + lt_cv_dlopen_self_static, [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1962 + _LT_TRY_DLOPEN_SELF(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1963 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1964 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1965 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1966 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1967 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1968 + CPPFLAGS="$save_CPPFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1969 + LDFLAGS="$save_LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1970 + LIBS="$save_LIBS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1971 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1972 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1973 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1974 + case $lt_cv_dlopen_self in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1975 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1976 + *) enable_dlopen_self=unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1977 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1978 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1979 + case $lt_cv_dlopen_self_static in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1980 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1981 + *) enable_dlopen_self_static=unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1982 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1983 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1984 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1985 + [Whether dlopen is supported])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1986 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1987 + [Whether dlopen of programs is supported])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1988 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1989 + [Whether dlopen of statically linked programs is supported])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1990 +])# LT_SYS_DLOPEN_SELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1991 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1992 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1993 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1994 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1995 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1996 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1997 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1998 +# _LT_COMPILER_C_O([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1999 +# ---------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2000 +# Check to see if options -c and -o are simultaneously supported by compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2001 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2002 +m4_defun([_LT_COMPILER_C_O],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2003 +[m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2004 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2005 +m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2006 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2007 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2008 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2009 + $RM -r conftest 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2010 + mkdir conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2011 + cd conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2012 + mkdir out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2013 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2014 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2015 + lt_compiler_flag="-o out/conftest2.$ac_objext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2016 + # Insert the option either (1) after the last *FLAGS variable, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2017 + # (2) before a word containing "conftest.", or (3) at the end.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2018 + # Note that $ac_compile itself does not contain backslashes and begins
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2019 + # with a dollar sign (not a hyphen), so the echo should work correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2020 + lt_compile=`echo "$ac_compile" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2021 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2022 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2023 + -e 's:$: $lt_compiler_flag:'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2024 + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2025 + (eval "$lt_compile" 2>out/conftest.err)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2026 + ac_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2027 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2028 + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2029 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2030 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2031 + # The compiler can only warn and ignore the option if not recognized
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2032 + # So say no if there are warnings
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2033 + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2034 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2035 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2036 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2037 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2038 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2039 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2040 + $RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2041 + # SGI C++ compiler will create directory out/ii_files/ for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2042 + # template instantiation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2043 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2044 + $RM out/* && rmdir out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2045 + cd ..
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2046 + $RM -r conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2047 + $RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2048 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2049 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2050 + [Does compiler simultaneously support -c and -o options?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2051 +])# _LT_COMPILER_C_O
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2052 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2053 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2054 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2055 +# ----------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2056 +# Check to see if we can do hard links to lock some files if needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2057 +m4_defun([_LT_COMPILER_FILE_LOCKS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2058 +[m4_require([_LT_ENABLE_LOCK])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2059 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2060 +_LT_COMPILER_C_O([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2061 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2062 +hard_links="nottested"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2063 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2064 + # do not overwrite the value of need_locks provided by the user
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2065 + AC_MSG_CHECKING([if we can lock with hard links])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2066 + hard_links=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2067 + $RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2068 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2069 + touch conftest.a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2070 + ln conftest.a conftest.b 2>&5 || hard_links=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2071 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2072 + AC_MSG_RESULT([$hard_links])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2073 + if test "$hard_links" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2074 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2075 + need_locks=warn
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2076 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2077 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2078 + need_locks=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2079 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2080 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2081 +])# _LT_COMPILER_FILE_LOCKS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2082 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2083 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2084 +# _LT_CHECK_OBJDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2085 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2086 +m4_defun([_LT_CHECK_OBJDIR],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2087 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2088 +[rm -f .libs 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2089 +mkdir .libs 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2090 +if test -d .libs; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2091 + lt_cv_objdir=.libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2092 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2093 + # MS-DOS does not allow filenames that begin with a dot.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2094 + lt_cv_objdir=_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2095 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2096 +rmdir .libs 2>/dev/null])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2097 +objdir=$lt_cv_objdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2098 +_LT_DECL([], [objdir], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2099 + [The name of the directory that contains temporary libtool files])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2100 +m4_pattern_allow([LT_OBJDIR])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2101 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2102 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2103 +])# _LT_CHECK_OBJDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2104 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2105 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2106 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2107 +# --------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2108 +# Check hardcoding attributes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2109 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2110 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2111 +_LT_TAGVAR(hardcode_action, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2112 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2113 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2114 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2115 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2116 + # We can hardcode non-existent directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2117 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2118 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2119 + # have to relink, otherwise we might link with an installed library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2120 + # when we should be linking with a yet-to-be-installed one
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2121 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2122 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2123 + # Linking always hardcodes the temporary library directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2124 + _LT_TAGVAR(hardcode_action, $1)=relink
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2125 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2126 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2127 + _LT_TAGVAR(hardcode_action, $1)=immediate
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2128 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2129 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2130 + # We cannot hardcode anything, or else we can only hardcode existing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2131 + # directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2132 + _LT_TAGVAR(hardcode_action, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2133 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2134 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2135 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2136 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2137 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2138 + # Fast installation is not supported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2139 + enable_fast_install=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2140 +elif test "$shlibpath_overrides_runpath" = yes ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2141 + test "$enable_shared" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2142 + # Fast installation is not necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2143 + enable_fast_install=needless
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2144 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2145 +_LT_TAGDECL([], [hardcode_action], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2146 + [How to hardcode a shared library path into an executable])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2147 +])# _LT_LINKER_HARDCODE_LIBPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2148 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2149 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2150 +# _LT_CMD_STRIPLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2151 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2152 +m4_defun([_LT_CMD_STRIPLIB],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2153 +[m4_require([_LT_DECL_EGREP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2154 +striplib=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2155 +old_striplib=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2156 +AC_MSG_CHECKING([whether stripping libraries is possible])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2157 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2158 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2159 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2160 + AC_MSG_RESULT([yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2161 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2162 +# FIXME - insert some real tests, host_os isn't really good enough
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2163 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2164 + darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2165 + if test -n "$STRIP" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2166 + striplib="$STRIP -x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2167 + old_striplib="$STRIP -S"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2168 + AC_MSG_RESULT([yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2169 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2170 + AC_MSG_RESULT([no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2171 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2172 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2173 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2174 + AC_MSG_RESULT([no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2175 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2176 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2177 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2178 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2179 +_LT_DECL([], [striplib], [1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2180 +])# _LT_CMD_STRIPLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2181 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2182 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2183 +# _LT_SYS_DYNAMIC_LINKER([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2184 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2185 +# PORTME Fill in your ld.so characteristics
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2186 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2187 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2188 +m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2189 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2190 +m4_require([_LT_DECL_OBJDUMP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2191 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2192 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2193 +AC_MSG_CHECKING([dynamic linker characteristics])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2194 +m4_if([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2195 + [], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2196 +if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2197 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2198 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2199 + *) lt_awk_arg="/^libraries:/" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2200 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2201 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2202 + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2203 + *) lt_sed_strip_eq="s,=/,/,g" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2204 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2205 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2206 + case $lt_search_path_spec in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2207 + *\;*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2208 + # if the path contains ";" then we assume it to be the separator
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2209 + # otherwise default to the standard path separator (i.e. ":") - it is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2210 + # assumed that no part of a normal pathname contains ";" but that should
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2211 + # okay in the real world where ";" in dirpaths is itself problematic.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2212 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2213 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2214 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2215 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2216 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2217 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2218 + # Ok, now we have the path, separated by spaces, we can step through it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2219 + # and add multilib dir if necessary.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2220 + lt_tmp_lt_search_path_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2221 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2222 + for lt_sys_path in $lt_search_path_spec; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2223 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2224 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2225 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2226 + test -d "$lt_sys_path" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2227 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2228 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2229 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2230 + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2231 +BEGIN {RS=" "; FS="/|\n";} {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2232 + lt_foo="";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2233 + lt_count=0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2234 + for (lt_i = NF; lt_i > 0; lt_i--) {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2235 + if ($lt_i != "" && $lt_i != ".") {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2236 + if ($lt_i == "..") {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2237 + lt_count++;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2238 + } else {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2239 + if (lt_count == 0) {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2240 + lt_foo="/" $lt_i lt_foo;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2241 + } else {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2242 + lt_count--;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2243 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2244 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2245 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2246 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2247 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2248 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2249 +}'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2250 + # AWK program above erroneously prepends '/' to C:/dos/paths
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2251 + # for these hosts.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2252 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2253 + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2254 + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2255 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2256 + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2257 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2258 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2259 +fi])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2260 +library_names_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2261 +libname_spec='lib$name'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2262 +soname_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2263 +shrext_cmds=".so"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2264 +postinstall_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2265 +postuninstall_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2266 +finish_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2267 +finish_eval=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2268 +shlibpath_var=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2269 +shlibpath_overrides_runpath=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2270 +version_type=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2271 +dynamic_linker="$host_os ld.so"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2272 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2273 +need_lib_prefix=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2274 +hardcode_into_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2275 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2276 +# when you set need_version to no, make sure it does not cause -set_version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2277 +# flags to be left without arguments
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2278 +need_version=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2279 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2280 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2281 +aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2282 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2283 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2284 + shlibpath_var=LIBPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2285 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2286 + # AIX 3 has no versioning support, so we append a major version to the name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2287 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2288 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2289 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2290 +aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2291 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2292 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2293 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2294 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2295 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2296 + # AIX 5 supports IA64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2297 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2298 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2299 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2300 + # With GCC up to 2.95.x, collect2 would create an import file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2301 + # for dependence libraries. The import file would start with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2302 + # the line `#! .'. This would cause the generated library to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2303 + # depend on `.', always an invalid library. This was fixed in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2304 + # development snapshots of GCC prior to 3.0.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2305 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2306 + aix4 | aix4.[[01]] | aix4.[[01]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2307 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2308 + echo ' yes '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2309 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2310 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2311 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2312 + can_build_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2313 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2314 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2315 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2316 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2317 + # soname into executable. Probably we can add versioning support to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2318 + # collect2, so additional links can be useful in future.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2319 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2320 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2321 + # instead of lib<name>.a to let people know that these are not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2322 + # typical AIX shared libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2323 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2324 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2325 + # We preserve .a as extension for shared libraries through AIX4.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2326 + # and later when we are not doing run time linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2327 + library_names_spec='${libname}${release}.a $libname.a'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2328 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2329 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2330 + shlibpath_var=LIBPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2331 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2332 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2333 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2334 +amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2335 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2336 + powerpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2337 + # Since July 2007 AmigaOS4 officially supports .so libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2338 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2339 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2340 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2341 + m68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2342 + library_names_spec='$libname.ixlibrary $libname.a'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2343 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2344 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2345 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2346 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2347 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2348 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2349 +beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2350 + library_names_spec='${libname}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2351 + dynamic_linker="$host_os ld.so"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2352 + shlibpath_var=LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2354 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2355 +bsdi[[45]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2356 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2357 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2358 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2359 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2360 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2361 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2362 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2363 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2364 + # the default ld.so.conf also contains /usr/contrib/lib and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2365 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2366 + # libtool to hard-code these into programs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2367 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2368 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2369 +cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2370 + version_type=windows
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2371 + shrext_cmds=".dll"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2372 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2373 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2374 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2375 + case $GCC,$cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2376 + yes,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2377 + # gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2378 + library_names_spec='$libname.dll.a'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2379 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2380 + postinstall_cmds='base_file=`basename \${file}`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2381 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2382 + dldir=$destdir/`dirname \$dlpath`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2383 + test -d \$dldir || mkdir -p \$dldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2384 + $install_prog $dir/$dlname \$dldir/$dlname~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2385 + chmod a+x \$dldir/$dlname~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2386 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2387 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2388 + fi'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2389 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2390 + dlpath=$dir/\$dldll~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2391 + $RM \$dlpath'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2392 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2393 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2394 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2395 + cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2396 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2397 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2398 +m4_if([$1], [],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2399 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2400 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2401 + mingw* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2402 + # MinGW DLLs use traditional 'lib' prefix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2403 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2404 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2405 + pw32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2406 + # pw32 DLLs use 'pw' prefix rather than 'lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2407 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2408 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2409 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2410 + dynamic_linker='Win32 ld.exe'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2411 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2412 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2413 + *,cl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2414 + # Native MSVC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2415 + libname_spec='$name'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2416 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2417 + library_names_spec='${libname}.dll.lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2418 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2419 + case $build_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2420 + mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2421 + sys_lib_search_path_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2422 + lt_save_ifs=$IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2423 + IFS=';'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2424 + for lt_path in $LIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2425 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2426 + IFS=$lt_save_ifs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2427 + # Let DOS variable expansion print the short 8.3 style file name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2428 + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2429 + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2430 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2431 + IFS=$lt_save_ifs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2432 + # Convert to MSYS style.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2433 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2434 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2435 + cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2436 + # Convert to unix form, then to dos form, then back to unix form
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2437 + # but this time dos style (no spaces!) so that the unix form looks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2438 + # like /cygdrive/c/PROGRA~1:/cygdr...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2439 + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2440 + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2441 + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2442 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2443 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2444 + sys_lib_search_path_spec="$LIB"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2445 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2446 + # It is most probably a Windows format PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2447 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2448 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2449 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2450 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2451 + # FIXME: find the short name or the path components, as spaces are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2452 + # common. (e.g. "Program Files" -> "PROGRA~1")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2453 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2454 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2455 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2456 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2457 + postinstall_cmds='base_file=`basename \${file}`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2458 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2459 + dldir=$destdir/`dirname \$dlpath`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2460 + test -d \$dldir || mkdir -p \$dldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2461 + $install_prog $dir/$dlname \$dldir/$dlname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2462 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2463 + dlpath=$dir/\$dldll~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2464 + $RM \$dlpath'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2465 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2466 + dynamic_linker='Win32 link.exe'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2467 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2468 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2469 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2470 + # Assume MSVC wrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2471 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2472 + dynamic_linker='Win32 ld.exe'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2473 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2474 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2475 + # FIXME: first we should search . and the directory the executable is in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2476 + shlibpath_var=PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2477 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2478 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2479 +darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2480 + dynamic_linker="$host_os dyld"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2481 + version_type=darwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2482 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2483 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2484 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2485 + soname_spec='${libname}${release}${major}$shared_ext'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2486 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2487 + shlibpath_var=DYLD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2488 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2489 +m4_if([$1], [],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2490 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2491 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2492 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2493 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2494 +dgux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2495 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2496 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2497 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2498 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2499 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2500 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2501 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2502 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2503 +freebsd* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2504 + # DragonFly does not have aout. When/if they implement a new
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2505 + # versioning mechanism, adjust this.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2506 + if test -x /usr/bin/objformat; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2507 + objformat=`/usr/bin/objformat`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2508 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2509 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2510 + freebsd[[23]].*) objformat=aout ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2511 + *) objformat=elf ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2512 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2513 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2514 + version_type=freebsd-$objformat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2515 + case $version_type in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2516 + freebsd-elf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2517 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2518 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2519 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2520 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2521 + freebsd-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2522 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2523 + need_version=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2524 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2525 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2526 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2527 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2528 + freebsd2.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2529 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2530 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2531 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2532 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2533 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2534 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2535 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2536 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2537 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2538 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2539 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2540 + *) # from 4.6 on, and DragonFly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2541 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2542 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2543 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2544 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2545 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2546 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2547 +haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2548 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2549 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2550 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2551 + dynamic_linker="$host_os runtime_loader"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2552 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2553 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2554 + shlibpath_var=LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2555 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2556 + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2557 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2558 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2559 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2560 +hpux9* | hpux10* | hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2561 + # Give a soname corresponding to the major version so that dld.sl refuses to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2562 + # link against other versions.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2563 + version_type=sunos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2564 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2565 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2566 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2567 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2568 + shrext_cmds='.so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2569 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2570 + dynamic_linker="$host_os dld.so"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2571 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2572 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2573 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2574 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2575 + if test "X$HPUX_IA64_MODE" = X32; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2576 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2577 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2578 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2579 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2580 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2581 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2582 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2583 + shrext_cmds='.sl'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2584 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2585 + dynamic_linker="$host_os dld.sl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2586 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2587 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2588 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2589 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2590 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2591 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2592 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2593 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2594 + shrext_cmds='.sl'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2595 + dynamic_linker="$host_os dld.sl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2596 + shlibpath_var=SHLIB_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2597 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2598 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2599 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2600 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2601 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2602 + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2603 + postinstall_cmds='chmod 555 $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2604 + # or fails outright, so override atomically:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2605 + install_override_mode=555
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2606 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2607 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2608 +interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2609 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2610 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2611 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2612 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2613 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2614 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2615 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2616 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2617 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2618 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2619 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2620 +irix5* | irix6* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2621 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2622 + nonstopux*) version_type=nonstopux ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2623 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2624 + if test "$lt_cv_prog_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2625 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2626 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2627 + version_type=irix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2628 + fi ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2629 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2630 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2631 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2632 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2633 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2634 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2635 + irix5* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2636 + libsuff= shlibsuff=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2637 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2638 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2639 + case $LD in # libtool.m4 will add one of these switches to LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2640 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2641 + libsuff= shlibsuff= libmagic=32-bit;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2642 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2643 + libsuff=32 shlibsuff=N32 libmagic=N32;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2644 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2645 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2646 + *) libsuff= shlibsuff= libmagic=never-match;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2647 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2648 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2649 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2650 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2651 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2652 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2653 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2654 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2655 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2656 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2657 +# No shared lib support for Linux oldld, aout, or coff.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2658 +linux*oldld* | linux*aout* | linux*coff*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2659 + dynamic_linker=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2660 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2661 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2662 +# This must be glibc/ELF.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2663 +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2664 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2665 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2666 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2667 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2668 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2669 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2670 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2671 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2672 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2673 + # Some binutils ld are patched to set DT_RUNPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2674 + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2675 + [lt_cv_shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2676 + save_LDFLAGS=$LDFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2677 + save_libdir=$libdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2678 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2679 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2680 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2681 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2682 + [lt_cv_shlibpath_overrides_runpath=yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2683 + LDFLAGS=$save_LDFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2684 + libdir=$save_libdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2685 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2686 + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2687 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2688 + # This implies no fast_install, which is unacceptable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2689 + # Some rework will be needed to allow for fast_install
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2690 + # before this can be enabled.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2691 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2692 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2693 + # Append ld.so.conf contents to the search path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2694 + if test -f /etc/ld.so.conf; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2695 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2696 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2697 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2698 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2699 + # We used to test for /lib/ld.so.1 and disable shared libraries on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2700 + # powerpc, because MkLinux only supported shared libraries with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2701 + # GNU dynamic linker. Since this was broken with cross compilers,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2702 + # most powerpc-linux boxes support dynamic linking these days and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2703 + # people can always --disable-shared, the test was removed, and we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2704 + # assume the GNU/Linux dynamic linker is in use.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2705 + dynamic_linker='GNU/Linux ld.so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2706 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2707 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2708 +netbsdelf*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2709 + version_type=linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2710 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2711 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2712 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2713 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2714 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2715 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2716 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2717 + dynamic_linker='NetBSD ld.elf_so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2718 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2719 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2720 +netbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2721 + version_type=sunos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2722 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2723 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2724 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2725 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2726 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2727 + dynamic_linker='NetBSD (a.out) ld.so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2728 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2729 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2730 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2731 + dynamic_linker='NetBSD ld.elf_so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2732 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2733 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2734 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2735 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2736 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2737 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2738 +newsos6)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2739 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2740 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2741 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2742 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2743 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2744 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2745 +*nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2746 + version_type=qnx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2747 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2748 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2749 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2750 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2751 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2752 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2753 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2754 + dynamic_linker='ldqnx.so'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2755 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2756 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2757 +openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2758 + version_type=sunos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2759 + sys_lib_dlsearch_path_spec="/usr/lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2760 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2761 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2762 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2763 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2764 + *) need_version=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2765 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2766 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2767 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2768 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2769 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2770 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2771 + openbsd2.[[89]] | openbsd2.[[89]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2772 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2773 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2774 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2775 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2776 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2777 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2778 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2779 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2780 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2781 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2782 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2783 +os2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2784 + libname_spec='$name'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2785 + shrext_cmds=".dll"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2786 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2787 + library_names_spec='$libname${shared_ext} $libname.a'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2788 + dynamic_linker='OS/2 ld.exe'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2789 + shlibpath_var=LIBPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2790 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2791 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2792 +osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2793 + version_type=osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2794 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2795 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2796 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2797 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2798 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2799 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2800 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2801 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2802 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2803 +rdos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2804 + dynamic_linker=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2805 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2806 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2807 +solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2808 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2809 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2810 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2811 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2812 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2813 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2814 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2815 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2816 + # ldd complains unless libraries are executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2817 + postinstall_cmds='chmod +x $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2818 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2819 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2820 +sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2821 + version_type=sunos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2822 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2823 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2824 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2825 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2826 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2827 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2828 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2829 + need_version=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2830 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2831 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2832 +sysv4 | sysv4.3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2833 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2834 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2835 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2836 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2837 + case $host_vendor in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2838 + sni)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2839 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2840 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2841 + runpath_var=LD_RUN_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2842 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2843 + siemens)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2844 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2845 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2846 + motorola)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2847 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2848 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2849 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2850 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2851 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2852 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2853 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2854 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2855 +sysv4*MP*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2856 + if test -d /usr/nec ;then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2857 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2858 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2859 + soname_spec='$libname${shared_ext}.$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2860 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2861 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2862 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2863 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2864 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2865 + version_type=freebsd-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2866 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2867 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2868 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2869 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2870 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2871 + shlibpath_overrides_runpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2872 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2873 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2874 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2875 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2876 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2877 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2878 + sco3.2v5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2879 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2880 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2881 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2882 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2883 + sys_lib_dlsearch_path_spec='/usr/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2884 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2885 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2886 +tpf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2887 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2888 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2889 + need_lib_prefix=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2890 + need_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2891 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2892 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2893 + shlibpath_overrides_runpath=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2894 + hardcode_into_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2895 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2896 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2897 +uts4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2898 + version_type=linux # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2899 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2900 + soname_spec='${libname}${release}${shared_ext}$major'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2901 + shlibpath_var=LD_LIBRARY_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2902 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2903 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2904 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2905 + dynamic_linker=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2906 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2907 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2908 +AC_MSG_RESULT([$dynamic_linker])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2909 +test "$dynamic_linker" = no && can_build_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2910 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2911 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2912 +if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2913 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2914 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2915 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2916 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2917 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2918 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2919 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2920 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2921 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2922 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2923 +_LT_DECL([], [variables_saved_for_relink], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2924 + [Variables whose values should be saved in libtool wrapper scripts and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2925 + restored at link time])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2926 +_LT_DECL([], [need_lib_prefix], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2927 + [Do we need the "lib" prefix for modules?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2928 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2929 +_LT_DECL([], [version_type], [0], [Library versioning type])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2930 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2931 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2932 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2933 + [Is shlibpath searched before the hard-coded library search path?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2934 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2935 +_LT_DECL([], [library_names_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2936 + [[List of archive names. First name is the real one, the rest are links.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2937 + The last name is the one that the linker finds with -lNAME]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2938 +_LT_DECL([], [soname_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2939 + [[The coded name of the library, if different from the real name]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2940 +_LT_DECL([], [install_override_mode], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2941 + [Permission mode override for installation of shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2942 +_LT_DECL([], [postinstall_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2943 + [Command to use after installation of a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2944 +_LT_DECL([], [postuninstall_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2945 + [Command to use after uninstallation of a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2946 +_LT_DECL([], [finish_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2947 + [Commands used to finish a libtool library installation in a directory])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2948 +_LT_DECL([], [finish_eval], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2949 + [[As "finish_cmds", except a single script fragment to be evaled but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2950 + not shown]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2951 +_LT_DECL([], [hardcode_into_libs], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2952 + [Whether we should hardcode library paths into libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2953 +_LT_DECL([], [sys_lib_search_path_spec], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2954 + [Compile-time system search path for libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2955 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2956 + [Run-time system search path for libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2957 +])# _LT_SYS_DYNAMIC_LINKER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2958 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2959 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2960 +# _LT_PATH_TOOL_PREFIX(TOOL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2961 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2962 +# find a file program which can recognize shared library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2963 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2964 +[m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2965 +AC_MSG_CHECKING([for $1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2966 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2967 +[case $MAGIC_CMD in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2968 +[[\\/*] | ?:[\\/]*])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2969 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2970 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2971 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2972 + lt_save_MAGIC_CMD="$MAGIC_CMD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2973 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2974 +dnl $ac_dummy forces splitting on constant user-supplied paths.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2975 +dnl POSIX.2 word splitting is done only on the output of word expansions,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2976 +dnl not every word. This closes a longstanding sh security hole.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2977 + ac_dummy="m4_if([$2], , $PATH, [$2])"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2978 + for ac_dir in $ac_dummy; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2979 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2980 + test -z "$ac_dir" && ac_dir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2981 + if test -f $ac_dir/$1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2982 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2983 + if test -n "$file_magic_test_file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2984 + case $deplibs_check_method in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2985 + "file_magic "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2986 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2987 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2988 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2989 + $EGREP "$file_magic_regex" > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2990 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2991 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2992 + cat <<_LT_EOF 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2993 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2994 +*** Warning: the command libtool uses to detect shared libraries,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2995 +*** $file_magic_cmd, produces output that libtool cannot recognize.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2996 +*** The result is that libtool may fail to recognize shared libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2997 +*** as such. This will affect the creation of libtool libraries that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2998 +*** depend on shared libraries, but programs linked with such libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2999 +*** libraries will work regardless of this problem. Nevertheless, you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3000 +*** may want to report the problem to your system manager and/or to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3001 +*** bug-libtool@gnu.org
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3002 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3003 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3004 + fi ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3005 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3006 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3007 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3008 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3009 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3010 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3011 + MAGIC_CMD="$lt_save_MAGIC_CMD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3012 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3013 +esac])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3014 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3015 +if test -n "$MAGIC_CMD"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3016 + AC_MSG_RESULT($MAGIC_CMD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3017 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3018 + AC_MSG_RESULT(no)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3019 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3020 +_LT_DECL([], [MAGIC_CMD], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3021 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3022 +])# _LT_PATH_TOOL_PREFIX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3023 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3024 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3025 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3026 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3027 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3028 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3029 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3030 +# _LT_PATH_MAGIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3031 +# --------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3032 +# find a file program which can recognize a shared library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3033 +m4_defun([_LT_PATH_MAGIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3034 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3035 +if test -z "$lt_cv_path_MAGIC_CMD"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3036 + if test -n "$ac_tool_prefix"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3037 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3038 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3039 + MAGIC_CMD=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3040 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3041 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3042 +])# _LT_PATH_MAGIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3043 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3044 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3045 +# LT_PATH_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3046 +# ----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3047 +# find the pathname to the GNU or non-GNU linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3048 +AC_DEFUN([LT_PATH_LD],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3049 +[AC_REQUIRE([AC_PROG_CC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3050 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3051 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3052 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3053 +m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3054 +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3055 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3056 +AC_ARG_WITH([gnu-ld],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3057 + [AS_HELP_STRING([--with-gnu-ld],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3058 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3059 + [test "$withval" = no || with_gnu_ld=yes],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3060 + [with_gnu_ld=no])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3061 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3062 +ac_prog=ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3063 +if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3064 + # Check if gcc -print-prog-name=ld gives a path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3065 + AC_MSG_CHECKING([for ld used by $CC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3066 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3067 + *-*-mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3068 + # gcc leaves a trailing carriage return which upsets mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3069 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3070 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3071 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3072 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3073 + case $ac_prog in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3074 + # Accept absolute paths.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3075 + [[\\/]]* | ?:[[\\/]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3076 + re_direlt='/[[^/]][[^/]]*/\.\./'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3077 + # Canonicalize the pathname of ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3078 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3079 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3080 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3081 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3082 + test -z "$LD" && LD="$ac_prog"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3083 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3084 + "")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3085 + # If it fails, then pretend we aren't using GCC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3086 + ac_prog=ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3087 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3088 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3089 + # If it is relative, then search for the first ld in PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3090 + with_gnu_ld=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3091 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3092 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3093 +elif test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3094 + AC_MSG_CHECKING([for GNU ld])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3095 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3096 + AC_MSG_CHECKING([for non-GNU ld])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3097 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3098 +AC_CACHE_VAL(lt_cv_path_LD,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3099 +[if test -z "$LD"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3100 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3101 + for ac_dir in $PATH; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3102 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3103 + test -z "$ac_dir" && ac_dir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3104 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3105 + lt_cv_path_LD="$ac_dir/$ac_prog"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3106 + # Check to see if the program is GNU ld. I'd rather use --version,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3107 + # but apparently some variants of GNU ld only accept -v.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3108 + # Break only if it was the GNU/non-GNU ld that we prefer.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3109 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3110 + *GNU* | *'with BFD'*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3111 + test "$with_gnu_ld" != no && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3112 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3113 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3114 + test "$with_gnu_ld" != yes && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3115 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3116 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3117 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3118 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3119 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3120 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3121 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3122 +fi])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3123 +LD="$lt_cv_path_LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3124 +if test -n "$LD"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3125 + AC_MSG_RESULT($LD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3126 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3127 + AC_MSG_RESULT(no)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3128 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3129 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3130 +_LT_PATH_LD_GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3131 +AC_SUBST([LD])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3132 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3133 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3134 +])# LT_PATH_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3135 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3136 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3137 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3138 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3139 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3140 +dnl AC_DEFUN([AM_PROG_LD], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3141 +dnl AC_DEFUN([AC_PROG_LD], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3142 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3143 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3144 +# _LT_PATH_LD_GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3145 +#- --------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3146 +m4_defun([_LT_PATH_LD_GNU],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3147 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3148 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3149 +case `$LD -v 2>&1 </dev/null` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3150 +*GNU* | *'with BFD'*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3151 + lt_cv_prog_gnu_ld=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3152 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3153 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3154 + lt_cv_prog_gnu_ld=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3155 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3156 +esac])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3157 +with_gnu_ld=$lt_cv_prog_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3158 +])# _LT_PATH_LD_GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3159 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3160 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3161 +# _LT_CMD_RELOAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3162 +# --------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3163 +# find reload flag for linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3164 +# -- PORTME Some linkers may need a different reload flag.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3165 +m4_defun([_LT_CMD_RELOAD],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3166 +[AC_CACHE_CHECK([for $LD option to reload object files],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3167 + lt_cv_ld_reload_flag,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3168 + [lt_cv_ld_reload_flag='-r'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3169 +reload_flag=$lt_cv_ld_reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3170 +case $reload_flag in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3171 +"" | " "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3172 +*) reload_flag=" $reload_flag" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3173 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3174 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3175 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3176 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3177 + if test "$GCC" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3178 + reload_cmds=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3179 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3180 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3181 + darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3182 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3183 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3184 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3185 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3186 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3187 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3188 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3189 +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3190 +_LT_TAGDECL([], [reload_cmds], [2])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3191 +])# _LT_CMD_RELOAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3192 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3193 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3194 +# _LT_CHECK_MAGIC_METHOD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3195 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3196 +# how to check for library dependencies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3197 +# -- PORTME fill in with the dynamic library characteristics
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3198 +m4_defun([_LT_CHECK_MAGIC_METHOD],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3199 +[m4_require([_LT_DECL_EGREP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3200 +m4_require([_LT_DECL_OBJDUMP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3201 +AC_CACHE_CHECK([how to recognize dependent libraries],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3202 +lt_cv_deplibs_check_method,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3203 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3204 +lt_cv_file_magic_test_file=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3205 +lt_cv_deplibs_check_method='unknown'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3206 +# Need to set the preceding variable on all platforms that support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3207 +# interlibrary dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3208 +# 'none' -- dependencies not supported.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3209 +# `unknown' -- same as none, but documents that we really don't know.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3210 +# 'pass_all' -- all dependencies passed with no checks.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3211 +# 'test_compile' -- check by making test program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3212 +# 'file_magic [[regex]]' -- check by looking for files in library path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3213 +# which responds to the $file_magic_cmd with a given extended regex.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3214 +# If you have `file' or equivalent on your system and you're not sure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3215 +# whether `pass_all' will *always* work, you probably want this one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3216 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3217 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3218 +aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3219 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3220 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3221 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3222 +beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3223 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3224 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3225 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3226 +bsdi[[45]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3227 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3228 + lt_cv_file_magic_cmd='/usr/bin/file -L'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3229 + lt_cv_file_magic_test_file=/shlib/libc.so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3230 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3231 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3232 +cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3233 + # func_win32_libid is a shell function defined in ltmain.sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3234 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3235 + lt_cv_file_magic_cmd='func_win32_libid'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3236 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3238 +mingw* | pw32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3239 + # Base MSYS/MinGW do not provide the 'file' command needed by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3240 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3241 + # unless we find 'file', for example because we are cross-compiling.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3242 + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3243 + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3244 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3245 + lt_cv_file_magic_cmd='func_win32_libid'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3246 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3247 + # Keep this pattern in sync with the one in func_win32_libid.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3248 + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3249 + lt_cv_file_magic_cmd='$OBJDUMP -f'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3250 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3251 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3252 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3253 +cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3254 + # use the weaker test based on 'objdump'. See mingw*.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3255 + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3256 + lt_cv_file_magic_cmd='$OBJDUMP -f'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3257 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3258 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3259 +darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3260 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3261 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3262 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3263 +freebsd* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3264 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3265 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3266 + i*86 )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3267 + # Not sure whether the presence of OpenBSD here was a mistake.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3268 + # Let's accept both of them until this is cleared up.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3269 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3270 + lt_cv_file_magic_cmd=/usr/bin/file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3271 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3272 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3273 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3274 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3275 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3276 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3277 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3278 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3279 +haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3280 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3281 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3282 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3283 +hpux10.20* | hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3284 + lt_cv_file_magic_cmd=/usr/bin/file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3285 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3286 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3287 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3288 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3289 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3290 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3291 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3292 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3293 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3294 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3295 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3296 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3297 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3298 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3299 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3300 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3301 +interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3302 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3303 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3304 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3305 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3306 +irix5* | irix6* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3307 + case $LD in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3308 + *-32|*"-32 ") libmagic=32-bit;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3309 + *-n32|*"-n32 ") libmagic=N32;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3310 + *-64|*"-64 ") libmagic=64-bit;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3311 + *) libmagic=never-match;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3312 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3313 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3314 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3315 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3316 +# This must be glibc/ELF.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3317 +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3318 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3319 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3320 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3321 +netbsd* | netbsdelf*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3322 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3323 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3324 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3325 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3326 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3327 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3328 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3329 +newos6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3330 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3331 + lt_cv_file_magic_cmd=/usr/bin/file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3332 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3333 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3334 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3335 +*nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3336 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3337 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3338 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3339 +openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3340 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3341 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3342 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3343 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3344 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3345 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3346 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3347 +osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3348 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3349 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3350 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3351 +rdos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3352 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3354 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3355 +solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3356 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3357 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3358 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3359 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3360 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3361 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3362 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3363 +sysv4 | sysv4.3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3364 + case $host_vendor in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3365 + motorola)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3366 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3367 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3368 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3369 + ncr)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3370 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3371 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3372 + sequent)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3373 + lt_cv_file_magic_cmd='/bin/file'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3374 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3375 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3376 + sni)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3377 + lt_cv_file_magic_cmd='/bin/file'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3378 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3379 + lt_cv_file_magic_test_file=/lib/libc.so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3380 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3381 + siemens)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3382 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3383 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3384 + pc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3385 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3386 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3387 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3388 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3389 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3390 +tpf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3391 + lt_cv_deplibs_check_method=pass_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3392 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3393 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3394 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3395 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3396 +file_magic_glob=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3397 +want_nocaseglob=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3398 +if test "$build" = "$host"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3399 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3400 + mingw* | pw32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3401 + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3402 + want_nocaseglob=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3403 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3404 + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3405 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3406 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3407 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3408 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3409 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3410 +file_magic_cmd=$lt_cv_file_magic_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3411 +deplibs_check_method=$lt_cv_deplibs_check_method
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3412 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3413 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3414 +_LT_DECL([], [deplibs_check_method], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3415 + [Method to check whether dependent libraries are shared objects])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3416 +_LT_DECL([], [file_magic_cmd], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3417 + [Command to use when deplibs_check_method = "file_magic"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3418 +_LT_DECL([], [file_magic_glob], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3419 + [How to find potential files when deplibs_check_method = "file_magic"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3420 +_LT_DECL([], [want_nocaseglob], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3421 + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3422 +])# _LT_CHECK_MAGIC_METHOD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3424 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3425 +# LT_PATH_NM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3426 +# ----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3427 +# find the pathname to a BSD- or MS-compatible name lister
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3428 +AC_DEFUN([LT_PATH_NM],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3429 +[AC_REQUIRE([AC_PROG_CC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3430 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3431 +[if test -n "$NM"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3432 + # Let the user override the test.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3433 + lt_cv_path_NM="$NM"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3434 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3435 + lt_nm_to_check="${ac_tool_prefix}nm"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3436 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3437 + lt_nm_to_check="$lt_nm_to_check nm"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3438 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3439 + for lt_tmp_nm in $lt_nm_to_check; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3440 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3441 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3442 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3443 + test -z "$ac_dir" && ac_dir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3444 + tmp_nm="$ac_dir/$lt_tmp_nm"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3445 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3446 + # Check to see if the nm accepts a BSD-compat flag.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3447 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3448 + # nm: unknown option "B" ignored
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3449 + # Tru64's nm complains that /dev/null is an invalid object file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3450 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3451 + */dev/null* | *'Invalid file or object type'*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3452 + lt_cv_path_NM="$tmp_nm -B"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3453 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3454 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3455 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3456 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3457 + */dev/null*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3458 + lt_cv_path_NM="$tmp_nm -p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3459 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3460 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3461 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3462 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3463 + continue # so that we can try to find one that supports BSD flags
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3464 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3465 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3466 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3467 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3468 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3469 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3470 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3471 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3472 + : ${lt_cv_path_NM=no}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3473 +fi])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3474 +if test "$lt_cv_path_NM" != "no"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3475 + NM="$lt_cv_path_NM"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3476 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3477 + # Didn't find any BSD compatible name lister, look for dumpbin.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3478 + if test -n "$DUMPBIN"; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3479 + # Let the user override the test.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3480 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3481 + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3482 + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3483 + *COFF*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3484 + DUMPBIN="$DUMPBIN -symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3485 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3486 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3487 + DUMPBIN=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3488 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3489 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3490 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3491 + AC_SUBST([DUMPBIN])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3492 + if test "$DUMPBIN" != ":"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3493 + NM="$DUMPBIN"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3494 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3495 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3496 +test -z "$NM" && NM=nm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3497 +AC_SUBST([NM])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3498 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3499 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3500 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3501 + [lt_cv_nm_interface="BSD nm"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3502 + echo "int some_variable = 0;" > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3503 + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3504 + (eval "$ac_compile" 2>conftest.err)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3505 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3506 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3507 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3508 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3509 + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3510 + cat conftest.out >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3511 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3512 + lt_cv_nm_interface="MS dumpbin"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3513 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3514 + rm -f conftest*])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3515 +])# LT_PATH_NM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3517 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3518 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3519 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3520 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3521 +dnl AC_DEFUN([AM_PROG_NM], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3522 +dnl AC_DEFUN([AC_PROG_NM], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3523 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3524 +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3525 +# --------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3526 +# how to determine the name of the shared library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3527 +# associated with a specific link library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3528 +# -- PORTME fill in with the dynamic library characteristics
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3529 +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3530 +[m4_require([_LT_DECL_EGREP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3531 +m4_require([_LT_DECL_OBJDUMP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3532 +m4_require([_LT_DECL_DLLTOOL])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3533 +AC_CACHE_CHECK([how to associate runtime and link libraries],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3534 +lt_cv_sharedlib_from_linklib_cmd,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3535 +[lt_cv_sharedlib_from_linklib_cmd='unknown'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3537 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3538 +cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3539 + # two different shell functions defined in ltmain.sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3540 + # decide which to use based on capabilities of $DLLTOOL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3541 + case `$DLLTOOL --help 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3542 + *--identify-strict*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3543 + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3544 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3545 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3546 + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3547 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3548 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3549 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3550 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3551 + # fallback: assume linklib IS sharedlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3552 + lt_cv_sharedlib_from_linklib_cmd="$ECHO"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3553 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3554 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3555 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3556 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3557 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3558 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3559 +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3560 + [Command to associate shared and link libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3561 +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3562 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3563 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3564 +# _LT_PATH_MANIFEST_TOOL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3565 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3566 +# locate the manifest tool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3567 +m4_defun([_LT_PATH_MANIFEST_TOOL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3568 +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3569 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3570 +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3571 + [lt_cv_path_mainfest_tool=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3572 + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3573 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3574 + cat conftest.err >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3575 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3576 + lt_cv_path_mainfest_tool=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3577 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3578 + rm -f conftest*])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3579 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3580 + MANIFEST_TOOL=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3581 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3582 +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3583 +])# _LT_PATH_MANIFEST_TOOL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3584 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3585 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3586 +# LT_LIB_M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3587 +# --------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3588 +# check for math library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3589 +AC_DEFUN([LT_LIB_M],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3590 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3591 +LIBM=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3592 +case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3593 +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3594 + # These system don't have libm, or don't need it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3595 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3596 +*-ncr-sysv4.3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3597 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3598 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3599 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3600 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3601 + AC_CHECK_LIB(m, cos, LIBM="-lm")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3602 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3603 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3604 +AC_SUBST([LIBM])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3605 +])# LT_LIB_M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3606 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3607 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3608 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3609 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3610 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3611 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3612 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3613 +# _LT_COMPILER_NO_RTTI([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3614 +# -------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3615 +m4_defun([_LT_COMPILER_NO_RTTI],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3616 +[m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3617 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3618 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3619 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3620 +if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3621 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3622 + nvcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3623 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3624 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3625 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3626 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3627 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3628 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3629 + lt_cv_prog_compiler_rtti_exceptions,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3630 + [-fno-rtti -fno-exceptions], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3631 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3632 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3633 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3634 + [Compiler flag to turn off builtin functions])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3635 +])# _LT_COMPILER_NO_RTTI
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3636 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3637 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3638 +# _LT_CMD_GLOBAL_SYMBOLS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3639 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3640 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3641 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3642 +AC_REQUIRE([AC_PROG_CC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3643 +AC_REQUIRE([AC_PROG_AWK])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3644 +AC_REQUIRE([LT_PATH_NM])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3645 +AC_REQUIRE([LT_PATH_LD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3646 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3647 +m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3648 +m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3650 +# Check for command to grab the raw symbol name followed by C symbol from nm.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3651 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3652 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3653 +[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3654 +# These are sane defaults that work on at least a few old systems.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3655 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3656 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3657 +# Character class describing NM global symbol codes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3658 +symcode='[[BCDEGRST]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3659 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3660 +# Regexp to match symbols that can be accessed directly from C.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3661 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3662 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3663 +# Define system-specific variables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3664 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3665 +aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3666 + symcode='[[BCDT]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3667 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3668 +cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3669 + symcode='[[ABCDGISTW]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3670 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3671 +hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3672 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3673 + symcode='[[ABCDEGRST]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3674 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3675 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3676 +irix* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3677 + symcode='[[BCDEGRST]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3678 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3679 +osf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3680 + symcode='[[BCDEGQRST]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3681 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3682 +solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3683 + symcode='[[BDRT]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3684 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3685 +sco3.2v5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3686 + symcode='[[DT]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3687 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3688 +sysv4.2uw2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3689 + symcode='[[DT]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3690 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3691 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3692 + symcode='[[ABDT]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3693 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3694 +sysv4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3695 + symcode='[[DFNSTU]]'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3696 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3697 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3698 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3699 +# If we're using GNU nm, then use its standard symbol codes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3700 +case `$NM -V 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3701 +*GNU* | *'with BFD'*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3702 + symcode='[[ABCDGIRSTW]]' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3703 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3704 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3705 +# Transform an extracted symbol line into a proper C declaration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3706 +# Some systems (esp. on ia64) link data and code symbols differently,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3707 +# so use this general approach.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3708 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3709 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3710 +# Transform an extracted symbol line into symbol name and symbol address
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3711 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3712 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3713 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3714 +# Handle CRLF in mingw tool chain
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3715 +opt_cr=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3716 +case $build_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3717 +mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3718 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3719 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3720 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3721 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3722 +# Try without a prefix underscore, then with it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3723 +for ac_symprfx in "" "_"; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3724 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3725 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3726 + symxfrm="\\1 $ac_symprfx\\2 \\2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3727 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3728 + # Write the raw and C identifiers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3729 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3730 + # Fake it for dumpbin and say T for any non-static function
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3731 + # and D for any global variable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3732 + # Also find C++ and __fastcall symbols from MSVC++,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3733 + # which start with @ or ?.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3734 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3735 +" {last_section=section; section=\$ 3};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3736 +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3737 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3738 +" \$ 0!~/External *\|/{next};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3739 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3740 +" {if(hide[section]) next};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3741 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3742 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3743 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3744 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3745 +" ' prfx=^$ac_symprfx]"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3746 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3747 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3748 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3749 + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3750 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3751 + # Check to see that the pipe works correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3752 + pipe_works=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3753 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3754 + rm -f conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3755 + cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3756 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3757 +extern "C" {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3758 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3759 +char nm_test_var;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3760 +void nm_test_func(void);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3761 +void nm_test_func(void){}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3762 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3763 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3764 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3765 +int main(){nm_test_var='a';nm_test_func();return(0);}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3766 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3767 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3768 + if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3769 + # Now try to grab the symbols.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3770 + nlist=conftest.nm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3771 + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3772 + # Try sorting and uniquifying the output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3773 + if sort "$nlist" | uniq > "$nlist"T; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3774 + mv -f "$nlist"T "$nlist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3775 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3776 + rm -f "$nlist"T
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3777 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3778 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3779 + # Make sure that we snagged all the symbols we need.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3780 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3781 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3782 + cat <<_LT_EOF > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3783 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3784 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3785 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3786 + relocations are performed -- see ld's documentation on pseudo-relocs. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3787 +# define LT@&t@_DLSYM_CONST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3788 +#elif defined(__osf__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3789 +/* This system does not cope well with relocations in const data. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3790 +# define LT@&t@_DLSYM_CONST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3791 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3792 +# define LT@&t@_DLSYM_CONST const
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3793 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3794 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3795 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3796 +extern "C" {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3797 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3798 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3799 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3800 + # Now generate the symbol file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3801 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3802 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3803 + cat <<_LT_EOF >> conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3805 +/* The mapping between symbol names and symbols. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3806 +LT@&t@_DLSYM_CONST struct {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3807 + const char *name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3808 + void *address;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3809 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3810 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3811 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3812 + { "@PROGRAM@", (void *) 0 },
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3813 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3814 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3815 + cat <<\_LT_EOF >> conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3816 + {0, (void *) 0}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3817 +};
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3818 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3819 +/* This works around a problem in FreeBSD linker */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3820 +#ifdef FREEBSD_WORKAROUND
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3821 +static const void *lt_preloaded_setup() {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3822 + return lt__PROGRAM__LTX_preloaded_symbols;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3823 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3824 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3825 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3826 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3827 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3828 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3829 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3830 + # Now try linking the two files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3831 + mv conftest.$ac_objext conftstm.$ac_objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3832 + lt_globsym_save_LIBS=$LIBS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3833 + lt_globsym_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3834 + LIBS="conftstm.$ac_objext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3835 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3836 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3837 + pipe_works=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3838 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3839 + LIBS=$lt_globsym_save_LIBS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3840 + CFLAGS=$lt_globsym_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3841 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3842 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3843 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3844 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3845 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3846 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3847 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3848 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3849 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3850 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3851 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3852 + cat conftest.$ac_ext >&5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3853 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3854 + rm -rf conftest* conftst*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3855 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3856 + # Do not use the global_symbol_pipe unless it works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3857 + if test "$pipe_works" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3858 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3859 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3860 + lt_cv_sys_global_symbol_pipe=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3861 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3862 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3863 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3864 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3865 + lt_cv_sys_global_symbol_to_cdecl=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3866 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3867 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3868 + AC_MSG_RESULT(failed)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3869 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3870 + AC_MSG_RESULT(ok)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3871 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3872 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3873 +# Response file support.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3874 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3875 + nm_file_list_spec='@'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3876 +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3877 + nm_file_list_spec='@'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3878 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3879 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3880 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3881 + [Take the output of nm and produce a listing of raw symbols and C names])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3882 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3883 + [Transform the output of nm in a proper C declaration])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3884 +_LT_DECL([global_symbol_to_c_name_address],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3885 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3886 + [Transform the output of nm in a C name address pair])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3887 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3888 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3889 + [Transform the output of nm in a C name address pair when lib prefix is needed])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3890 +_LT_DECL([], [nm_file_list_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3891 + [Specify filename containing input files for $NM])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3892 +]) # _LT_CMD_GLOBAL_SYMBOLS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3893 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3894 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3895 +# _LT_COMPILER_PIC([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3896 +# ---------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3897 +m4_defun([_LT_COMPILER_PIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3898 +[m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3899 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3900 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3901 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3902 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3903 +m4_if([$1], [CXX], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3904 + # C++ specific cases for pic, static, wl, etc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3905 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3906 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3907 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3908 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3909 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3910 + aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3911 + # All AIX code is PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3912 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3913 + # AIX 5 now supports IA64 processor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3914 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3915 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3916 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3917 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3918 + amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3919 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3920 + powerpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3921 + # see comment about AmigaOS4 .so support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3922 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3923 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3924 + m68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3925 + # FIXME: we need at least 68020 code to build shared libraries, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3926 + # adding the `-m68020' flag to GCC prevents building anything better,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3927 + # like `-m68040'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3928 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3929 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3930 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3931 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3932 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3933 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3934 + # PIC is the default for these OSes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3935 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3936 + mingw* | cygwin* | os2* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3937 + # This hack is so that the source file can tell whether it is being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3938 + # built for inclusion in a dll (and should export symbols for example).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3939 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3940 + # (--disable-auto-import) libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3941 + m4_if([$1], [GCJ], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3942 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3943 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3944 + darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3945 + # PIC is the default on this platform
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3946 + # Common symbols not allowed in MH_DYLIB files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3947 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3948 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3949 + *djgpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3950 + # DJGPP does not support shared libraries at all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3951 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3952 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3953 + haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3954 + # PIC is the default for Haiku.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3955 + # The "-static" flag exists, but is broken.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3956 + _LT_TAGVAR(lt_prog_compiler_static, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3957 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3958 + interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3959 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3960 + # Instead, we relocate shared libraries at runtime.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3961 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3962 + sysv4*MP*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3963 + if test -d /usr/nec; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3964 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3965 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3966 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3967 + hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3968 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3969 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3970 + # sets the default TLS model and affects inlining.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3971 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3972 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3973 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3974 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3975 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3976 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3977 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3978 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3979 + *qnx* | *nto*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3980 + # QNX uses GNU C++, but need to define -shared option too, otherwise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3981 + # it will coredump.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3982 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3983 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3984 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3985 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3986 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3987 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3988 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3989 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3990 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3991 + # All AIX code is PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3992 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3993 + # AIX 5 now supports IA64 processor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3994 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3995 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3996 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3997 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3998 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3999 + chorus*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4000 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4001 + cxch68*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4002 + # Green Hills C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4003 + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4004 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4005 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4006 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4007 + mingw* | cygwin* | os2* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4008 + # This hack is so that the source file can tell whether it is being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4009 + # built for inclusion in a dll (and should export symbols for example).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4010 + m4_if([$1], [GCJ], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4011 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4012 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4013 + dgux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4014 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4015 + ec++*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4016 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4017 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4018 + ghcx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4019 + # Green Hills C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4020 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4021 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4022 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4023 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4024 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4025 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4026 + freebsd* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4027 + # FreeBSD uses GNU C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4028 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4029 + hpux9* | hpux10* | hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4030 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4031 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4032 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4033 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4034 + if test "$host_cpu" != ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4035 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4036 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4037 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4038 + aCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4039 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4040 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4041 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4042 + hppa*64*|ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4043 + # +Z the default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4044 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4045 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4046 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4047 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4048 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4049 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4050 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4051 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4052 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4053 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4054 + interix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4055 + # This is c89, which is MS Visual C++ (no shared libs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4056 + # Anyone wants to do a port?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4057 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4058 + irix5* | irix6* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4059 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4060 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4061 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4062 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4063 + # CC pic flag -KPIC is the default.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4064 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4065 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4066 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4067 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4068 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4069 + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4070 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4071 + KCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4072 + # KAI C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4073 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4074 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4075 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4076 + ecpc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4077 + # old Intel C++ for x86_64 which still supported -KPIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4078 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4079 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4080 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4081 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4082 + icpc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4083 + # Intel C++, used to be incompatible with GCC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4084 + # ICC 10 doesn't accept -KPIC any more.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4085 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4086 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4087 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4088 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4089 + pgCC* | pgcpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4090 + # Portland Group C++ compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4091 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4092 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4093 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4094 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4095 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4096 + # Compaq C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4097 + # Make sure the PIC flag is empty. It appears that all Alpha
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4098 + # Linux and Compaq Tru64 Unix objects are PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4099 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4100 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4101 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4102 + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4103 + # IBM XL 8.0, 9.0 on PPC and BlueGene
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4104 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4105 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4106 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4107 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4108 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4109 + case `$CC -V 2>&1 | sed 5q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4110 + *Sun\ C*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4111 + # Sun C++ 5.9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4112 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4113 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4114 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4115 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4116 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4117 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4118 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4119 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4120 + lynxos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4121 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4122 + m88k*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4123 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4124 + mvs*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4125 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4126 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4127 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4128 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4129 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4130 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4131 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4132 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4133 + netbsd* | netbsdelf*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4134 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4135 + *qnx* | *nto*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4136 + # QNX uses GNU C++, but need to define -shared option too, otherwise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4137 + # it will coredump.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4138 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4139 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4140 + osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4141 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4142 + KCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4143 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4144 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4145 + RCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4146 + # Rational C++ 2.4.1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4147 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4148 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4149 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4150 + # Digital/Compaq C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4151 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4152 + # Make sure the PIC flag is empty. It appears that all Alpha
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4153 + # Linux and Compaq Tru64 Unix objects are PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4154 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4155 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4156 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4157 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4158 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4159 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4160 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4161 + psos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4162 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4163 + solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4164 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4165 + CC* | sunCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4166 + # Sun C++ 4.2, 5.x and Centerline C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4167 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4168 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4169 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4170 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4171 + gcx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4172 + # Green Hills C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4173 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4174 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4175 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4176 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4177 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4178 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4179 + sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4180 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4181 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4182 + # Sun C++ 4.x
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4183 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4184 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4185 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4186 + lcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4187 + # Lucid
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4188 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4189 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4190 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4191 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4192 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4193 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4194 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4195 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4196 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4197 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4198 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4199 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4200 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4201 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4202 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4203 + tandem*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4204 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4205 + NCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4206 + # NonStop-UX NCC 3.20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4207 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4208 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4209 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4210 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4211 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4212 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4213 + vxworks*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4214 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4215 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4216 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4217 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4218 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4219 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4220 +],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4221 +[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4222 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4223 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4224 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4225 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4226 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4227 + aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4228 + # All AIX code is PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4229 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4230 + # AIX 5 now supports IA64 processor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4231 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4232 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4233 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4234 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4235 + amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4236 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4237 + powerpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4238 + # see comment about AmigaOS4 .so support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4239 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4240 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4241 + m68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4242 + # FIXME: we need at least 68020 code to build shared libraries, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4243 + # adding the `-m68020' flag to GCC prevents building anything better,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4244 + # like `-m68040'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4245 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4246 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4247 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4248 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4249 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4250 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4251 + # PIC is the default for these OSes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4252 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4253 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4254 + mingw* | cygwin* | pw32* | os2* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4255 + # This hack is so that the source file can tell whether it is being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4256 + # built for inclusion in a dll (and should export symbols for example).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4257 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4258 + # (--disable-auto-import) libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4259 + m4_if([$1], [GCJ], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4260 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4261 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4262 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4263 + darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4264 + # PIC is the default on this platform
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4265 + # Common symbols not allowed in MH_DYLIB files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4266 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4267 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4268 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4269 + haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4270 + # PIC is the default for Haiku.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4271 + # The "-static" flag exists, but is broken.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4272 + _LT_TAGVAR(lt_prog_compiler_static, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4273 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4274 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4275 + hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4276 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4277 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4278 + # sets the default TLS model and affects inlining.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4279 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4280 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4281 + # +Z the default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4282 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4283 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4284 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4285 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4286 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4287 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4288 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4289 + interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4290 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4291 + # Instead, we relocate shared libraries at runtime.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4292 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4293 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4294 + msdosdjgpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4295 + # Just because we use GCC doesn't mean we suddenly get shared libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4296 + # on systems that don't support them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4297 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4298 + enable_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4299 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4300 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4301 + *nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4302 + # QNX uses GNU C++, but need to define -shared option too, otherwise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4303 + # it will coredump.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4304 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4305 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4306 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4307 + sysv4*MP*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4308 + if test -d /usr/nec; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4309 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4310 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4311 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4312 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4313 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4314 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4315 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4316 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4317 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4318 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4319 + nvcc*) # Cuda Compiler Driver 2.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4320 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4321 + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4322 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4323 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4324 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4325 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4326 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4327 + # PORTME Check for flag to pass linker flags through the system compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4328 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4329 + aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4330 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4331 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4332 + # AIX 5 now supports IA64 processor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4333 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4334 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4335 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4336 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4337 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4338 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4339 + mingw* | cygwin* | pw32* | os2* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4340 + # This hack is so that the source file can tell whether it is being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4341 + # built for inclusion in a dll (and should export symbols for example).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4342 + m4_if([$1], [GCJ], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4343 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4344 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4345 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4346 + hpux9* | hpux10* | hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4347 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4348 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4349 + # not for PA HP-UX.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4350 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4351 + hppa*64*|ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4352 + # +Z the default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4354 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4355 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4356 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4357 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4358 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4359 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4360 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4361 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4362 + irix5* | irix6* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4363 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4364 + # PIC (with -KPIC) is the default.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4365 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4366 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4367 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4368 + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4369 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4370 + # old Intel for x86_64 which still supported -KPIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4371 + ecc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4372 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4373 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4374 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4375 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4376 + # icc used to be incompatible with GCC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4377 + # ICC 10 doesn't accept -KPIC any more.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4378 + icc* | ifort*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4379 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4380 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4381 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4382 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4383 + # Lahey Fortran 8.1.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4384 + lf95*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4385 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4386 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4387 + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4388 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4389 + nagfor*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4390 + # NAG Fortran compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4391 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4392 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4393 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4394 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4395 + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4396 + # Portland Group compilers (*not* the Pentium gcc compiler,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4397 + # which looks to be a dead project)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4398 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4399 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4400 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4401 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4402 + ccc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4403 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4404 + # All Alpha code is PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4405 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4406 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4407 + xl* | bgxl* | bgf* | mpixl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4408 + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4409 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4410 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4411 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4412 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4413 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4414 + case `$CC -V 2>&1 | sed 5q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4415 + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4416 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4417 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4418 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4419 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4420 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4421 + *Sun\ F* | *Sun*Fortran*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4422 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4423 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4424 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4425 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4426 + *Sun\ C*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4427 + # Sun C 5.9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4428 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4429 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4430 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4431 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4432 + *Intel*\ [[CF]]*Compiler*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4433 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4434 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4435 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4436 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4437 + *Portland\ Group*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4438 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4439 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4440 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4441 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4442 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4443 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4444 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4445 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4446 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4447 + newsos6)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4448 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4449 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4450 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4451 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4452 + *nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4453 + # QNX uses GNU C++, but need to define -shared option too, otherwise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4454 + # it will coredump.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4455 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4456 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4457 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4458 + osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4459 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4460 + # All OSF/1 code is PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4461 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4462 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4463 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4464 + rdos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4465 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4466 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4467 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4468 + solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4469 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4470 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4471 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4472 + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4473 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4474 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4475 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4476 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4477 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4478 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4479 + sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4480 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4481 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4482 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4483 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4484 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4485 + sysv4 | sysv4.2uw2* | sysv4.3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4486 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4487 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4488 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4489 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4490 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4491 + sysv4*MP*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4492 + if test -d /usr/nec ;then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4493 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4494 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4495 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4496 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4497 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4498 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4499 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4500 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4501 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4502 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4503 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4504 + unicos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4505 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4506 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4507 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4509 + uts4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4510 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4511 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4512 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4513 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4514 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4515 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4516 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4517 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4518 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4519 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4520 +case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4521 + # For platforms which do not support PIC, -DPIC is meaningless:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4522 + *djgpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4523 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4524 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4525 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4526 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4527 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4528 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4529 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4530 +AC_CACHE_CHECK([for $compiler option to produce PIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4531 + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4532 + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4533 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4534 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4535 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4536 +# Check to make sure the PIC flag actually works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4537 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4538 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4539 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4540 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4541 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4542 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4543 + "" | " "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4544 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4545 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4546 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4547 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4548 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4549 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4550 + [Additional compiler flags for building library objects])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4551 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4552 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4553 + [How to pass a linker flag through the compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4554 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4555 +# Check to make sure the static flag actually works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4556 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4557 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4558 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4559 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4560 + $lt_tmp_static_flag,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4561 + [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4562 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4563 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4564 + [Compiler flag to prevent dynamic linking])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4565 +])# _LT_COMPILER_PIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4566 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4567 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4568 +# _LT_LINKER_SHLIBS([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4569 +# ----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4570 +# See if the linker supports building shared libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4571 +m4_defun([_LT_LINKER_SHLIBS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4572 +[AC_REQUIRE([LT_PATH_LD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4573 +AC_REQUIRE([LT_PATH_NM])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4574 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4575 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4576 +m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4577 +m4_require([_LT_DECL_SED])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4578 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4579 +m4_require([_LT_TAG_COMPILER])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4580 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4581 +m4_if([$1], [CXX], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4582 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4583 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4584 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4585 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4586 + # If we're using GNU nm, then we don't want the "-C" option.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4587 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4588 + # Also, AIX nm treats weak defined symbols like other global defined
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4589 + # symbols, whereas GNU nm marks them as "W".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4590 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4591 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4592 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4593 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4594 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4595 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4596 + pw32*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4597 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4598 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4599 + cygwin* | mingw* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4600 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4601 + cl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4602 + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4603 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4604 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4605 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4606 + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4607 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4608 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4609 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4610 + linux* | k*bsd*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4611 + _LT_TAGVAR(link_all_deplibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4612 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4613 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4614 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4615 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4616 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4617 +], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4618 + runpath_var=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4619 + _LT_TAGVAR(allow_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4620 + _LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4621 + _LT_TAGVAR(archive_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4622 + _LT_TAGVAR(archive_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4623 + _LT_TAGVAR(compiler_needs_object, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4624 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4625 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4626 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4627 + _LT_TAGVAR(hardcode_automatic, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4628 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4629 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4630 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4631 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4632 + _LT_TAGVAR(hardcode_minus_L, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4633 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4634 + _LT_TAGVAR(inherit_rpath, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4635 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4636 + _LT_TAGVAR(module_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4637 + _LT_TAGVAR(module_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4638 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4639 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4640 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4641 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4642 + # include_expsyms should be a list of space-separated symbols to be *always*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4643 + # included in the symbol list
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4644 + _LT_TAGVAR(include_expsyms, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4645 + # exclude_expsyms can be an extended regexp of symbols to exclude
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4646 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4647 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4648 + # as well as any symbol that contains `d'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4649 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4650 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4651 + # platforms (ab)use it in PIC code, but their linkers get confused if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4652 + # the symbol is explicitly referenced. Since portable code cannot
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4653 + # rely on this symbol name, it's probably fine to never include it in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4654 + # preloaded symbol tables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4655 + # Exclude shared library initialization/finalization symbols.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4656 +dnl Note also adjust exclude_expsyms for C++ above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4657 + extract_expsyms_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4658 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4659 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4660 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4661 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4662 + # When not using gcc, we currently assume that we are using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4663 + # Microsoft Visual C++.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4664 + if test "$GCC" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4665 + with_gnu_ld=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4666 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4667 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4668 + interix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4669 + # we just hope/assume this is gcc and not c89 (= MSVC++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4670 + with_gnu_ld=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4671 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4672 + openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4673 + with_gnu_ld=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4674 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4675 + linux* | k*bsd*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4676 + _LT_TAGVAR(link_all_deplibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4677 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4678 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4679 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4680 + _LT_TAGVAR(ld_shlibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4681 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4682 + # On some targets, GNU ld is compatible enough with the native linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4683 + # that we're better off using the native interface for both.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4684 + lt_use_gnu_ld_interface=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4685 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4686 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4687 + aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4688 + # The AIX port of GNU ld has always aspired to compatibility
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4689 + # with the native linker. However, as the warning in the GNU ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4690 + # block says, versions before 2.19.5* couldn't really create working
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4691 + # shared libraries, regardless of the interface used.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4692 + case `$LD -v 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4693 + *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4694 + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4695 + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4696 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4697 + lt_use_gnu_ld_interface=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4698 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4699 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4700 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4701 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4702 + lt_use_gnu_ld_interface=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4703 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4704 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4705 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4706 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4707 + if test "$lt_use_gnu_ld_interface" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4708 + # If archive_cmds runs LD, not CC, wlarc should be empty
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4709 + wlarc='${wl}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4710 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4711 + # Set some defaults for GNU ld with shared library support. These
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4712 + # are reset later if shared libraries are not supported. Putting them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4713 + # here allows them to be overridden if necessary.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4714 + runpath_var=LD_RUN_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4715 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4716 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4717 + # ancient GNU ld didn't support --whole-archive et. al.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4718 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4719 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4720 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4721 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4722 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4723 + supports_anon_versioning=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4724 + case `$LD -v 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4725 + *GNU\ gold*) supports_anon_versioning=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4726 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4727 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4728 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4729 + *\ 2.11.*) ;; # other 2.11 versions
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4730 + *) supports_anon_versioning=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4731 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4732 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4733 + # See if GNU ld supports shared libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4734 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4735 + aix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4736 + # On AIX/PPC, the GNU linker is very broken
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4737 + if test "$host_cpu" != ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4738 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4739 + cat <<_LT_EOF 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4740 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4741 +*** Warning: the GNU linker, at least up to release 2.19, is reported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4742 +*** to be unable to reliably create shared libraries on AIX.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4743 +*** Therefore, libtool is disabling shared libraries support. If you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4744 +*** really care for shared libraries, you may want to install binutils
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4745 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4746 +*** You will then need to restart the configuration process.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4747 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4748 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4749 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4750 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4751 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4752 + amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4753 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4754 + powerpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4755 + # see comment about AmigaOS4 .so support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4756 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4757 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4758 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4759 + m68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4760 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4761 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4762 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4763 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4764 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4765 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4766 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4767 + beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4768 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4769 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4770 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4771 + # support --undefined. This deserves some investigation. FIXME
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4772 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4773 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4774 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4775 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4776 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4777 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4778 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4779 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4780 + # as there is no search path for DLLs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4781 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4782 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4783 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4784 + _LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4785 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4786 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4787 + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4788 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4789 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4790 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4791 + # If the export-symbols file already is a .def file (1st line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4792 + # is EXPORTS), use it as is; otherwise, prepend...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4793 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4794 + cp $export_symbols $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4795 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4796 + echo EXPORTS > $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4797 + cat $export_symbols >> $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4798 + fi~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4799 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4800 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4801 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4802 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4803 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4805 + haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4806 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4807 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4808 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4809 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4810 + interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4811 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4812 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4813 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4814 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4815 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4816 + # Instead, shared libraries are loaded at an image base (0x10000000 by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4817 + # default) and relocated if they conflict, which is a slow very memory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4818 + # consuming and fragmenting process. To avoid this, we pick a random,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4819 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4820 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4821 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4822 + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4823 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4824 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4825 + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4826 + tmp_diet=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4827 + if test "$host_os" = linux-dietlibc; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4828 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4829 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4830 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4831 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4832 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4833 + && test "$tmp_diet" = no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4834 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4835 + tmp_addflag=' $pic_flag'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4836 + tmp_sharedflag='-shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4837 + case $cc_basename,$host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4838 + pgcc*) # Portland Group C compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4839 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4840 + tmp_addflag=' $pic_flag'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4841 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4842 + pgf77* | pgf90* | pgf95* | pgfortran*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4843 + # Portland Group f77 and f90 compilers
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4844 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4845 + tmp_addflag=' $pic_flag -Mnomain' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4846 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4847 + tmp_addflag=' -i_dynamic' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4848 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4849 + tmp_addflag=' -i_dynamic -nofor_main' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4850 + ifc* | ifort*) # Intel Fortran compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4851 + tmp_addflag=' -nofor_main' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4852 + lf95*) # Lahey Fortran 8.1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4853 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4854 + tmp_sharedflag='--shared' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4855 + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4856 + tmp_sharedflag='-qmkshrobj'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4857 + tmp_addflag= ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4858 + nvcc*) # Cuda Compiler Driver 2.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4859 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4860 + _LT_TAGVAR(compiler_needs_object, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4861 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4862 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4863 + case `$CC -V 2>&1 | sed 5q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4864 + *Sun\ C*) # Sun C 5.9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4865 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4866 + _LT_TAGVAR(compiler_needs_object, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4867 + tmp_sharedflag='-G' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4868 + *Sun\ F*) # Sun Fortran 8.3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4869 + tmp_sharedflag='-G' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4870 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4871 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4872 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4873 + if test "x$supports_anon_versioning" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4874 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4875 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4876 + echo "local: *; };" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4877 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4878 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4879 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4880 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4881 + xlf* | bgf* | bgxlf* | mpixlf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4882 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4883 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4884 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4885 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4886 + if test "x$supports_anon_versioning" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4887 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4888 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4889 + echo "local: *; };" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4890 + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4891 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4892 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4893 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4894 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4895 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4896 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4897 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4898 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4899 + netbsd* | netbsdelf*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4900 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4901 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4902 + wlarc=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4903 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4904 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4905 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4906 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4907 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4908 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4909 + solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4910 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4911 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4912 + cat <<_LT_EOF 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4913 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4914 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4915 +*** create shared libraries on Solaris systems. Therefore, libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4916 +*** is disabling shared libraries support. We urge you to upgrade GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4917 +*** binutils to release 2.9.1 or newer. Another option is to modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4918 +*** your PATH or compiler configuration so that the native linker is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4919 +*** used, and then restart.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4920 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4921 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4922 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4923 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4924 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4925 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4926 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4927 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4928 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4929 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4930 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4931 + case `$LD -v 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4932 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4933 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4934 + cat <<_LT_EOF 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4935 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4936 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4937 +*** reliably create shared libraries on SCO systems. Therefore, libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4938 +*** is disabling shared libraries support. We urge you to upgrade GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4939 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4940 +*** your PATH or compiler configuration so that the native linker is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4941 +*** used, and then restart.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4942 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4943 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4944 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4945 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4946 + # For security reasons, it is highly recommended that you always
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4947 + # use absolute paths for naming shared libraries, and exclude the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4948 + # DT_RUNPATH tag from executables and libraries. But doing so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4949 + # requires that you compile everything twice, which is a pain.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4950 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4951 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4952 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4953 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4954 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4955 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4956 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4957 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4958 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4959 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4960 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4961 + sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4962 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4963 + wlarc=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4964 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4965 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4966 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4967 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4968 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4969 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4970 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4971 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4972 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4973 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4974 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4975 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4976 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4977 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4978 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4979 + runpath_var=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4980 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4981 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4982 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4983 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4984 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4985 + # PORTME fill in a description of your system's linker (not GNU ld)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4986 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4987 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4988 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4989 + _LT_TAGVAR(always_export_symbols, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4990 + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4991 + # Note: this linker hardcodes the directories in LIBPATH if there
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4992 + # are no directories specified by -L.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4993 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4994 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4995 + # Neither direct hardcoding nor static linking is supported with a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4996 + # broken collect2.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4997 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4998 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4999 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5000 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5001 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5002 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5003 + # On IA64, the linker does run time linking by default, so we don't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5004 + # have to do anything special.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5005 + aix_use_runtimelinking=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5006 + exp_sym_flag='-Bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5007 + no_entry_flag=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5008 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5009 + # If we're using GNU nm, then we don't want the "-C" option.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5010 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5011 + # Also, AIX nm treats weak defined symbols like other global
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5012 + # defined symbols, whereas GNU nm marks them as "W".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5013 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5014 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5015 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5016 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5017 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5018 + aix_use_runtimelinking=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5019 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5020 + # Test if we are trying to use run time linking or normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5021 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5022 + # need to do runtime linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5023 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5024 + for ld_flag in $LDFLAGS; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5025 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5026 + aix_use_runtimelinking=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5027 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5028 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5029 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5030 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5031 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5032 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5033 + exp_sym_flag='-bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5034 + no_entry_flag='-bnoentry'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5035 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5036 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5037 + # When large executables or shared objects are built, AIX ld can
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5038 + # have problems creating the table of contents. If linking a library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5039 + # or program results in "error TOC overflow" add -mminimal-toc to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5040 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5041 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5042 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5043 + _LT_TAGVAR(archive_cmds, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5044 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5045 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5046 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5047 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5048 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5049 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5050 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5051 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5052 + # We only want to do this on AIX 4.2 and lower, the check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5053 + # below for broken collect2 doesn't work under 4.3+
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5054 + collect2name=`${CC} -print-prog-name=collect2`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5055 + if test -f "$collect2name" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5056 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5057 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5058 + # We have reworked collect2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5059 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5060 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5061 + # We have old collect2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5062 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5063 + # It fails to find uninstalled libraries when the uninstalled
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5064 + # path is not listed in the libpath. Setting hardcode_minus_L
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5065 + # to unsupported forces relinking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5066 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5067 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5068 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5069 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5070 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5071 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5072 + shared_flag='-shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5073 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5074 + shared_flag="$shared_flag "'${wl}-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5075 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5076 + _LT_TAGVAR(link_all_deplibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5077 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5078 + # not using gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5079 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5080 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5081 + # chokes on -Wl,-G. The following line is correct:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5082 + shared_flag='-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5083 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5084 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5085 + shared_flag='${wl}-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5086 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5087 + shared_flag='${wl}-bM:SRE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5088 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5089 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5090 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5091 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5092 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5093 + # It seems that -bexpall does not export symbols beginning with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5094 + # underscore (_), so it is better to generate a list of symbols to export.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5095 + _LT_TAGVAR(always_export_symbols, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5096 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5097 + # Warning - without using the other runtime loading flags (-brtl),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5098 + # -berok will link without error, but may produce a broken library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5099 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5100 + # Determine the default libpath from the value encoded in an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5101 + # empty executable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5102 + _LT_SYS_MODULE_PATH_AIX([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5103 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5104 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5105 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5106 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5107 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5108 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5109 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5110 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5111 + # Determine the default libpath from the value encoded in an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5112 + # empty executable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5113 + _LT_SYS_MODULE_PATH_AIX([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5114 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5115 + # Warning - without using the other run time loading flags,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5116 + # -berok will link without error, but may produce a broken library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5117 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5118 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5119 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5120 + # We only use this code for GNU lds that support --whole-archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5121 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5122 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5123 + # Exported symbols can be pulled into shared objects from archives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5124 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5125 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5126 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5127 + # This is similar to how AIX traditionally builds its shared libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5128 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5129 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5130 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5131 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5132 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5133 + amigaos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5134 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5135 + powerpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5136 + # see comment about AmigaOS4 .so support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5137 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5138 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5139 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5140 + m68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5141 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5142 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5143 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5144 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5145 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5146 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5147 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5148 + bsdi[[45]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5149 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5150 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5151 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5152 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5153 + # When not using gcc, we currently assume that we are using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5154 + # Microsoft Visual C++.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5155 + # hardcode_libdir_flag_spec is actually meaningless, as there is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5156 + # no search path for DLLs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5157 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5158 + cl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5159 + # Native MSVC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5160 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5161 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5162 + _LT_TAGVAR(always_export_symbols, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5163 + _LT_TAGVAR(file_list_spec, $1)='@'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5164 + # Tell ltmain to make .lib files, not .a files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5165 + libext=lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5166 + # Tell ltmain to make .dll files, not .so files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5167 + shrext_cmds=".dll"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5168 + # FIXME: Setting linknames here is a bad hack.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5169 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5170 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5171 + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5172 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5173 + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5174 + fi~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5175 + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5176 + linknames='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5177 + # The linker will not automatically build a static lib if we build a DLL.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5178 + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5179 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5180 + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5181 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5182 + # Don't use ranlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5183 + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5184 + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5185 + lt_tool_outputfile="@TOOL_OUTPUT@"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5186 + case $lt_outputfile in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5187 + *.exe|*.EXE) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5188 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5189 + lt_outputfile="$lt_outputfile.exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5190 + lt_tool_outputfile="$lt_tool_outputfile.exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5191 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5192 + esac~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5193 + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5194 + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5195 + $RM "$lt_outputfile.manifest";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5196 + fi'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5197 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5198 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5199 + # Assume MSVC wrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5200 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5201 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5202 + # Tell ltmain to make .lib files, not .a files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5203 + libext=lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5204 + # Tell ltmain to make .dll files, not .so files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5205 + shrext_cmds=".dll"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5206 + # FIXME: Setting linknames here is a bad hack.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5207 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5208 + # The linker will automatically build a .lib file if we build a DLL.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5209 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5210 + # FIXME: Should let the user specify the lib program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5211 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5212 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5213 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5214 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5215 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5216 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5217 + darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5218 + _LT_DARWIN_LINKER_FEATURES($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5219 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5220 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5221 + dgux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5222 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5223 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5224 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5225 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5226 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5227 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5228 + # support. Future versions do this automatically, but an explicit c++rt0.o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5229 + # does not break anything, and helps significantly (at the cost of a little
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5230 + # extra space).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5231 + freebsd2.2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5232 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5233 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5234 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5235 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5236 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5238 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5239 + freebsd2.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5240 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5241 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5242 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5243 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5244 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5245 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5246 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5247 + freebsd* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5248 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5249 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5250 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5251 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5252 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5253 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5254 + hpux9*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5255 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5256 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5257 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5258 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5259 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5260 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5261 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5262 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5263 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5264 + # hardcode_minus_L: Not really in the search PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5265 + # but as the default location of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5266 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5267 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5268 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5269 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5270 + hpux10*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5271 + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5272 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5273 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5274 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5275 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5276 + if test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5277 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5278 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5279 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5280 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5281 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5282 + # hardcode_minus_L: Not really in the search PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5283 + # but as the default location of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5284 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5285 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5286 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5287 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5288 + hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5289 + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5290 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5291 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5292 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5293 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5294 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5295 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5296 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5297 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5298 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5299 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5300 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5301 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5302 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5303 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5304 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5305 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5306 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5307 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5308 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5309 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5310 + m4_if($1, [], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5311 + # Older versions of the 11.00 compiler do not understand -b yet
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5312 + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5313 + _LT_LINKER_OPTION([if $CC understands -b],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5314 + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5315 + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5316 + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5317 + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5318 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5319 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5320 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5321 + if test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5322 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5323 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5324 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5325 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5326 + hppa*64*|ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5327 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5328 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5329 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5330 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5331 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5332 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5333 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5334 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5335 + # hardcode_minus_L: Not really in the search PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5336 + # but as the default location of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5337 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5338 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5339 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5340 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5341 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5342 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5343 + irix5* | irix6* | nonstopux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5344 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5345 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5346 + # Try to use the -exported_symbol ld option, if it does not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5347 + # work, assume that -exports_file does not work either and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5348 + # implicitly export all symbols.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5349 + # This should be the same for all languages, so no per-tag cache variable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5350 + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5351 + [lt_cv_irix_exported_symbol],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5352 + [save_LDFLAGS="$LDFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5353 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5354 + AC_LINK_IFELSE(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5355 + [AC_LANG_SOURCE(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5356 + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5357 + [C++], [[int foo (void) { return 0; }]],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5358 + [Fortran 77], [[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5359 + subroutine foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5360 + end]],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5361 + [Fortran], [[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5362 + subroutine foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5363 + end]])])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5364 + [lt_cv_irix_exported_symbol=yes],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5365 + [lt_cv_irix_exported_symbol=no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5366 + LDFLAGS="$save_LDFLAGS"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5367 + if test "$lt_cv_irix_exported_symbol" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5368 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5369 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5370 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5371 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5372 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5373 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5374 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5375 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5376 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5377 + _LT_TAGVAR(inherit_rpath, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5378 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5379 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5380 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5381 + netbsd* | netbsdelf*-gnu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5382 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5383 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5384 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5385 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5386 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5387 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5388 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5389 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5390 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5391 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5392 + newsos6)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5393 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5394 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5395 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5396 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5397 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5398 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5399 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5400 + *nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5401 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5402 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5403 + openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5404 + if test -f /usr/libexec/ld.so; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5405 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5406 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5407 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5408 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5409 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5410 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5411 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5412 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5413 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5414 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5415 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5416 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5417 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5418 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5419 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5420 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5421 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5422 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5423 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5424 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5425 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5426 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5427 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5428 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5429 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5430 + os2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5431 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5432 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5433 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5434 + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5435 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5436 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5437 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5438 + osf3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5439 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5440 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5441 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5442 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5443 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5444 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5445 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5446 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5447 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5448 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5449 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5450 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5451 + osf4* | osf5*) # as osf3* with the addition of -msym flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5452 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5453 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5454 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5455 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5456 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5457 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5458 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5459 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5460 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5461 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5462 + # Both c and cxx compiler support -rpath directly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5463 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5464 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5465 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5466 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5467 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5468 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5469 + solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5470 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5471 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5472 + wlarc='${wl}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5473 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5474 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5475 + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5476 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5477 + case `$CC -V 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5478 + *"Compilers 5.0"*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5479 + wlarc=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5480 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5481 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5482 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5483 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5484 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5485 + wlarc='${wl}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5486 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5487 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5488 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5489 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5490 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5491 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5492 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5493 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5494 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5495 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5496 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5497 + # The compiler driver will combine and reorder linker options,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5498 + # but understands `-z linker_flag'. GCC discards it without `$wl',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5499 + # but is careful enough not to reorder.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5500 + # Supported since Solaris 2.6 (maybe 2.5.1?)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5501 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5502 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5503 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5504 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5505 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5506 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5507 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5508 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5509 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5510 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5511 + sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5512 + if test "x$host_vendor" = xsequent; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5513 + # Use $CC to link under sequent, because it throws in some extra .o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5514 + # files that make .init and .fini sections work.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5515 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5516 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5517 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5518 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5519 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5520 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5521 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5522 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5523 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5524 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5525 + sysv4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5526 + case $host_vendor in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5527 + sni)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5528 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5529 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5530 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5531 + siemens)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5532 + ## LD is ld it makes a PLAMLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5533 + ## CC just makes a GrossModule.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5534 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5535 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5536 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5537 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5538 + motorola)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5539 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5540 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5541 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5542 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5543 + runpath_var='LD_RUN_PATH'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5544 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5545 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5546 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5547 + sysv4.3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5548 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5549 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5550 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5551 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5552 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5553 + sysv4*MP*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5554 + if test -d /usr/nec; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5555 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5556 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5557 + runpath_var=LD_RUN_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5558 + hardcode_runpath_var=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5559 + _LT_TAGVAR(ld_shlibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5560 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5561 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5562 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5563 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5564 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5565 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5566 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5567 + runpath_var='LD_RUN_PATH'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5568 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5569 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5570 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5571 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5572 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5573 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5574 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5575 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5576 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5577 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5578 + sysv5* | sco3.2v5* | sco5v6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5579 + # Note: We can NOT use -z defs as we might desire, because we do not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5580 + # link with -lc, and that would cause any symbols used from libc to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5581 + # always be unresolved, which means just about no library would
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5582 + # ever link correctly. If we're not using GNU ld we use -z text
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5583 + # though, which does catch some bad symbols but isn't as heavy-handed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5584 + # as -z defs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5585 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5586 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5587 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5588 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5589 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5590 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5591 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5592 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5593 + runpath_var='LD_RUN_PATH'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5594 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5595 + if test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5596 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5597 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5598 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5599 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5600 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5601 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5602 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5603 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5604 + uts4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5605 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5606 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5607 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5608 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5609 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5610 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5611 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5612 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5613 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5614 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5615 + if test x$host_vendor = xsni; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5616 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5617 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5618 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5619 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5620 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5621 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5622 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5623 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5624 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5625 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5626 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5627 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5628 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5629 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5630 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5631 +_LT_DECL([], [extract_expsyms_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5632 + [The commands to extract the exported symbol list from a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5633 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5634 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5635 +# Do we need to explicitly link libc?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5636 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5637 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5638 +x|xyes)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5639 + # Assume -lc should be added
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5640 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5641 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5642 + if test "$enable_shared" = yes && test "$GCC" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5643 + case $_LT_TAGVAR(archive_cmds, $1) in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5644 + *'~'*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5645 + # FIXME: we may have to deal with multi-command sequences.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5646 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5647 + '$CC '*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5648 + # Test whether the compiler implicitly links with -lc since on some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5649 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5650 + # to ld, don't add -lc before -lgcc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5651 + AC_CACHE_CHECK([whether -lc should be explicitly linked in],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5652 + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5653 + [$RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5654 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5655 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5656 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5657 + soname=conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5658 + lib=conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5659 + libobjs=conftest.$ac_objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5660 + deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5661 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5662 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5663 + compiler_flags=-v
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5664 + linker_flags=-v
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5665 + verstring=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5666 + output_objdir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5667 + libname=conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5668 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5669 + _LT_TAGVAR(allow_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5670 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5671 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5672 + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5673 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5674 + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5675 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5676 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5677 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5678 + cat conftest.err 1>&5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5679 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5680 + $RM conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5681 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5682 + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5683 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5684 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5685 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5686 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5687 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5688 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5689 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5690 + [Whether or not to add -lc for building shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5691 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5692 + [enable_shared_with_static_runtimes], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5693 + [Whether or not to disallow shared libs when runtime libs are static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5694 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5695 + [Compiler flag to allow reflexive dlopens])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5696 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5697 + [Compiler flag to generate shared objects directly from archives])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5698 +_LT_TAGDECL([], [compiler_needs_object], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5699 + [Whether the compiler copes with passing no objects directly])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5700 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5701 + [Create an old-style archive from a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5702 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5703 + [Create a temporary old-style archive to link instead of a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5704 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5705 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5706 +_LT_TAGDECL([], [module_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5707 + [Commands used to build a loadable module if different from building
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5708 + a shared archive.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5709 +_LT_TAGDECL([], [module_expsym_cmds], [2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5710 +_LT_TAGDECL([], [with_gnu_ld], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5711 + [Whether we are building with GNU ld or not])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5712 +_LT_TAGDECL([], [allow_undefined_flag], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5713 + [Flag that allows shared libraries with undefined symbols to be built])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5714 +_LT_TAGDECL([], [no_undefined_flag], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5715 + [Flag that enforces no undefined symbols])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5716 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5717 + [Flag to hardcode $libdir into a binary during linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5718 + This must work even if $libdir does not exist])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5719 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5720 + [Whether we need a single "-rpath" flag with a separated argument])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5721 +_LT_TAGDECL([], [hardcode_direct], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5722 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5723 + DIR into the resulting binary])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5724 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5725 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5726 + DIR into the resulting binary and the resulting library dependency is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5727 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5728 + library is relocated])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5729 +_LT_TAGDECL([], [hardcode_minus_L], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5730 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5731 + into the resulting binary])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5732 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5733 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5734 + into the resulting binary])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5735 +_LT_TAGDECL([], [hardcode_automatic], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5736 + [Set to "yes" if building a shared library automatically hardcodes DIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5737 + into the library and all subsequent libraries and executables linked
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5738 + against it])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5739 +_LT_TAGDECL([], [inherit_rpath], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5740 + [Set to yes if linker adds runtime paths of dependent libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5741 + to runtime path list])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5742 +_LT_TAGDECL([], [link_all_deplibs], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5743 + [Whether libtool must link a program against all its dependency libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5744 +_LT_TAGDECL([], [always_export_symbols], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5745 + [Set to "yes" if exported symbols are required])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5746 +_LT_TAGDECL([], [export_symbols_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5747 + [The commands to list exported symbols])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5748 +_LT_TAGDECL([], [exclude_expsyms], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5749 + [Symbols that should not be listed in the preloaded symbols])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5750 +_LT_TAGDECL([], [include_expsyms], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5751 + [Symbols that must always be exported])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5752 +_LT_TAGDECL([], [prelink_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5753 + [Commands necessary for linking programs (against libraries) with templates])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5754 +_LT_TAGDECL([], [postlink_cmds], [2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5755 + [Commands necessary for finishing linking programs])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5756 +_LT_TAGDECL([], [file_list_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5757 + [Specify filename containing input files])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5758 +dnl FIXME: Not yet implemented
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5759 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5760 +dnl [Compiler flag to generate thread safe objects])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5761 +])# _LT_LINKER_SHLIBS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5762 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5763 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5764 +# _LT_LANG_C_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5765 +# ------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5766 +# Ensure that the configuration variables for a C compiler are suitably
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5767 +# defined. These variables are subsequently used by _LT_CONFIG to write
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5768 +# the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5769 +m4_defun([_LT_LANG_C_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5770 +[m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5771 +lt_save_CC="$CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5772 +AC_LANG_PUSH(C)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5773 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5774 +# Source file extension for C test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5775 +ac_ext=c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5776 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5777 +# Object file extension for compiled C test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5778 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5779 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5781 +# Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5782 +lt_simple_compile_test_code="int some_variable = 0;"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5783 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5784 +# Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5785 +lt_simple_link_test_code='int main(){return(0);}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5786 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5787 +_LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5788 +# Save the default compiler, since it gets overwritten when the other
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5789 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5790 +compiler_DEFAULT=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5791 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5792 +# save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5793 +_LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5794 +_LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5795 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5796 +if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5797 + _LT_COMPILER_NO_RTTI($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5798 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5799 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5800 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5801 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5802 + _LT_SYS_DYNAMIC_LINKER($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5803 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5804 + LT_SYS_DLOPEN_SELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5805 + _LT_CMD_STRIPLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5806 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5807 + # Report which library types will actually be built
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5808 + AC_MSG_CHECKING([if libtool supports shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5809 + AC_MSG_RESULT([$can_build_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5810 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5811 + AC_MSG_CHECKING([whether to build shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5812 + test "$can_build_shared" = "no" && enable_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5813 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5814 + # On AIX, shared libraries and static libraries use the same namespace, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5815 + # are all built from PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5816 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5817 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5818 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5819 + if test -n "$RANLIB"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5820 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5821 + postinstall_cmds='$RANLIB $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5822 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5823 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5824 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5825 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5826 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5827 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5828 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5829 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5830 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5831 + AC_MSG_RESULT([$enable_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5832 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5833 + AC_MSG_CHECKING([whether to build static libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5834 + # Make sure either enable_shared or enable_static is yes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5835 + test "$enable_shared" = yes || enable_static=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5836 + AC_MSG_RESULT([$enable_static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5837 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5838 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5839 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5840 +AC_LANG_POP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5841 +CC="$lt_save_CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5842 +])# _LT_LANG_C_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5843 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5844 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5845 +# _LT_LANG_CXX_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5846 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5847 +# Ensure that the configuration variables for a C++ compiler are suitably
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5848 +# defined. These variables are subsequently used by _LT_CONFIG to write
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5849 +# the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5850 +m4_defun([_LT_LANG_CXX_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5851 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5852 +m4_require([_LT_DECL_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5853 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5854 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5855 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5856 + (test "X$CXX" != "Xg++"))) ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5857 + AC_PROG_CXXCPP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5858 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5859 + _lt_caught_CXX_error=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5860 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5861 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5862 +AC_LANG_PUSH(C++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5863 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5864 +_LT_TAGVAR(allow_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5865 +_LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5866 +_LT_TAGVAR(archive_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5867 +_LT_TAGVAR(compiler_needs_object, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5868 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5869 +_LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5870 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5871 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5872 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5873 +_LT_TAGVAR(hardcode_minus_L, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5874 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5875 +_LT_TAGVAR(hardcode_automatic, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5876 +_LT_TAGVAR(inherit_rpath, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5877 +_LT_TAGVAR(module_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5878 +_LT_TAGVAR(module_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5879 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5880 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5881 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5882 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5883 +_LT_TAGVAR(no_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5884 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5885 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5886 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5887 +# Source file extension for C++ test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5888 +ac_ext=cpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5889 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5890 +# Object file extension for compiled C++ test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5891 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5892 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5893 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5894 +# No sense in running all these tests if we already determined that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5895 +# the CXX compiler isn't working. Some variables (like enable_shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5896 +# are currently assumed to apply to all compilers on this platform,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5897 +# and will be corrupted by setting them based on a non-working compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5898 +if test "$_lt_caught_CXX_error" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5899 + # Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5900 + lt_simple_compile_test_code="int some_variable = 0;"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5901 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5902 + # Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5903 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5904 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5905 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5906 + _LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5907 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5908 + # save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5909 + _LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5910 + _LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5911 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5912 + # Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5913 + lt_save_CC=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5914 + lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5915 + lt_save_LD=$LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5916 + lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5917 + GCC=$GXX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5918 + lt_save_with_gnu_ld=$with_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5919 + lt_save_path_LD=$lt_cv_path_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5920 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5921 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5922 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5923 + $as_unset lt_cv_prog_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5924 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5925 + if test -n "${lt_cv_path_LDCXX+set}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5926 + lt_cv_path_LD=$lt_cv_path_LDCXX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5927 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5928 + $as_unset lt_cv_path_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5929 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5930 + test -z "${LDCXX+set}" || LD=$LDCXX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5931 + CC=${CXX-"c++"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5932 + CFLAGS=$CXXFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5933 + compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5934 + _LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5935 + _LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5936 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5937 + if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5938 + # We don't want -fno-exception when compiling C++ code, so set the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5939 + # no_builtin_flag separately
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5940 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5941 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5942 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5943 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5944 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5945 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5946 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5947 + # Set up default GNU C++ configuration
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5948 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5949 + LT_PATH_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5950 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5951 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5952 + # archiving commands below assume that GNU ld is being used.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5953 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5954 + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5955 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5956 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5957 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5958 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5959 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5960 + # If archive_cmds runs LD, not CC, wlarc should be empty
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5961 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5962 + # investigate it a little bit more. (MM)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5963 + wlarc='${wl}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5964 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5965 + # ancient GNU ld didn't support --whole-archive et. al.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5966 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5967 + $GREP 'no-whole-archive' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5968 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5969 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5970 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5971 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5972 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5973 + with_gnu_ld=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5974 + wlarc=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5975 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5976 + # A generic and very simple default shared library creation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5977 + # command for GNU C++ for the case where it uses the native
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5978 + # linker, instead of GNU ld. If possible, this setting should
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5979 + # overridden to take advantage of the native linker features on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5980 + # the platform it is being used on.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5981 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5982 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5983 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5984 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5985 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5986 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5987 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5988 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5989 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5990 + GXX=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5991 + with_gnu_ld=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5992 + wlarc=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5993 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5994 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5995 + # PORTME: fill in a description of your system's C++ link characteristics
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5996 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5997 + _LT_TAGVAR(ld_shlibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5998 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5999 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6000 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6001 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6002 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6003 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6004 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6005 + # On IA64, the linker does run time linking by default, so we don't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6006 + # have to do anything special.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6007 + aix_use_runtimelinking=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6008 + exp_sym_flag='-Bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6009 + no_entry_flag=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6010 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6011 + aix_use_runtimelinking=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6012 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6013 + # Test if we are trying to use run time linking or normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6014 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6015 + # need to do runtime linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6016 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6017 + for ld_flag in $LDFLAGS; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6018 + case $ld_flag in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6019 + *-brtl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6020 + aix_use_runtimelinking=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6021 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6022 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6023 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6024 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6025 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6026 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6027 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6028 + exp_sym_flag='-bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6029 + no_entry_flag='-bnoentry'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6030 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6031 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6032 + # When large executables or shared objects are built, AIX ld can
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6033 + # have problems creating the table of contents. If linking a library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6034 + # or program results in "error TOC overflow" add -mminimal-toc to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6035 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6036 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6037 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6038 + _LT_TAGVAR(archive_cmds, $1)=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6039 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6040 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6041 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6042 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6043 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6044 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6045 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6046 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6047 + # We only want to do this on AIX 4.2 and lower, the check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6048 + # below for broken collect2 doesn't work under 4.3+
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6049 + collect2name=`${CC} -print-prog-name=collect2`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6050 + if test -f "$collect2name" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6051 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6052 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6053 + # We have reworked collect2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6054 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6055 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6056 + # We have old collect2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6057 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6058 + # It fails to find uninstalled libraries when the uninstalled
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6059 + # path is not listed in the libpath. Setting hardcode_minus_L
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6060 + # to unsupported forces relinking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6061 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6062 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6063 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6064 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6065 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6066 + shared_flag='-shared'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6067 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6068 + shared_flag="$shared_flag "'${wl}-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6069 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6070 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6071 + # not using gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6072 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6073 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6074 + # chokes on -Wl,-G. The following line is correct:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6075 + shared_flag='-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6076 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6077 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6078 + shared_flag='${wl}-G'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6079 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6080 + shared_flag='${wl}-bM:SRE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6081 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6082 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6083 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6084 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6085 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6086 + # It seems that -bexpall does not export symbols beginning with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6087 + # underscore (_), so it is better to generate a list of symbols to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6088 + # export.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6089 + _LT_TAGVAR(always_export_symbols, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6090 + if test "$aix_use_runtimelinking" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6091 + # Warning - without using the other runtime loading flags (-brtl),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6092 + # -berok will link without error, but may produce a broken library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6093 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6094 + # Determine the default libpath from the value encoded in an empty
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6095 + # executable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6096 + _LT_SYS_MODULE_PATH_AIX([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6097 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6098 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6099 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6100 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6101 + if test "$host_cpu" = ia64; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6102 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6103 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6104 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6105 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6106 + # Determine the default libpath from the value encoded in an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6107 + # empty executable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6108 + _LT_SYS_MODULE_PATH_AIX([$1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6109 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6110 + # Warning - without using the other run time loading flags,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6111 + # -berok will link without error, but may produce a broken library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6112 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6113 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6114 + if test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6115 + # We only use this code for GNU lds that support --whole-archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6116 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6117 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6118 + # Exported symbols can be pulled into shared objects from archives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6119 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6120 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6121 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6122 + # This is similar to how AIX traditionally builds its shared
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6123 + # libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6124 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6125 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6126 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6127 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6128 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6129 + beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6130 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6131 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6132 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6133 + # support --undefined. This deserves some investigation. FIXME
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6134 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6135 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6136 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6137 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6138 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6139 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6140 + chorus*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6141 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6142 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6143 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6144 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6145 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6146 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6147 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6148 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6149 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6150 + case $GXX,$cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6151 + ,cl* | no,cl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6152 + # Native MSVC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6153 + # hardcode_libdir_flag_spec is actually meaningless, as there is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6154 + # no search path for DLLs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6155 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6156 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6157 + _LT_TAGVAR(always_export_symbols, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6158 + _LT_TAGVAR(file_list_spec, $1)='@'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6159 + # Tell ltmain to make .lib files, not .a files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6160 + libext=lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6161 + # Tell ltmain to make .dll files, not .so files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6162 + shrext_cmds=".dll"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6163 + # FIXME: Setting linknames here is a bad hack.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6164 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6165 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6166 + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6167 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6168 + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6169 + fi~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6170 + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6171 + linknames='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6172 + # The linker will not automatically build a static lib if we build a DLL.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6173 + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6174 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6175 + # Don't use ranlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6176 + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6177 + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6178 + lt_tool_outputfile="@TOOL_OUTPUT@"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6179 + case $lt_outputfile in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6180 + *.exe|*.EXE) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6181 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6182 + lt_outputfile="$lt_outputfile.exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6183 + lt_tool_outputfile="$lt_tool_outputfile.exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6184 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6185 + esac~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6186 + func_to_tool_file "$lt_outputfile"~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6187 + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6188 + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6189 + $RM "$lt_outputfile.manifest";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6190 + fi'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6191 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6192 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6193 + # g++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6194 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6195 + # as there is no search path for DLLs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6196 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6197 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6198 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6199 + _LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6200 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6201 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6202 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6203 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6204 + # If the export-symbols file already is a .def file (1st line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6205 + # is EXPORTS), use it as is; otherwise, prepend...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6206 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6207 + cp $export_symbols $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6208 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6209 + echo EXPORTS > $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6210 + cat $export_symbols >> $output_objdir/$soname.def;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6211 + fi~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6212 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6213 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6214 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6215 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6216 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6217 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6218 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6219 + darwin* | rhapsody*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6220 + _LT_DARWIN_LINKER_FEATURES($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6221 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6222 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6223 + dgux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6224 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6225 + ec++*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6226 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6227 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6228 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6229 + ghcx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6230 + # Green Hills C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6231 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6232 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6233 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6234 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6235 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6236 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6237 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6238 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6239 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6240 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6241 + freebsd2.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6242 + # C++ shared libraries reported to be fairly broken before
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6243 + # switch to ELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6244 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6245 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6246 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6247 + freebsd-elf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6248 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6249 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6250 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6251 + freebsd* | dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6252 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6253 + # conventions
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6254 + _LT_TAGVAR(ld_shlibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6255 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6256 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6257 + haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6258 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6259 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6260 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6261 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6262 + hpux9*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6263 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6264 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6265 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6266 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6267 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6268 + # but as the default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6269 + # location of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6270 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6271 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6272 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6273 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6274 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6275 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6276 + aCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6277 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6278 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6279 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6280 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6281 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6282 + # There doesn't appear to be a way to prevent this compiler from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6283 + # explicitly linking system object files so we need to strip them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6284 + # from the output so that they don't get included in the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6285 + # dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6286 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6287 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6288 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6289 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6290 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6291 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6292 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6293 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6294 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6295 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6296 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6297 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6298 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6299 + hpux10*|hpux11*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6300 + if test $with_gnu_ld = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6301 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6302 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6303 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6304 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6305 + hppa*64*|ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6306 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6307 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6308 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6309 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6310 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6311 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6312 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6313 + hppa*64*|ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6314 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6315 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6316 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6317 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6318 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6319 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6320 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6321 + # but as the default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6322 + # location of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6323 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6324 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6325 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6326 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6327 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6328 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6329 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6330 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6331 + aCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6332 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6333 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6334 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6335 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6336 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6337 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6338 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6339 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6340 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6341 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6342 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6343 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6344 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6345 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6346 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6347 + # There doesn't appear to be a way to prevent this compiler from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6348 + # explicitly linking system object files so we need to strip them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6349 + # from the output so that they don't get included in the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6350 + # dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6351 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6352 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6353 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6354 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6355 + if test $with_gnu_ld = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6356 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6357 + hppa*64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6358 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6359 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6360 + ia64*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6361 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6362 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6363 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6364 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6365 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6366 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6367 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6368 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6369 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6370 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6371 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6372 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6373 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6374 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6376 + interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6377 + _LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6378 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6379 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6380 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6381 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6382 + # Instead, shared libraries are loaded at an image base (0x10000000 by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6383 + # default) and relocated if they conflict, which is a slow very memory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6384 + # consuming and fragmenting process. To avoid this, we pick a random,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6385 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6386 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6387 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6388 + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6389 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6390 + irix5* | irix6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6391 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6392 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6393 + # SGI C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6394 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6395 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6396 + # Archives containing C++ object files must be created using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6397 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6398 + # necessary to make sure instantiated templates are included
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6399 + # in the archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6400 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6401 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6402 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6403 + if test "$GXX" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6404 + if test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6405 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6406 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6407 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6408 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6409 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6410 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6411 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6412 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6413 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6414 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6415 + _LT_TAGVAR(inherit_rpath, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6416 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6417 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6418 + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6419 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6420 + KCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6421 + # Kuck and Associates, Inc. (KAI) C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6422 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6423 + # KCC will only create a shared library if the output file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6424 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6425 + # to its proper name (with version) after linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6426 + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6427 + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6428 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6429 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6430 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6431 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6432 + # There doesn't appear to be a way to prevent this compiler from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6433 + # explicitly linking system object files so we need to strip them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6434 + # from the output so that they don't get included in the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6435 + # dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6436 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6437 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6438 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6439 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6440 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6441 + # Archives containing C++ object files must be created using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6442 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6443 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6444 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6445 + icpc* | ecpc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6446 + # Intel C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6447 + with_gnu_ld=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6448 + # version 8.0 and above of icpc choke on multiply defined symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6449 + # if we add $predep_objects and $postdep_objects, however 7.1 and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6450 + # earlier do not add the objects themselves.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6451 + case `$CC -V 2>&1` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6452 + *"Version 7."*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6453 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6454 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6455 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6456 + *) # Version 8.0 or newer
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6457 + tmp_idyn=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6458 + case $host_cpu in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6459 + ia64*) tmp_idyn=' -i_dynamic';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6460 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6461 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6462 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6463 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6464 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6465 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6466 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6467 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6468 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6469 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6470 + pgCC* | pgcpp*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6471 + # Portland Group C++ compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6472 + case `$CC -V` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6473 + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6474 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6475 + rm -rf $tpldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6476 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6477 + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6478 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6479 + rm -rf $tpldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6480 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6481 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6482 + $RANLIB $oldlib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6483 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6484 + rm -rf $tpldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6485 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6486 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6487 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6488 + rm -rf $tpldir~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6489 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6490 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6491 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6492 + *) # Version 6 and above use weak symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6493 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6494 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6495 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6496 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6497 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6498 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6499 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6500 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6501 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6502 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6503 + # Compaq C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6504 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6505 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6506 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6507 + runpath_var=LD_RUN_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6508 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6509 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6510 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6511 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6512 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6513 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6514 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6515 + # There doesn't appear to be a way to prevent this compiler from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6516 + # explicitly linking system object files so we need to strip them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6517 + # from the output so that they don't get included in the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6518 + # dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6519 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6520 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6521 + xl* | mpixl* | bgxl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6522 + # IBM XL 8.0 on PPC, with GNU ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6523 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6524 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6525 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6526 + if test "x$supports_anon_versioning" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6527 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6528 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6529 + echo "local: *; };" >> $output_objdir/$libname.ver~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6530 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6531 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6532 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6533 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6534 + case `$CC -V 2>&1 | sed 5q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6535 + *Sun\ C*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6536 + # Sun C++ 5.9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6537 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6538 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6539 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6540 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6541 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6542 + _LT_TAGVAR(compiler_needs_object, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6543 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6544 + # Not sure whether something based on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6545 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6546 + # would be better.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6547 + output_verbose_link_cmd='func_echo_all'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6548 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6549 + # Archives containing C++ object files must be created using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6550 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6551 + # necessary to make sure instantiated templates are included
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6552 + # in the archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6553 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6554 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6555 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6556 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6557 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6558 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6559 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6560 + lynxos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6561 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6562 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6563 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6564 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6565 + m88k*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6566 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6567 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6568 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6569 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6570 + mvs*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6571 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6572 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6573 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6574 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6575 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6576 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6577 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6578 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6579 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6580 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6581 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6582 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6583 + netbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6584 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6585 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6586 + wlarc=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6587 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6588 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6589 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6590 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6591 + # Workaround some broken pre-1.5 toolchains
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6592 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6593 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6594 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6595 + *nto* | *qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6596 + _LT_TAGVAR(ld_shlibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6597 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6598 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6599 + openbsd2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6600 + # C++ shared libraries are fairly broken
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6601 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6602 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6603 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6604 + openbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6605 + if test -f /usr/libexec/ld.so; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6606 + _LT_TAGVAR(hardcode_direct, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6607 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6608 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6609 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6610 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6611 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6612 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6613 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6614 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6615 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6616 + output_verbose_link_cmd=func_echo_all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6617 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6618 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6619 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6620 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6621 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6622 + osf3* | osf4* | osf5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6623 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6624 + KCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6625 + # Kuck and Associates, Inc. (KAI) C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6626 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6627 + # KCC will only create a shared library if the output file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6628 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6629 + # to its proper name (with version) after linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6630 + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6631 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6632 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6633 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6634 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6635 + # Archives containing C++ object files must be created using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6636 + # the KAI C++ compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6637 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6638 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6639 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6640 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6641 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6642 + RCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6643 + # Rational C++ 2.4.1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6644 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6645 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6646 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6647 + cxx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6648 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6649 + osf3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6650 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6651 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6652 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6653 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6654 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6655 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6656 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6657 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6658 + echo "-hidden">> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6659 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6660 + $RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6661 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6662 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6663 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6664 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6665 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6666 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6667 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6668 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6669 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6670 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6671 + # There doesn't appear to be a way to prevent this compiler from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6672 + # explicitly linking system object files so we need to strip them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6673 + # from the output so that they don't get included in the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6674 + # dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6675 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6676 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6677 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6678 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6679 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6680 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6681 + osf3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6682 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6683 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6684 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6685 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6686 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6687 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6688 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6689 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6690 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6692 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6693 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6694 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6695 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6696 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6697 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6698 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6699 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6700 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6701 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6702 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6703 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6704 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6705 + psos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6706 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6707 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6708 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6709 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6710 + sunos4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6711 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6712 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6713 + # Sun C++ 4.x
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6714 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6715 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6716 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6717 + lcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6718 + # Lucid
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6719 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6720 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6721 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6722 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6723 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6724 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6725 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6726 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6727 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6728 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6729 + solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6730 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6731 + CC* | sunCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6732 + # Sun C++ 4.2, 5.x and Centerline C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6733 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6734 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6735 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6736 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6737 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6738 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6739 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6740 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6741 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6742 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6743 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6744 + # The compiler driver will combine and reorder linker options,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6745 + # but understands `-z linker_flag'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6746 + # Supported since Solaris 2.6 (maybe 2.5.1?)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6747 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6748 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6749 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6750 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6751 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6752 + output_verbose_link_cmd='func_echo_all'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6753 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6754 + # Archives containing C++ object files must be created using
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6755 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6756 + # necessary to make sure instantiated templates are included
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6757 + # in the archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6758 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6759 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6760 + gcx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6761 + # Green Hills C++ Compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6762 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6763 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6764 + # The C++ compiler must be used to create the archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6765 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6766 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6767 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6768 + # GNU C++ compiler with Solaris linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6769 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6770 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6771 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6772 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6773 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6774 + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6775 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6776 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6777 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6778 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6779 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6780 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6781 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6782 + # platform.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6783 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6784 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6785 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6786 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6787 + # Commands to make compiler produce verbose output that lists
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6788 + # what "hidden" libraries, object files and flags are used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6789 + # linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6790 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6791 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6792 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6793 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6794 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6795 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6796 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6797 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6798 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6799 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6800 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6801 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6802 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6803 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6805 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6806 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6807 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6808 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6809 + runpath_var='LD_RUN_PATH'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6810 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6811 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6812 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6813 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6814 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6815 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6816 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6817 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6818 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6819 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6820 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6821 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6822 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6823 + sysv5* | sco3.2v5* | sco5v6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6824 + # Note: We can NOT use -z defs as we might desire, because we do not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6825 + # link with -lc, and that would cause any symbols used from libc to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6826 + # always be unresolved, which means just about no library would
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6827 + # ever link correctly. If we're not using GNU ld we use -z text
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6828 + # though, which does catch some bad symbols but isn't as heavy-handed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6829 + # as -z defs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6830 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6831 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6832 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6833 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6834 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6835 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6836 + _LT_TAGVAR(link_all_deplibs, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6837 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6838 + runpath_var='LD_RUN_PATH'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6839 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6840 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6841 + CC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6842 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6843 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6844 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6845 + '"$_LT_TAGVAR(old_archive_cmds, $1)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6846 + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6847 + '"$_LT_TAGVAR(reload_cmds, $1)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6848 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6849 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6850 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6851 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6852 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6853 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6854 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6855 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6856 + tandem*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6857 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6858 + NCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6859 + # NonStop-UX NCC 3.20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6860 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6861 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6862 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6863 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6864 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6865 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6866 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6867 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6868 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6869 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6870 + vxworks*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6871 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6872 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6873 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6874 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6875 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6876 + # FIXME: insert proper C++ library support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6877 + _LT_TAGVAR(ld_shlibs, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6878 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6879 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6880 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6881 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6882 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6883 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6884 + _LT_TAGVAR(GCC, $1)="$GXX"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6885 + _LT_TAGVAR(LD, $1)="$LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6886 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6887 + ## CAVEAT EMPTOR:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6888 + ## There is no encapsulation within the following macros, do not change
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6889 + ## the running order or otherwise move them around unless you know exactly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6890 + ## what you are doing...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6891 + _LT_SYS_HIDDEN_LIBDEPS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6892 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6893 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6894 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6895 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6896 + _LT_SYS_DYNAMIC_LINKER($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6897 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6898 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6899 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6900 + fi # test -n "$compiler"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6901 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6902 + CC=$lt_save_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6903 + CFLAGS=$lt_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6904 + LDCXX=$LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6905 + LD=$lt_save_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6906 + GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6907 + with_gnu_ld=$lt_save_with_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6908 + lt_cv_path_LDCXX=$lt_cv_path_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6909 + lt_cv_path_LD=$lt_save_path_LD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6910 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6911 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6912 +fi # test "$_lt_caught_CXX_error" != yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6913 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6914 +AC_LANG_POP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6915 +])# _LT_LANG_CXX_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6916 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6917 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6918 +# _LT_FUNC_STRIPNAME_CNF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6919 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6920 +# func_stripname_cnf prefix suffix name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6921 +# strip PREFIX and SUFFIX off of NAME.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6922 +# PREFIX and SUFFIX must not contain globbing or regex special
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6923 +# characters, hashes, percent signs, but SUFFIX may contain a leading
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6924 +# dot (in which case that matches only a dot).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6925 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6926 +# This function is identical to the (non-XSI) version of func_stripname,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6927 +# except this one can be used by m4 code that may be executed by configure,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6928 +# rather than the libtool script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6929 +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6930 +AC_REQUIRE([_LT_DECL_SED])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6931 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6932 +func_stripname_cnf ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6933 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6934 + case ${2} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6935 + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6936 + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6937 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6938 +} # func_stripname_cnf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6939 +])# _LT_FUNC_STRIPNAME_CNF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6940 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6941 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6942 +# ---------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6943 +# Figure out "hidden" library dependencies from verbose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6944 +# compiler output when linking a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6945 +# Parse the compiler output and extract the necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6946 +# objects, libraries and library flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6947 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6948 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6949 +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6950 +# Dependencies to place before and after the object being linked:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6951 +_LT_TAGVAR(predep_objects, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6952 +_LT_TAGVAR(postdep_objects, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6953 +_LT_TAGVAR(predeps, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6954 +_LT_TAGVAR(postdeps, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6955 +_LT_TAGVAR(compiler_lib_search_path, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6956 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6957 +dnl we can't use the lt_simple_compile_test_code here,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6958 +dnl because it contains code intended for an executable,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6959 +dnl not a library. It's possible we should let each
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6960 +dnl tag define a new lt_????_link_test_code variable,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6961 +dnl but it's only used here...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6962 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6963 +int a;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6964 +void foo (void) { a = 0; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6965 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6966 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6967 +class Foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6968 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6969 +public:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6970 + Foo (void) { a = 0; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6971 +private:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6972 + int a;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6973 +};
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6974 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6975 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6976 + subroutine foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6977 + implicit none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6978 + integer*4 a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6979 + a=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6980 + return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6981 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6982 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6983 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6984 + subroutine foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6985 + implicit none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6986 + integer a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6987 + a=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6988 + return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6989 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6990 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6991 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6992 +public class foo {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6993 + private int a;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6994 + public void bar (void) {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6995 + a = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6996 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6997 +};
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6998 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6999 +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7000 +package foo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7001 +func foo() {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7002 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7003 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7004 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7005 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7006 +_lt_libdeps_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7007 +case "$CC $CFLAGS " in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7008 +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7009 +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7010 +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7011 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7012 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7013 +dnl Parse the compiler output and extract the necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7014 +dnl objects, libraries and library flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7015 +if AC_TRY_EVAL(ac_compile); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7016 + # Parse the compiler output and extract the necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7017 + # objects, libraries and library flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7018 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7019 + # Sentinel used to keep track of whether or not we are before
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7020 + # the conftest object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7021 + pre_test_object_deps_done=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7022 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7023 + for p in `eval "$output_verbose_link_cmd"`; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7024 + case ${prev}${p} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7025 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7026 + -L* | -R* | -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7027 + # Some compilers place space between "-{L,R}" and the path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7028 + # Remove the space.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7029 + if test $p = "-L" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7030 + test $p = "-R"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7031 + prev=$p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7032 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7033 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7034 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7035 + # Expand the sysroot to ease extracting the directories later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7036 + if test -z "$prev"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7037 + case $p in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7038 + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7039 + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7040 + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7041 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7042 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7043 + case $p in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7044 + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7045 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7046 + if test "$pre_test_object_deps_done" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7047 + case ${prev} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7048 + -L | -R)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7049 + # Internal compiler library paths should come after those
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7050 + # provided the user. The postdeps already come after the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7051 + # user supplied libs so there is no need to process them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7052 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7053 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7054 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7055 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7056 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7057 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7058 + # The "-l" case would never come before the object being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7059 + # linked, so don't bother handling this case.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7060 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7061 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7062 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7063 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7064 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7065 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7066 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7067 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7068 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7069 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7070 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7071 + *.lto.$objext) ;; # Ignore GCC LTO objects
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7072 + *.$objext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7073 + # This assumes that the test object file only shows up
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7074 + # once in the compiler output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7075 + if test "$p" = "conftest.$objext"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7076 + pre_test_object_deps_done=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7077 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7078 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7079 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7080 + if test "$pre_test_object_deps_done" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7081 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7082 + _LT_TAGVAR(predep_objects, $1)="$p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7083 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7084 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7085 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7086 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7087 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7088 + _LT_TAGVAR(postdep_objects, $1)="$p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7089 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7090 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7091 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7092 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7093 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7094 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7095 + *) ;; # Ignore the rest.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7097 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7098 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7099 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7100 + # Clean up.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7101 + rm -f a.out a.exe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7102 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7103 + echo "libtool.m4: error: problem compiling $1 test program"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7104 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7105 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7106 +$RM -f confest.$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7107 +CFLAGS=$_lt_libdeps_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7108 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7109 +# PORTME: override above test on systems where it is broken
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7110 +m4_if([$1], [CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7111 +[case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7112 +interix[[3-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7113 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7114 + # hack all around it, let's just trust "g++" to DTRT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7115 + _LT_TAGVAR(predep_objects,$1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7116 + _LT_TAGVAR(postdep_objects,$1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7117 + _LT_TAGVAR(postdeps,$1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7118 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7119 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7120 +linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7121 + case `$CC -V 2>&1 | sed 5q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7122 + *Sun\ C*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7123 + # Sun C++ 5.9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7124 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7125 + # The more standards-conforming stlport4 library is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7126 + # incompatible with the Cstd library. Avoid specifying
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7127 + # it if it's in CXXFLAGS. Ignore libCrun as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7128 + # -library=stlport4 depends on it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7129 + case " $CXX $CXXFLAGS " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7130 + *" -library=stlport4 "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7131 + solaris_use_stlport4=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7132 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7133 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7134 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7135 + if test "$solaris_use_stlport4" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7136 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7137 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7138 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7139 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7140 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7141 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7142 +solaris*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7143 + case $cc_basename in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7144 + CC* | sunCC*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7145 + # The more standards-conforming stlport4 library is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7146 + # incompatible with the Cstd library. Avoid specifying
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7147 + # it if it's in CXXFLAGS. Ignore libCrun as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7148 + # -library=stlport4 depends on it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7149 + case " $CXX $CXXFLAGS " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7150 + *" -library=stlport4 "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7151 + solaris_use_stlport4=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7152 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7153 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7154 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7155 + # Adding this requires a known-good setup of shared libraries for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7156 + # Sun compiler versions before 5.6, else PIC objects from an old
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7157 + # archive will be linked into the output, leading to subtle bugs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7158 + if test "$solaris_use_stlport4" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7159 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7160 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7161 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7162 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7163 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7164 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7165 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7166 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7167 +case " $_LT_TAGVAR(postdeps, $1) " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7168 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7169 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7170 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7171 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7172 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7173 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7174 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7175 + [The directories searched by this compiler when creating a shared library])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7176 +_LT_TAGDECL([], [predep_objects], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7177 + [Dependencies to place before and after the objects being linked to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7178 + create a shared library])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7179 +_LT_TAGDECL([], [postdep_objects], [1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7180 +_LT_TAGDECL([], [predeps], [1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7181 +_LT_TAGDECL([], [postdeps], [1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7182 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7183 + [The library search path used internally by the compiler when linking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7184 + a shared library])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7185 +])# _LT_SYS_HIDDEN_LIBDEPS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7186 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7187 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7188 +# _LT_LANG_F77_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7189 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7190 +# Ensure that the configuration variables for a Fortran 77 compiler are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7191 +# suitably defined. These variables are subsequently used by _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7192 +# to write the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7193 +m4_defun([_LT_LANG_F77_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7194 +[AC_LANG_PUSH(Fortran 77)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7195 +if test -z "$F77" || test "X$F77" = "Xno"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7196 + _lt_disable_F77=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7197 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7198 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7199 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7200 +_LT_TAGVAR(allow_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7201 +_LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7202 +_LT_TAGVAR(archive_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7203 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7204 +_LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7205 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7206 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7207 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7208 +_LT_TAGVAR(hardcode_minus_L, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7209 +_LT_TAGVAR(hardcode_automatic, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7210 +_LT_TAGVAR(inherit_rpath, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7211 +_LT_TAGVAR(module_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7212 +_LT_TAGVAR(module_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7213 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7214 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7215 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7216 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7217 +_LT_TAGVAR(no_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7218 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7219 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7220 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7221 +# Source file extension for f77 test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7222 +ac_ext=f
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7223 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7224 +# Object file extension for compiled f77 test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7225 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7226 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7227 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7228 +# No sense in running all these tests if we already determined that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7229 +# the F77 compiler isn't working. Some variables (like enable_shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7230 +# are currently assumed to apply to all compilers on this platform,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7231 +# and will be corrupted by setting them based on a non-working compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7232 +if test "$_lt_disable_F77" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7233 + # Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7234 + lt_simple_compile_test_code="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7235 + subroutine t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7236 + return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7237 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7238 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7239 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7240 + # Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7241 + lt_simple_link_test_code="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7242 + program t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7243 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7244 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7245 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7246 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7247 + _LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7248 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7249 + # save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7250 + _LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7251 + _LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7252 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7253 + # Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7254 + lt_save_CC="$CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7255 + lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7256 + lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7257 + CC=${F77-"f77"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7258 + CFLAGS=$FFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7259 + compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7260 + _LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7261 + _LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7262 + GCC=$G77
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7263 + if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7264 + AC_MSG_CHECKING([if libtool supports shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7265 + AC_MSG_RESULT([$can_build_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7266 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7267 + AC_MSG_CHECKING([whether to build shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7268 + test "$can_build_shared" = "no" && enable_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7269 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7270 + # On AIX, shared libraries and static libraries use the same namespace, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7271 + # are all built from PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7272 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7273 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7274 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7275 + if test -n "$RANLIB"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7276 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7277 + postinstall_cmds='$RANLIB $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7278 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7279 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7280 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7281 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7282 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7283 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7284 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7285 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7286 + AC_MSG_RESULT([$enable_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7287 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7288 + AC_MSG_CHECKING([whether to build static libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7289 + # Make sure either enable_shared or enable_static is yes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7290 + test "$enable_shared" = yes || enable_static=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7291 + AC_MSG_RESULT([$enable_static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7292 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7293 + _LT_TAGVAR(GCC, $1)="$G77"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7294 + _LT_TAGVAR(LD, $1)="$LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7295 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7296 + ## CAVEAT EMPTOR:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7297 + ## There is no encapsulation within the following macros, do not change
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7298 + ## the running order or otherwise move them around unless you know exactly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7299 + ## what you are doing...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7300 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7301 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7302 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7303 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7304 + _LT_SYS_DYNAMIC_LINKER($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7305 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7306 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7307 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7308 + fi # test -n "$compiler"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7309 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7310 + GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7311 + CC="$lt_save_CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7312 + CFLAGS="$lt_save_CFLAGS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7313 +fi # test "$_lt_disable_F77" != yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7314 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7315 +AC_LANG_POP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7316 +])# _LT_LANG_F77_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7317 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7318 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7319 +# _LT_LANG_FC_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7320 +# -------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7321 +# Ensure that the configuration variables for a Fortran compiler are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7322 +# suitably defined. These variables are subsequently used by _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7323 +# to write the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7324 +m4_defun([_LT_LANG_FC_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7325 +[AC_LANG_PUSH(Fortran)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7326 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7327 +if test -z "$FC" || test "X$FC" = "Xno"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7328 + _lt_disable_FC=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7329 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7330 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7331 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7332 +_LT_TAGVAR(allow_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7333 +_LT_TAGVAR(always_export_symbols, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7334 +_LT_TAGVAR(archive_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7335 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7336 +_LT_TAGVAR(hardcode_direct, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7337 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7338 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7339 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7340 +_LT_TAGVAR(hardcode_minus_L, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7341 +_LT_TAGVAR(hardcode_automatic, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7342 +_LT_TAGVAR(inherit_rpath, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7343 +_LT_TAGVAR(module_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7344 +_LT_TAGVAR(module_expsym_cmds, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7345 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7346 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7347 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7348 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7349 +_LT_TAGVAR(no_undefined_flag, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7350 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7351 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7352 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7353 +# Source file extension for fc test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7354 +ac_ext=${ac_fc_srcext-f}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7355 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7356 +# Object file extension for compiled fc test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7357 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7358 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7360 +# No sense in running all these tests if we already determined that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7361 +# the FC compiler isn't working. Some variables (like enable_shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7362 +# are currently assumed to apply to all compilers on this platform,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7363 +# and will be corrupted by setting them based on a non-working compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7364 +if test "$_lt_disable_FC" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7365 + # Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7366 + lt_simple_compile_test_code="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7367 + subroutine t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7368 + return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7369 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7370 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7371 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7372 + # Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7373 + lt_simple_link_test_code="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7374 + program t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7375 + end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7376 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7377 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7378 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7379 + _LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7380 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7381 + # save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7382 + _LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7383 + _LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7384 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7385 + # Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7386 + lt_save_CC="$CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7387 + lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7388 + lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7389 + CC=${FC-"f95"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7390 + CFLAGS=$FCFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7391 + compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7392 + GCC=$ac_cv_fc_compiler_gnu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7393 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7394 + _LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7395 + _LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7396 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7397 + if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7398 + AC_MSG_CHECKING([if libtool supports shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7399 + AC_MSG_RESULT([$can_build_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7400 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7401 + AC_MSG_CHECKING([whether to build shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7402 + test "$can_build_shared" = "no" && enable_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7403 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7404 + # On AIX, shared libraries and static libraries use the same namespace, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7405 + # are all built from PIC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7406 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7407 + aix3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7408 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7409 + if test -n "$RANLIB"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7410 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7411 + postinstall_cmds='$RANLIB $lib'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7412 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7413 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7414 + aix[[4-9]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7415 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7416 + test "$enable_shared" = yes && enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7417 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7418 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7419 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7420 + AC_MSG_RESULT([$enable_shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7421 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7422 + AC_MSG_CHECKING([whether to build static libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7423 + # Make sure either enable_shared or enable_static is yes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7424 + test "$enable_shared" = yes || enable_static=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7425 + AC_MSG_RESULT([$enable_static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7426 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7427 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7428 + _LT_TAGVAR(LD, $1)="$LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7429 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7430 + ## CAVEAT EMPTOR:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7431 + ## There is no encapsulation within the following macros, do not change
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7432 + ## the running order or otherwise move them around unless you know exactly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7433 + ## what you are doing...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7434 + _LT_SYS_HIDDEN_LIBDEPS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7435 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7436 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7437 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7438 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7439 + _LT_SYS_DYNAMIC_LINKER($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7440 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7442 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7443 + fi # test -n "$compiler"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7444 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7445 + GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7446 + CC=$lt_save_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7447 + CFLAGS=$lt_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7448 +fi # test "$_lt_disable_FC" != yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7449 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7450 +AC_LANG_POP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7451 +])# _LT_LANG_FC_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7452 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7453 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7454 +# _LT_LANG_GCJ_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7455 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7456 +# Ensure that the configuration variables for the GNU Java Compiler compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7457 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7458 +# to write the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7459 +m4_defun([_LT_LANG_GCJ_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7460 +[AC_REQUIRE([LT_PROG_GCJ])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7461 +AC_LANG_SAVE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7462 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7463 +# Source file extension for Java test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7464 +ac_ext=java
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7465 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7466 +# Object file extension for compiled Java test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7467 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7468 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7469 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7470 +# Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7471 +lt_simple_compile_test_code="class foo {}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7472 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7473 +# Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7474 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7475 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7476 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7477 +_LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7478 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7479 +# save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7480 +_LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7481 +_LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7482 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7483 +# Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7484 +lt_save_CC=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7485 +lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7486 +lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7487 +GCC=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7488 +CC=${GCJ-"gcj"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7489 +CFLAGS=$GCJFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7490 +compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7491 +_LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7492 +_LT_TAGVAR(LD, $1)="$LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7493 +_LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7494 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7495 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7496 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7497 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7498 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7499 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7500 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7501 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7502 +if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7503 + _LT_COMPILER_NO_RTTI($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7504 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7505 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7506 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7507 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7508 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7509 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7510 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7511 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7512 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7513 +AC_LANG_RESTORE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7514 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7515 +GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7516 +CC=$lt_save_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7517 +CFLAGS=$lt_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7518 +])# _LT_LANG_GCJ_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7519 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7520 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7521 +# _LT_LANG_GO_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7522 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7523 +# Ensure that the configuration variables for the GNU Go compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7524 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7525 +# to write the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7526 +m4_defun([_LT_LANG_GO_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7527 +[AC_REQUIRE([LT_PROG_GO])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7528 +AC_LANG_SAVE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7529 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7530 +# Source file extension for Go test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7531 +ac_ext=go
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7532 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7533 +# Object file extension for compiled Go test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7534 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7535 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7537 +# Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7538 +lt_simple_compile_test_code="package main; func main() { }"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7539 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7540 +# Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7541 +lt_simple_link_test_code='package main; func main() { }'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7542 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7543 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7544 +_LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7545 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7546 +# save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7547 +_LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7548 +_LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7549 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7550 +# Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7551 +lt_save_CC=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7552 +lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7553 +lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7554 +GCC=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7555 +CC=${GOC-"gccgo"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7556 +CFLAGS=$GOFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7557 +compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7558 +_LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7559 +_LT_TAGVAR(LD, $1)="$LD"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7560 +_LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7561 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7562 +# Go did not exist at the time GCC didn't implicitly link libc in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7563 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7564 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7565 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7566 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7567 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7568 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7569 +if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7570 + _LT_COMPILER_NO_RTTI($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7571 + _LT_COMPILER_PIC($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7572 + _LT_COMPILER_C_O($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7573 + _LT_COMPILER_FILE_LOCKS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7574 + _LT_LINKER_SHLIBS($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7575 + _LT_LINKER_HARDCODE_LIBPATH($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7576 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7577 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7578 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7579 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7580 +AC_LANG_RESTORE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7581 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7582 +GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7583 +CC=$lt_save_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7584 +CFLAGS=$lt_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7585 +])# _LT_LANG_GO_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7587 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7588 +# _LT_LANG_RC_CONFIG([TAG])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7589 +# -------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7590 +# Ensure that the configuration variables for the Windows resource compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7591 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7592 +# to write the compiler configuration to `libtool'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7593 +m4_defun([_LT_LANG_RC_CONFIG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7594 +[AC_REQUIRE([LT_PROG_RC])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7595 +AC_LANG_SAVE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7596 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7597 +# Source file extension for RC test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7598 +ac_ext=rc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7599 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7600 +# Object file extension for compiled RC test sources.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7601 +objext=o
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7602 +_LT_TAGVAR(objext, $1)=$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7603 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7604 +# Code to be used in simple compile tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7605 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7606 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7607 +# Code to be used in simple link tests
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7608 +lt_simple_link_test_code="$lt_simple_compile_test_code"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7609 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7610 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7611 +_LT_TAG_COMPILER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7612 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7613 +# save warnings/boilerplate of simple test code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7614 +_LT_COMPILER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7615 +_LT_LINKER_BOILERPLATE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7616 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7617 +# Allow CC to be a program name with arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7618 +lt_save_CC="$CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7619 +lt_save_CFLAGS=$CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7620 +lt_save_GCC=$GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7621 +GCC=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7622 +CC=${RC-"windres"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7623 +CFLAGS=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7624 +compiler=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7625 +_LT_TAGVAR(compiler, $1)=$CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7626 +_LT_CC_BASENAME([$compiler])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7627 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7628 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7629 +if test -n "$compiler"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7630 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7631 + _LT_CONFIG($1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7632 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7633 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7634 +GCC=$lt_save_GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7635 +AC_LANG_RESTORE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7636 +CC=$lt_save_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7637 +CFLAGS=$lt_save_CFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7638 +])# _LT_LANG_RC_CONFIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7639 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7640 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7641 +# LT_PROG_GCJ
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7642 +# -----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7643 +AC_DEFUN([LT_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7644 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7645 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7646 + [AC_CHECK_TOOL(GCJ, gcj,)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7647 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7648 + AC_SUBST(GCJFLAGS)])])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7649 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7650 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7651 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7652 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7653 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7654 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7655 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7656 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7657 +# LT_PROG_GO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7658 +# ----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7659 +AC_DEFUN([LT_PROG_GO],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7660 +[AC_CHECK_TOOL(GOC, gccgo,)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7661 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7662 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7663 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7664 +# LT_PROG_RC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7665 +# ----------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7666 +AC_DEFUN([LT_PROG_RC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7667 +[AC_CHECK_TOOL(RC, windres,)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7668 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7669 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7670 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7671 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7672 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7673 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7674 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7675 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7676 +# _LT_DECL_EGREP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7677 +# --------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7678 +# If we don't have a new enough Autoconf to choose the best grep
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7679 +# available, choose the one first in the user's PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7680 +m4_defun([_LT_DECL_EGREP],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7681 +[AC_REQUIRE([AC_PROG_EGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7682 +AC_REQUIRE([AC_PROG_FGREP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7683 +test -z "$GREP" && GREP=grep
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7684 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7685 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7686 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7687 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7688 +AC_SUBST([GREP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7689 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7690 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7692 +# _LT_DECL_OBJDUMP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7693 +# --------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7694 +# If we don't have a new enough Autoconf to choose the best objdump
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7695 +# available, choose the one first in the user's PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7696 +m4_defun([_LT_DECL_OBJDUMP],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7697 +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7698 +test -z "$OBJDUMP" && OBJDUMP=objdump
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7699 +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7700 +AC_SUBST([OBJDUMP])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7701 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7702 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7703 +# _LT_DECL_DLLTOOL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7704 +# ----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7705 +# Ensure DLLTOOL variable is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7706 +m4_defun([_LT_DECL_DLLTOOL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7707 +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7708 +test -z "$DLLTOOL" && DLLTOOL=dlltool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7709 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7710 +AC_SUBST([DLLTOOL])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7711 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7712 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7713 +# _LT_DECL_SED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7714 +# ------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7715 +# Check for a fully-functional sed program, that truncates
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7716 +# as few characters as possible. Prefer GNU sed if found.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7717 +m4_defun([_LT_DECL_SED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7718 +[AC_PROG_SED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7719 +test -z "$SED" && SED=sed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7720 +Xsed="$SED -e 1s/^X//"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7721 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7722 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7723 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7724 +])# _LT_DECL_SED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7725 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7726 +m4_ifndef([AC_PROG_SED], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7727 +# NOTE: This macro has been submitted for inclusion into #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7728 +# GNU Autoconf as AC_PROG_SED. When it is available in #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7729 +# a released version of Autoconf we should remove this #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7730 +# macro and use it instead. #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7731 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7732 +m4_defun([AC_PROG_SED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7733 +[AC_MSG_CHECKING([for a sed that does not truncate output])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7734 +AC_CACHE_VAL(lt_cv_path_SED,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7735 +[# Loop through the user's path and test for sed and gsed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7736 +# Then use that list of sed's as ones to test for truncation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7737 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7738 +for as_dir in $PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7739 +do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7740 + IFS=$as_save_IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7741 + test -z "$as_dir" && as_dir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7742 + for lt_ac_prog in sed gsed; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7743 + for ac_exec_ext in '' $ac_executable_extensions; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7744 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7745 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7746 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7747 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7748 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7749 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7750 +IFS=$as_save_IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7751 +lt_ac_max=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7752 +lt_ac_count=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7753 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7754 +# along with /bin/sed that truncates output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7755 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7756 + test ! -f $lt_ac_sed && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7757 + cat /dev/null > conftest.in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7758 + lt_ac_count=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7759 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7760 + # Check for GNU sed and select it if it is found.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7761 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7762 + lt_cv_path_SED=$lt_ac_sed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7763 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7764 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7765 + while true; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7766 + cat conftest.in conftest.in >conftest.tmp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7767 + mv conftest.tmp conftest.in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7768 + cp conftest.in conftest.nl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7769 + echo >>conftest.nl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7770 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7771 + cmp -s conftest.out conftest.nl || break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7772 + # 10000 chars as input seems more than enough
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7773 + test $lt_ac_count -gt 10 && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7774 + lt_ac_count=`expr $lt_ac_count + 1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7775 + if test $lt_ac_count -gt $lt_ac_max; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7776 + lt_ac_max=$lt_ac_count
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7777 + lt_cv_path_SED=$lt_ac_sed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7778 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7779 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7780 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7781 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7782 +SED=$lt_cv_path_SED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7783 +AC_SUBST([SED])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7784 +AC_MSG_RESULT([$SED])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7785 +])#AC_PROG_SED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7786 +])#m4_ifndef
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7787 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7788 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7789 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7790 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7791 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7792 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7793 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7794 +# _LT_CHECK_SHELL_FEATURES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7795 +# ------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7796 +# Find out whether the shell is Bourne or XSI compatible,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7797 +# or has some other useful features.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7798 +m4_defun([_LT_CHECK_SHELL_FEATURES],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7799 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7800 +# Try some XSI features
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7801 +xsi_shell=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7802 +( _lt_dummy="a/b/c"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7803 + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7804 + = c,a/b,b/c, \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7805 + && eval 'test $(( 1 + 1 )) -eq 2 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7806 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7807 + && xsi_shell=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7808 +AC_MSG_RESULT([$xsi_shell])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7809 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7810 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7811 +AC_MSG_CHECKING([whether the shell understands "+="])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7812 +lt_shell_append=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7813 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7814 + >/dev/null 2>&1 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7815 + && lt_shell_append=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7816 +AC_MSG_RESULT([$lt_shell_append])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7817 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7818 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7819 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7820 + lt_unset=unset
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7821 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7822 + lt_unset=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7823 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7824 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7825 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7826 +# test EBCDIC or ASCII
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7827 +case `echo X|tr X '\101'` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7828 + A) # ASCII based system
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7829 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7830 + lt_SP2NL='tr \040 \012'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7831 + lt_NL2SP='tr \015\012 \040\040'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7832 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7833 + *) # EBCDIC based system
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7834 + lt_SP2NL='tr \100 \n'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7835 + lt_NL2SP='tr \r\n \100\100'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7836 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7837 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7838 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7839 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7840 +])# _LT_CHECK_SHELL_FEATURES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7841 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7842 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7843 +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7844 +# ------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7845 +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7846 +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7847 +m4_defun([_LT_PROG_FUNCTION_REPLACE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7848 +[dnl {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7849 +sed -e '/^$1 ()$/,/^} # $1 /c\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7850 +$1 ()\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7851 +{\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7852 +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7853 +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7854 + && mv -f "$cfgfile.tmp" "$cfgfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7855 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7856 +test 0 -eq $? || _lt_function_replace_fail=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7857 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7858 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7859 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7860 +# _LT_PROG_REPLACE_SHELLFNS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7861 +# -------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7862 +# Replace existing portable implementations of several shell functions with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7863 +# equivalent extended shell implementations where those features are available..
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7864 +m4_defun([_LT_PROG_REPLACE_SHELLFNS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7865 +[if test x"$xsi_shell" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7866 + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7867 + case ${1} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7868 + */*) func_dirname_result="${1%/*}${2}" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7869 + * ) func_dirname_result="${3}" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7870 + esac])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7871 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7872 + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7873 + func_basename_result="${1##*/}"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7874 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7875 + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7876 + case ${1} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7877 + */*) func_dirname_result="${1%/*}${2}" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7878 + * ) func_dirname_result="${3}" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7879 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7880 + func_basename_result="${1##*/}"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7881 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7882 + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7883 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7884 + # positional parameters, so assign one to ordinary parameter first.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7885 + func_stripname_result=${3}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7886 + func_stripname_result=${func_stripname_result#"${1}"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7887 + func_stripname_result=${func_stripname_result%"${2}"}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7888 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7889 + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7890 + func_split_long_opt_name=${1%%=*}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7891 + func_split_long_opt_arg=${1#*=}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7892 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7893 + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7894 + func_split_short_opt_arg=${1#??}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7895 + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7896 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7897 + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7898 + case ${1} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7899 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7900 + *) func_lo2o_result=${1} ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7901 + esac])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7902 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7903 + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7904 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7905 + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7907 + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7908 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7909 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7910 +if test x"$lt_shell_append" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7911 + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7912 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7913 + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7914 + func_quote_for_eval "${2}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7915 +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7916 + eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7917 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7918 + # Save a `func_append' function call where possible by direct use of '+='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7919 + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7920 + && mv -f "$cfgfile.tmp" "$cfgfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7921 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7922 + test 0 -eq $? || _lt_function_replace_fail=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7923 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7924 + # Save a `func_append' function call even when '+=' is not available
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7925 + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7926 + && mv -f "$cfgfile.tmp" "$cfgfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7927 + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7928 + test 0 -eq $? || _lt_function_replace_fail=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7929 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7930 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7931 +if test x"$_lt_function_replace_fail" = x":"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7932 + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7933 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7934 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7935 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7936 +# _LT_PATH_CONVERSION_FUNCTIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7937 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7938 +# Determine which file name conversion functions should be used by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7939 +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7940 +# for certain cross-compile configurations and native mingw.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7941 +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7942 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7943 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7944 +AC_MSG_CHECKING([how to convert $build file names to $host format])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7945 +AC_CACHE_VAL(lt_cv_to_host_file_cmd,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7946 +[case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7947 + *-*-mingw* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7948 + case $build in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7949 + *-*-mingw* ) # actually msys
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7950 + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7951 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7952 + *-*-cygwin* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7953 + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7954 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7955 + * ) # otherwise, assume *nix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7956 + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7957 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7958 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7959 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7960 + *-*-cygwin* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7961 + case $build in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7962 + *-*-mingw* ) # actually msys
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7963 + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7964 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7965 + *-*-cygwin* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7966 + lt_cv_to_host_file_cmd=func_convert_file_noop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7967 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7968 + * ) # otherwise, assume *nix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7969 + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7970 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7971 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7972 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7973 + * ) # unhandled hosts (and "normal" native builds)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7974 + lt_cv_to_host_file_cmd=func_convert_file_noop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7975 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7976 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7977 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7978 +to_host_file_cmd=$lt_cv_to_host_file_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7979 +AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7980 +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7981 + [0], [convert $build file names to $host format])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7982 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7983 +AC_MSG_CHECKING([how to convert $build file names to toolchain format])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7984 +AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7985 +[#assume ordinary cross tools, or native build.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7986 +lt_cv_to_tool_file_cmd=func_convert_file_noop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7987 +case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7988 + *-*-mingw* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7989 + case $build in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7990 + *-*-mingw* ) # actually msys
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7991 + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7992 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7993 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7994 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7995 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7996 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7997 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7998 +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7999 +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8000 + [0], [convert $build files to toolchain format])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8001 +])# _LT_PATH_CONVERSION_FUNCTIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8002 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8003 +# Helper functions for option handling. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8004 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8005 +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8006 +# Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8007 +# Written by Gary V. Vaughan, 2004
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8008 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8009 +# This file is free software; the Free Software Foundation gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8010 +# unlimited permission to copy and/or distribute it, with or without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8011 +# modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8012 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8013 +# serial 7 ltoptions.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8014 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8015 +# This is to help aclocal find these macros, as it can't see m4_define.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8016 +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8017 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8018 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8019 +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8020 +# ------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8021 +m4_define([_LT_MANGLE_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8022 +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8023 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8024 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8025 +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8026 +# ---------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8027 +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8028 +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8029 +# saved as a flag.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8030 +m4_define([_LT_SET_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8031 +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8032 +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8033 + _LT_MANGLE_DEFUN([$1], [$2]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8034 + [m4_warning([Unknown $1 option `$2'])])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8035 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8036 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8037 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8038 +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8039 +# ------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8040 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8041 +m4_define([_LT_IF_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8042 +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8043 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8044 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8045 +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8046 +# -------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8047 +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8048 +# are set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8049 +m4_define([_LT_UNLESS_OPTIONS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8050 +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8051 + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8052 + [m4_define([$0_found])])])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8053 +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8054 +])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8055 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8056 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8057 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8058 +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8059 +# ----------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8060 +# OPTION-LIST is a space-separated list of Libtool options associated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8061 +# with MACRO-NAME. If any OPTION has a matching handler declared with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8062 +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8063 +# the unknown option and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8064 +m4_defun([_LT_SET_OPTIONS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8065 +[# Set options
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8066 +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8067 + [_LT_SET_OPTION([$1], _LT_Option)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8068 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8069 +m4_if([$1],[LT_INIT],[
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8070 + dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8071 + dnl Simply set some default values (i.e off) if boolean options were not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8072 + dnl specified:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8073 + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8074 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8075 + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8076 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8077 + dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8078 + dnl If no reference was made to various pairs of opposing options, then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8079 + dnl we run the default mode handler for the pair. For example, if neither
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8080 + dnl `shared' nor `disable-shared' was passed, we enable building of shared
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8081 + dnl archives by default:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8082 + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8083 + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8084 + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8085 + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8086 + [_LT_ENABLE_FAST_INSTALL])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8087 + ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8088 +])# _LT_SET_OPTIONS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8089 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8090 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8091 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8092 +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8093 +# -----------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8094 +m4_define([_LT_MANGLE_DEFUN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8095 +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8097 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8098 +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8099 +# -----------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8100 +m4_define([LT_OPTION_DEFINE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8101 +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8102 +])# LT_OPTION_DEFINE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8103 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8104 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8105 +# dlopen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8106 +# ------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8107 +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8108 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8109 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8110 +AU_DEFUN([AC_LIBTOOL_DLOPEN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8111 +[_LT_SET_OPTION([LT_INIT], [dlopen])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8112 +AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8113 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8114 +put the `dlopen' option into LT_INIT's first parameter.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8115 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8116 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8117 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8118 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8119 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8120 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8121 +# win32-dll
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8122 +# ---------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8123 +# Declare package support for building win32 dll's.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8124 +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8125 +[enable_win32_dll=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8126 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8127 +case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8128 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8129 + AC_CHECK_TOOL(AS, as, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8130 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8131 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8132 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8133 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8134 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8135 +test -z "$AS" && AS=as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8136 +_LT_DECL([], [AS], [1], [Assembler program])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8137 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8138 +test -z "$DLLTOOL" && DLLTOOL=dlltool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8139 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8140 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8141 +test -z "$OBJDUMP" && OBJDUMP=objdump
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8142 +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8143 +])# win32-dll
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8144 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8145 +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8146 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8147 +_LT_SET_OPTION([LT_INIT], [win32-dll])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8148 +AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8149 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8150 +put the `win32-dll' option into LT_INIT's first parameter.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8151 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8152 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8153 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8154 +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8155 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8156 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8157 +# _LT_ENABLE_SHARED([DEFAULT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8158 +# ----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8159 +# implement the --enable-shared flag, and supports the `shared' and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8160 +# `disable-shared' LT_INIT options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8161 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8162 +m4_define([_LT_ENABLE_SHARED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8163 +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8164 +AC_ARG_ENABLE([shared],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8165 + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8166 + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8167 + [p=${PACKAGE-default}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8168 + case $enableval in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8169 + yes) enable_shared=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8170 + no) enable_shared=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8171 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8172 + enable_shared=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8173 + # Look at the argument we got. We use all the common list separators.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8174 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8175 + for pkg in $enableval; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8176 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8177 + if test "X$pkg" = "X$p"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8178 + enable_shared=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8179 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8180 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8181 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8182 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8183 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8184 + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8185 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8186 + _LT_DECL([build_libtool_libs], [enable_shared], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8187 + [Whether or not to build shared libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8188 +])# _LT_ENABLE_SHARED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8189 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8190 +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8191 +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8192 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8193 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8194 +AC_DEFUN([AC_ENABLE_SHARED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8195 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8196 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8197 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8198 +AC_DEFUN([AC_DISABLE_SHARED],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8199 +[_LT_SET_OPTION([LT_INIT], [disable-shared])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8200 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8201 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8202 +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8203 +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8204 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8205 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8206 +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8207 +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8208 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8209 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8210 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8211 +# _LT_ENABLE_STATIC([DEFAULT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8212 +# ----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8213 +# implement the --enable-static flag, and support the `static' and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8214 +# `disable-static' LT_INIT options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8215 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8216 +m4_define([_LT_ENABLE_STATIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8217 +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8218 +AC_ARG_ENABLE([static],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8219 + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8220 + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8221 + [p=${PACKAGE-default}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8222 + case $enableval in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8223 + yes) enable_static=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8224 + no) enable_static=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8225 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8226 + enable_static=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8227 + # Look at the argument we got. We use all the common list separators.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8228 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8229 + for pkg in $enableval; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8230 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8231 + if test "X$pkg" = "X$p"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8232 + enable_static=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8233 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8234 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8235 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8236 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8237 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8238 + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8239 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8240 + _LT_DECL([build_old_libs], [enable_static], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8241 + [Whether or not to build static libraries])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8242 +])# _LT_ENABLE_STATIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8243 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8244 +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8245 +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8246 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8247 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8248 +AC_DEFUN([AC_ENABLE_STATIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8249 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8250 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8251 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8252 +AC_DEFUN([AC_DISABLE_STATIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8253 +[_LT_SET_OPTION([LT_INIT], [disable-static])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8254 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8255 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8256 +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8257 +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8258 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8259 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8260 +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8261 +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8262 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8263 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8264 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8265 +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8266 +# ----------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8267 +# implement the --enable-fast-install flag, and support the `fast-install'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8268 +# and `disable-fast-install' LT_INIT options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8269 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8270 +m4_define([_LT_ENABLE_FAST_INSTALL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8271 +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8272 +AC_ARG_ENABLE([fast-install],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8273 + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8274 + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8275 + [p=${PACKAGE-default}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8276 + case $enableval in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8277 + yes) enable_fast_install=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8278 + no) enable_fast_install=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8279 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8280 + enable_fast_install=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8281 + # Look at the argument we got. We use all the common list separators.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8282 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8283 + for pkg in $enableval; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8284 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8285 + if test "X$pkg" = "X$p"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8286 + enable_fast_install=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8287 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8288 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8289 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8290 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8291 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8292 + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8293 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8294 +_LT_DECL([fast_install], [enable_fast_install], [0],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8295 + [Whether or not to optimize for fast installation])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8296 +])# _LT_ENABLE_FAST_INSTALL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8297 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8298 +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8299 +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8300 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8301 +# Old names:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8302 +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8303 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8304 +AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8305 +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8306 +the `fast-install' option into LT_INIT's first parameter.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8307 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8308 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8309 +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8310 +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8311 +AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8312 +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8313 +the `disable-fast-install' option into LT_INIT's first parameter.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8314 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8315 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8316 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8317 +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8318 +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8319 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8320 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8321 +# _LT_WITH_PIC([MODE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8322 +# --------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8323 +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8324 +# LT_INIT options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8325 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8326 +m4_define([_LT_WITH_PIC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8327 +[AC_ARG_WITH([pic],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8328 + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8329 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8330 + [lt_p=${PACKAGE-default}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8331 + case $withval in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8332 + yes|no) pic_mode=$withval ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8333 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8334 + pic_mode=default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8335 + # Look at the argument we got. We use all the common list separators.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8336 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8337 + for lt_pkg in $withval; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8338 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8339 + if test "X$lt_pkg" = "X$lt_p"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8340 + pic_mode=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8341 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8342 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8343 + IFS="$lt_save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8344 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8345 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8346 + [pic_mode=default])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8347 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8348 +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8349 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8350 +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8351 +])# _LT_WITH_PIC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8352 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8353 +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8354 +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8355 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8356 +# Old name:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8357 +AU_DEFUN([AC_LIBTOOL_PICMODE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8358 +[_LT_SET_OPTION([LT_INIT], [pic-only])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8359 +AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8360 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8361 +put the `pic-only' option into LT_INIT's first parameter.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8362 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8363 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8364 +dnl aclocal-1.4 backwards compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8365 +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8366 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8367 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8368 +m4_define([_LTDL_MODE], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8369 +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8370 + [m4_define([_LTDL_MODE], [nonrecursive])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8371 +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8372 + [m4_define([_LTDL_MODE], [recursive])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8373 +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8374 + [m4_define([_LTDL_MODE], [subproject])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8376 +m4_define([_LTDL_TYPE], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8377 +LT_OPTION_DEFINE([LTDL_INIT], [installable],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8378 + [m4_define([_LTDL_TYPE], [installable])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8379 +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8380 + [m4_define([_LTDL_TYPE], [convenience])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8381 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8382 +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8383 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8384 +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8385 +# Written by Gary V. Vaughan, 2004
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8386 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8387 +# This file is free software; the Free Software Foundation gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8388 +# unlimited permission to copy and/or distribute it, with or without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8389 +# modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8390 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8391 +# serial 6 ltsugar.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8392 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8393 +# This is to help aclocal find these macros, as it can't see m4_define.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8394 +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8395 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8396 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8397 +# lt_join(SEP, ARG1, [ARG2...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8398 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8399 +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8400 +# associated separator.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8401 +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8402 +# versions in m4sugar had bugs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8403 +m4_define([lt_join],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8404 +[m4_if([$#], [1], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8405 + [$#], [2], [[$2]],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8406 + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8407 +m4_define([_lt_join],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8408 +[m4_if([$#$2], [2], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8409 + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8410 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8411 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8412 +# lt_car(LIST)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8413 +# lt_cdr(LIST)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8414 +# ------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8415 +# Manipulate m4 lists.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8416 +# These macros are necessary as long as will still need to support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8417 +# Autoconf-2.59 which quotes differently.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8418 +m4_define([lt_car], [[$1]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8419 +m4_define([lt_cdr],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8420 +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8421 + [$#], 1, [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8422 + [m4_dquote(m4_shift($@))])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8423 +m4_define([lt_unquote], $1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8424 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8425 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8426 +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8427 +# ------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8428 +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8429 +# Note that neither SEPARATOR nor STRING are expanded; they are appended
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8430 +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8431 +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8432 +# than defined and empty).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8433 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8434 +# This macro is needed until we can rely on Autoconf 2.62, since earlier
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8435 +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8436 +m4_define([lt_append],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8437 +[m4_define([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8438 + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8439 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8440 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8442 +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8443 +# ----------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8444 +# Produce a SEP delimited list of all paired combinations of elements of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8445 +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8446 +# has the form PREFIXmINFIXSUFFIXn.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8447 +# Needed until we can rely on m4_combine added in Autoconf 2.62.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8448 +m4_define([lt_combine],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8449 +[m4_if(m4_eval([$# > 3]), [1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8450 + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8451 +[[m4_foreach([_Lt_prefix], [$2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8452 + [m4_foreach([_Lt_suffix],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8453 + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8454 + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8455 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8456 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8457 +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8458 +# -----------------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8459 +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8460 +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8461 +m4_define([lt_if_append_uniq],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8462 +[m4_ifdef([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8463 + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8464 + [lt_append([$1], [$2], [$3])$4],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8465 + [$5])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8466 + [lt_append([$1], [$2], [$3])$4])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8467 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8468 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8469 +# lt_dict_add(DICT, KEY, VALUE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8470 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8471 +m4_define([lt_dict_add],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8472 +[m4_define([$1($2)], [$3])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8473 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8474 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8475 +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8476 +# --------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8477 +m4_define([lt_dict_add_subkey],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8478 +[m4_define([$1($2:$3)], [$4])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8479 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8480 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8481 +# lt_dict_fetch(DICT, KEY, [SUBKEY])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8482 +# ----------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8483 +m4_define([lt_dict_fetch],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8484 +[m4_ifval([$3],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8485 + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8486 + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8487 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8488 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8489 +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8490 +# -----------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8491 +m4_define([lt_if_dict_fetch],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8492 +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8493 + [$5],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8494 + [$6])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8495 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8496 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8497 +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8498 +# --------------------------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8499 +m4_define([lt_dict_filter],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8500 +[m4_if([$5], [], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8501 + [lt_join(m4_quote(m4_default([$4], [[, ]])),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8502 + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8503 + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8504 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8505 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8506 +# ltversion.m4 -- version numbers -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8507 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8508 +# Copyright (C) 2004 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8509 +# Written by Scott James Remnant, 2004
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8510 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8511 +# This file is free software; the Free Software Foundation gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8512 +# unlimited permission to copy and/or distribute it, with or without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8513 +# modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8514 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8515 +# @configure_input@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8517 +# serial 3337 ltversion.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8518 +# This file is part of GNU Libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8519 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8520 +m4_define([LT_PACKAGE_VERSION], [2.4.2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8521 +m4_define([LT_PACKAGE_REVISION], [1.3337])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8522 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8523 +AC_DEFUN([LTVERSION_VERSION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8524 +[macro_version='2.4.2'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8525 +macro_revision='1.3337'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8526 +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8527 +_LT_DECL(, macro_revision, 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8528 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8529 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8530 +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8531 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8532 +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8533 +# Written by Scott James Remnant, 2004.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8534 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8535 +# This file is free software; the Free Software Foundation gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8536 +# unlimited permission to copy and/or distribute it, with or without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8537 +# modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8538 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8539 +# serial 5 lt~obsolete.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8540 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8541 +# These exist entirely to fool aclocal when bootstrapping libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8542 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8543 +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8544 +# which have later been changed to m4_define as they aren't part of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8545 +# exported API, or moved to Autoconf or Automake where they belong.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8546 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8547 +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8548 +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8549 +# using a macro with the same name in our local m4/libtool.m4 it'll
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8550 +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8551 +# and doesn't know about Autoconf macros at all.)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8552 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8553 +# So we provide this file, which has a silly filename so it's always
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8554 +# included after everything else. This provides aclocal with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8555 +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8556 +# because those macros already exist, or will be overwritten later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8557 +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8558 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8559 +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8560 +# Yes, that means every name once taken will need to remain here until
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8561 +# we give up compatibility with versions before 1.7, at which point
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8562 +# we need to keep only those names which we still refer to.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8563 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8564 +# This is to help aclocal find these macros, as it can't see m4_define.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8565 +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8566 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8567 +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8568 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8569 +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8570 +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8571 +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8572 +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8573 +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8574 +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8575 +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8576 +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8577 +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8578 +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8579 +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8580 +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8581 +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8582 +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8583 +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8584 +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8585 +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8586 +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8587 +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8588 +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8589 +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8590 +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8591 +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8592 +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8593 +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8594 +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8595 +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8596 +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8597 +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8598 +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8599 +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8600 +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8601 +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8602 +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8603 +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8604 +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8605 +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8606 +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8607 +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8608 +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8609 +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8610 +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8611 +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8612 +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8613 +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8614 +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8615 +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8616 +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8617 +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8618 +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8619 +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8620 +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8621 +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8622 +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8623 +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8624 +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8625 +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8626 +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8627 +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8628 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8629 +# Copyright (C) 2002-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8630 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8631 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8632 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8633 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8634 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8635 +# AM_AUTOMAKE_VERSION(VERSION)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8636 +# ----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8637 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8638 +# generated from the m4 files accompanying Automake X.Y.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8639 +# (This private macro should not be called outside this file.)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8640 +AC_DEFUN([AM_AUTOMAKE_VERSION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8641 +[am__api_version='1.14'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8642 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8643 +dnl require some minimum version. Point them to the right macro.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8644 +m4_if([$1], [1.14.1], [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8645 + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8646 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8647 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8648 +# _AM_AUTOCONF_VERSION(VERSION)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8649 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8650 +# aclocal traces this macro to find the Autoconf version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8651 +# This is a private macro too. Using m4_define simplifies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8652 +# the logic in aclocal, which can simply ignore this definition.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8653 +m4_define([_AM_AUTOCONF_VERSION], [])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8654 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8655 +# AM_SET_CURRENT_AUTOMAKE_VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8656 +# -------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8657 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8658 +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8659 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8660 +[AM_AUTOMAKE_VERSION([1.14.1])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8661 +m4_ifndef([AC_AUTOCONF_VERSION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8662 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8663 +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8664 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8665 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8666 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8667 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8668 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8669 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8670 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8671 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8672 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8673 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8674 +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8675 +# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8676 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8677 +# Of course, Automake must honor this variable whenever it calls a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8678 +# tool from the auxiliary directory. The problem is that $srcdir (and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8679 +# therefore $ac_aux_dir as well) can be either absolute or relative,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8680 +# depending on how configure is run. This is pretty annoying, since
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8681 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8682 +# source directory, any form will work fine, but in subdirectories a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8683 +# relative path needs to be adjusted first.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8684 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8685 +# $ac_aux_dir/missing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8686 +# fails when called from a subdirectory if $ac_aux_dir is relative
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8687 +# $top_srcdir/$ac_aux_dir/missing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8688 +# fails if $ac_aux_dir is absolute,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8689 +# fails when called from a subdirectory in a VPATH build with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8690 +# a relative $ac_aux_dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8691 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8692 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8693 +# are both prefixed by $srcdir. In an in-source build this is usually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8694 +# harmless because $srcdir is '.', but things will broke when you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8695 +# start a VPATH build or use an absolute $srcdir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8696 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8697 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8698 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8699 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8700 +# and then we would define $MISSING as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8701 +# MISSING="\${SHELL} $am_aux_dir/missing"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8702 +# This will work as long as MISSING is not called from configure, because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8703 +# unfortunately $(top_srcdir) has no meaning in configure.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8704 +# However there are other variables, like CC, which are often used in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8705 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8706 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8707 +# Another solution, used here, is to always expand $ac_aux_dir to an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8708 +# absolute PATH. The drawback is that using absolute paths prevent a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8709 +# configured tree to be moved without reconfiguration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8710 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8711 +AC_DEFUN([AM_AUX_DIR_EXPAND],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8712 +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8713 +# Expand $ac_aux_dir to an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8714 +am_aux_dir=`cd "$ac_aux_dir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8715 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8716 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8717 +# AM_CONDITIONAL -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8718 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8719 +# Copyright (C) 1997-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8720 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8721 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8722 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8723 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8724 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8725 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8726 +# -------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8727 +# Define a conditional.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8728 +AC_DEFUN([AM_CONDITIONAL],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8729 +[AC_PREREQ([2.52])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8730 + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8731 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8732 +AC_SUBST([$1_TRUE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8733 +AC_SUBST([$1_FALSE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8734 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8735 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8736 +m4_define([_AM_COND_VALUE_$1], [$2])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8737 +if $2; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8738 + $1_TRUE=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8739 + $1_FALSE='#'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8740 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8741 + $1_TRUE='#'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8742 + $1_FALSE=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8743 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8744 +AC_CONFIG_COMMANDS_PRE(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8745 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8746 + AC_MSG_ERROR([[conditional "$1" was never defined.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8747 +Usually this means the macro was only invoked conditionally.]])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8748 +fi])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8749 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8750 +# Copyright (C) 1999-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8751 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8752 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8753 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8754 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8756 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8757 +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8758 +# written in clear, in which case automake, when reading aclocal.m4,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8759 +# will think it sees a *use*, and therefore will trigger all it's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8760 +# C support machinery. Also note that it means that autoscan, seeing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8761 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8762 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8763 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8764 +# _AM_DEPENDENCIES(NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8765 +# ----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8766 +# See how the compiler implements dependency checking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8767 +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8768 +# We try a few techniques and use that to set a single cache variable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8769 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8770 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8771 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8772 +# dependency, and given that the user is not expected to run this macro,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8773 +# just rely on AC_PROG_CC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8774 +AC_DEFUN([_AM_DEPENDENCIES],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8775 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8776 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8777 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8778 +AC_REQUIRE([AM_DEP_TRACK])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8779 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8780 +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8781 + [$1], [CXX], [depcc="$CXX" am_compiler_list=],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8782 + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8783 + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8784 + [$1], [UPC], [depcc="$UPC" am_compiler_list=],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8785 + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8786 + [depcc="$$1" am_compiler_list=])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8787 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8788 +AC_CACHE_CHECK([dependency style of $depcc],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8789 + [am_cv_$1_dependencies_compiler_type],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8790 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8791 + # We make a subdir and do the tests there. Otherwise we can end up
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8792 + # making bogus files that we don't know about and never remove. For
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8793 + # instance it was reported that on HP-UX the gcc test will end up
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8794 + # making a dummy file named 'D' -- because '-MD' means "put the output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8795 + # in D".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8796 + rm -rf conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8797 + mkdir conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8798 + # Copy depcomp to subdir because otherwise we won't find it if we're
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8799 + # using a relative directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8800 + cp "$am_depcomp" conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8801 + cd conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8802 + # We will build objects and dependencies in a subdirectory because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8803 + # it helps to detect inapplicable dependency modes. For instance
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8804 + # both Tru64's cc and ICC support -MD to output dependencies as a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8805 + # side effect of compilation, but ICC will put the dependencies in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8806 + # the current directory while Tru64 will put them in the object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8807 + # directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8808 + mkdir sub
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8809 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8810 + am_cv_$1_dependencies_compiler_type=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8811 + if test "$am_compiler_list" = ""; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8812 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8813 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8814 + am__universal=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8815 + m4_case([$1], [CC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8816 + [case " $depcc " in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8817 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8818 + esac],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8819 + [CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8820 + [case " $depcc " in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8821 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8822 + esac])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8823 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8824 + for depmode in $am_compiler_list; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8825 + # Setup a source with many dependencies, because some compilers
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8826 + # like to wrap large dependency lists on column 80 (with \), and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8827 + # we should not choose a depcomp mode which is confused by this.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8828 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8829 + # We need to recreate these files for each test, as the compiler may
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8830 + # overwrite some of them when testing with obscure command lines.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8831 + # This happens at least with the AIX C compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8832 + : > sub/conftest.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8833 + for i in 1 2 3 4 5 6; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8834 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8835 + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8836 + # Solaris 10 /bin/sh.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8837 + echo '/* dummy */' > sub/conftst$i.h
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8838 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8839 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8840 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8841 + # We check with '-c' and '-o' for the sake of the "dashmstdout"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8842 + # mode. It turns out that the SunPro C++ compiler does not properly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8843 + # handle '-M -o', and we need to detect this. Also, some Intel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8844 + # versions had trouble with output in subdirs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8845 + am__obj=sub/conftest.${OBJEXT-o}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8846 + am__minus_obj="-o $am__obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8847 + case $depmode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8848 + gcc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8849 + # This depmode causes a compiler race in universal mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8850 + test "$am__universal" = false || continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8851 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8852 + nosideeffect)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8853 + # After this tag, mechanisms are not by side-effect, so they'll
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8854 + # only be used when explicitly requested.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8855 + if test "x$enable_dependency_tracking" = xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8856 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8857 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8858 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8859 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8860 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8861 + msvc7 | msvc7msys | msvisualcpp | msvcmsys)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8862 + # This compiler won't grok '-c -o', but also, the minuso test has
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8863 + # not run yet. These depmodes are late enough in the game, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8864 + # so weak that their functioning should not be impacted.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8865 + am__obj=conftest.${OBJEXT-o}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8866 + am__minus_obj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8867 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8868 + none) break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8869 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8870 + if depmode=$depmode \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8871 + source=sub/conftest.c object=$am__obj \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8872 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8873 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8874 + >/dev/null 2>conftest.err &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8875 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8876 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8877 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8878 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8879 + # icc doesn't choke on unknown options, it will just issue warnings
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8880 + # or remarks (even with -Werror). So we grep stderr for any message
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8881 + # that says an option was ignored or not supported.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8882 + # When given -MP, icc 7.0 and 7.1 complain thusly:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8883 + # icc: Command line warning: ignoring option '-M'; no argument required
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8884 + # The diagnosis changed in icc 8.0:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8885 + # icc: Command line remark: option '-MP' not supported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8886 + if (grep 'ignoring option' conftest.err ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8887 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8888 + am_cv_$1_dependencies_compiler_type=$depmode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8889 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8890 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8891 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8892 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8893 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8894 + cd ..
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8895 + rm -rf conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8896 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8897 + am_cv_$1_dependencies_compiler_type=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8898 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8899 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8900 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8901 +AM_CONDITIONAL([am__fastdep$1], [
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8902 + test "x$enable_dependency_tracking" != xno \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8903 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8904 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8905 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8907 +# AM_SET_DEPDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8908 +# -------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8909 +# Choose a directory name for dependency files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8910 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8911 +AC_DEFUN([AM_SET_DEPDIR],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8912 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8913 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8914 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8915 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8916 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8917 +# AM_DEP_TRACK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8918 +# ------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8919 +AC_DEFUN([AM_DEP_TRACK],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8920 +[AC_ARG_ENABLE([dependency-tracking], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8921 +AS_HELP_STRING(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8922 + [--enable-dependency-tracking],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8923 + [do not reject slow dependency extractors])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8924 +AS_HELP_STRING(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8925 + [--disable-dependency-tracking],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8926 + [speeds up one-time build])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8927 +if test "x$enable_dependency_tracking" != xno; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8928 + am_depcomp="$ac_aux_dir/depcomp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8929 + AMDEPBACKSLASH='\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8930 + am__nodep='_no'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8931 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8932 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8933 +AC_SUBST([AMDEPBACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8934 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8935 +AC_SUBST([am__nodep])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8936 +_AM_SUBST_NOTMAKE([am__nodep])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8937 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8938 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8939 +# Generate code to set up dependency tracking. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8940 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8941 +# Copyright (C) 1999-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8942 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8943 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8944 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8945 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8946 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8947 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8948 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8949 +# ------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8950 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8951 +[{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8952 + # Older Autoconf quotes --file arguments for eval, but not when files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8953 + # are listed without --file. Let's play safe and only enable the eval
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8954 + # if we detect the quoting.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8955 + case $CONFIG_FILES in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8956 + *\'*) eval set x "$CONFIG_FILES" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8957 + *) set x $CONFIG_FILES ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8958 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8959 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8960 + for mf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8961 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8962 + # Strip MF so we end up with the name of the file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8963 + mf=`echo "$mf" | sed -e 's/:.*$//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8964 + # Check whether this is an Automake generated Makefile or not.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8965 + # We used to match only the files named 'Makefile.in', but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8966 + # some people rename them; so instead we look at the file content.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8967 + # Grep'ing the first line is not enough: some people post-process
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8968 + # each Makefile.in and add a new line on top of each file to say so.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8969 + # Grep'ing the whole file is not good either: AIX grep has a line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8970 + # limit of 2048, but all sed's we know have understand at least 4000.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8971 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8972 + dirpart=`AS_DIRNAME("$mf")`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8973 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8974 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8975 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8976 + # Extract the definition of DEPDIR, am__include, and am__quote
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8977 + # from the Makefile without running 'make'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8978 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8979 + test -z "$DEPDIR" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8980 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8981 + test -z "$am__include" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8982 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8983 + # Find all dependency output files, they are included files with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8984 + # $(DEPDIR) in their names. We invoke sed twice because it is the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8985 + # simplest approach to changing $(DEPDIR) to its actual value in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8986 + # expansion.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8987 + for file in `sed -n "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8988 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8989 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8990 + # Make sure the directory exists.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8991 + test -f "$dirpart/$file" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8992 + fdir=`AS_DIRNAME(["$file"])`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8993 + AS_MKDIR_P([$dirpart/$fdir])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8994 + # echo "creating $dirpart/$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8995 + echo '# dummy' > "$dirpart/$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8996 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8997 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8998 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8999 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9000 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9001 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9002 +# AM_OUTPUT_DEPENDENCY_COMMANDS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9003 +# -----------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9004 +# This macro should only be invoked once -- use via AC_REQUIRE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9005 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9006 +# This code is only required when automatic dependency tracking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9007 +# is enabled. FIXME. This creates each '.P' file that we will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9008 +# need in order to bootstrap the dependency handling code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9009 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9010 +[AC_CONFIG_COMMANDS([depfiles],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9011 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9012 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9013 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9014 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9015 +# Do all the work for Automake. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9016 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9017 +# Copyright (C) 1996-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9018 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9019 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9020 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9021 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9022 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9023 +# This macro actually does too much. Some checks are only needed if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9024 +# your package does certain things. But this isn't really a big deal.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9025 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9026 +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9027 +m4_define([AC_PROG_CC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9028 +m4_defn([AC_PROG_CC])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9029 +[_AM_PROG_CC_C_O
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9030 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9031 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9032 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9033 +# AM_INIT_AUTOMAKE([OPTIONS])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9034 +# -----------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9035 +# The call with PACKAGE and VERSION arguments is the old style
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9036 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9037 +# and VERSION should now be passed to AC_INIT and removed from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9038 +# the call to AM_INIT_AUTOMAKE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9039 +# We support both call styles for the transition. After
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9040 +# the next Automake release, Autoconf can make the AC_INIT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9041 +# arguments mandatory, and then we can depend on a new Autoconf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9042 +# release and drop the old call support.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9043 +AC_DEFUN([AM_INIT_AUTOMAKE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9044 +[AC_PREREQ([2.65])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9045 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9046 +dnl the ones we care about.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9047 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9048 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9049 +AC_REQUIRE([AC_PROG_INSTALL])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9050 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9051 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9052 + # is not polluted with repeated "-I."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9053 + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9054 + # test to see if srcdir already configured
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9055 + if test -f $srcdir/config.status; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9056 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9057 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9058 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9059 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9060 +# test whether we have cygpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9061 +if test -z "$CYGPATH_W"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9062 + if (cygpath --version) >/dev/null 2>/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9063 + CYGPATH_W='cygpath -w'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9064 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9065 + CYGPATH_W=echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9066 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9067 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9068 +AC_SUBST([CYGPATH_W])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9069 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9070 +# Define the identity of the package.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9071 +dnl Distinguish between old-style and new-style calls.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9072 +m4_ifval([$2],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9073 +[AC_DIAGNOSE([obsolete],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9074 + [$0: two- and three-arguments forms are deprecated.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9075 +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9076 + AC_SUBST([PACKAGE], [$1])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9077 + AC_SUBST([VERSION], [$2])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9078 +[_AM_SET_OPTIONS([$1])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9079 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9080 +m4_if(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9081 + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9082 + [ok:ok],,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9083 + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9084 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9085 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9086 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9087 +_AM_IF_OPTION([no-define],,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9088 +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9089 + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9090 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9091 +# Some tools Automake needs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9092 +AC_REQUIRE([AM_SANITY_CHECK])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9093 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9094 +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9095 +AM_MISSING_PROG([AUTOCONF], [autoconf])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9096 +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9097 +AM_MISSING_PROG([AUTOHEADER], [autoheader])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9098 +AM_MISSING_PROG([MAKEINFO], [makeinfo])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9099 +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9100 +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9101 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9102 +# For better backward compatibility. To be removed once Automake 1.9.x
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9103 +# dies out for good. For more background, see:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9104 +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9105 +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9106 +AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9107 +# We need awk for the "check" target. The system "awk" is bad on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9108 +# some platforms.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9109 +AC_REQUIRE([AC_PROG_AWK])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9110 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9111 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9112 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9113 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9114 + [_AM_PROG_TAR([v7])])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9115 +_AM_IF_OPTION([no-dependencies],,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9116 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9117 + [_AM_DEPENDENCIES([CC])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9118 + [m4_define([AC_PROG_CC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9119 + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9120 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9121 + [_AM_DEPENDENCIES([CXX])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9122 + [m4_define([AC_PROG_CXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9123 + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9124 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9125 + [_AM_DEPENDENCIES([OBJC])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9126 + [m4_define([AC_PROG_OBJC],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9127 + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9128 +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9129 + [_AM_DEPENDENCIES([OBJCXX])],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9130 + [m4_define([AC_PROG_OBJCXX],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9131 + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9132 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9133 +AC_REQUIRE([AM_SILENT_RULES])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9134 +dnl The testsuite driver may need to know about EXEEXT, so add the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9135 +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9136 +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9137 +AC_CONFIG_COMMANDS_PRE(dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9138 +[m4_provide_if([_AM_COMPILER_EXEEXT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9139 + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9140 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9141 +# POSIX will say in a future version that running "rm -f" with no argument
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9142 +# is OK; and we want to be able to make that assumption in our Makefile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9143 +# recipes. So use an aggressive probe to check that the usage we want is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9144 +# actually supported "in the wild" to an acceptable degree.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9145 +# See automake bug#10828.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9146 +# To make any issue more visible, cause the running configure to be aborted
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9147 +# by default if the 'rm' program in use doesn't match our expectations; the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9148 +# user can still override this though.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9149 +if rm -f && rm -fr && rm -rf; then : OK; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9150 + cat >&2 <<'END'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9151 +Oops!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9152 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9153 +Your 'rm' program seems unable to run without file operands specified
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9154 +on the command line, even when the '-f' option is present. This is contrary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9155 +to the behaviour of most rm programs out there, and not conforming with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9156 +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9157 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9158 +Please tell bug-automake@gnu.org about your system, including the value
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9159 +of your $PATH and any error possibly output before this message. This
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9160 +can help us improve future automake versions.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9161 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9162 +END
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9163 + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9164 + echo 'Configuration will proceed anyway, since you have set the' >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9165 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9166 + echo >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9167 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9168 + cat >&2 <<'END'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9169 +Aborting the configuration process, to ensure you take notice of the issue.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9170 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9171 +You can download and install GNU coreutils to get an 'rm' implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9172 +that behaves properly: <http://www.gnu.org/software/coreutils/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9173 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9174 +If you want to complete the configuration process using your problematic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9175 +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9176 +to "yes", and re-run configure.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9177 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9178 +END
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9179 + AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9180 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9181 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9182 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9183 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9184 +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9185 +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9186 +dnl mangled by Autoconf and run in a shell conditional statement.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9187 +m4_define([_AC_COMPILER_EXEEXT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9188 +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9189 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9190 +# When config.status generates a header, we must update the stamp-h file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9191 +# This file resides in the same directory as the config header
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9192 +# that is generated. The stamp files are numbered to have different names.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9193 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9194 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9195 +# loop where config.status creates the headers, so we can generate
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9196 +# our stamp files there.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9197 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9198 +[# Compute $1's index in $config_headers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9199 +_am_arg=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9200 +_am_stamp_count=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9201 +for _am_header in $config_headers :; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9202 + case $_am_header in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9203 + $_am_arg | $_am_arg:* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9204 + break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9205 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9206 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9207 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9208 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9209 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9210 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9211 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9212 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9213 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9214 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9215 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9216 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9217 +# AM_PROG_INSTALL_SH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9218 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9219 +# Define $install_sh.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9220 +AC_DEFUN([AM_PROG_INSTALL_SH],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9221 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9222 +if test x"${install_sh}" != xset; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9223 + case $am_aux_dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9224 + *\ * | *\ *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9225 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9226 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9227 + install_sh="\${SHELL} $am_aux_dir/install-sh"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9228 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9229 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9230 +AC_SUBST([install_sh])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9231 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9232 +# Copyright (C) 2003-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9233 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9234 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9235 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9236 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9238 +# Check whether the underlying file-system supports filenames
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9239 +# with a leading dot. For instance MS-DOS doesn't.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9240 +AC_DEFUN([AM_SET_LEADING_DOT],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9241 +[rm -rf .tst 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9242 +mkdir .tst 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9243 +if test -d .tst; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9244 + am__leading_dot=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9245 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9246 + am__leading_dot=_
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9247 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9248 +rmdir .tst 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9249 +AC_SUBST([am__leading_dot])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9250 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9251 +# Check to see how 'make' treats includes. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9252 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9253 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9254 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9255 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9256 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9257 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9258 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9259 +# AM_MAKE_INCLUDE()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9260 +# -----------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9261 +# Check to see how make treats includes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9262 +AC_DEFUN([AM_MAKE_INCLUDE],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9263 +[am_make=${MAKE-make}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9264 +cat > confinc << 'END'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9265 +am__doit:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9266 + @echo this is the am__doit target
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9267 +.PHONY: am__doit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9268 +END
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9269 +# If we don't find an include directive, just comment out the code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9270 +AC_MSG_CHECKING([for style of include used by $am_make])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9271 +am__include="#"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9272 +am__quote=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9273 +_am_result=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9274 +# First try GNU make style include.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9275 +echo "include confinc" > confmf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9276 +# Ignore all kinds of additional output from 'make'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9277 +case `$am_make -s -f confmf 2> /dev/null` in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9278 +*the\ am__doit\ target*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9279 + am__include=include
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9280 + am__quote=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9281 + _am_result=GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9282 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9283 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9284 +# Now try BSD make style include.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9285 +if test "$am__include" = "#"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9286 + echo '.include "confinc"' > confmf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9287 + case `$am_make -s -f confmf 2> /dev/null` in #(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9288 + *the\ am__doit\ target*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9289 + am__include=.include
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9290 + am__quote="\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9291 + _am_result=BSD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9292 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9293 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9294 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9295 +AC_SUBST([am__include])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9296 +AC_SUBST([am__quote])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9297 +AC_MSG_RESULT([$_am_result])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9298 +rm -f confinc confmf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9299 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9300 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9301 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9302 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9303 +# Copyright (C) 1997-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9304 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9305 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9306 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9307 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9308 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9309 +# AM_MISSING_PROG(NAME, PROGRAM)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9310 +# ------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9311 +AC_DEFUN([AM_MISSING_PROG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9312 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9313 +$1=${$1-"${am_missing_run}$2"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9314 +AC_SUBST($1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9315 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9316 +# AM_MISSING_HAS_RUN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9317 +# ------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9318 +# Define MISSING if not defined so far and test if it is modern enough.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9319 +# If it is, set am_missing_run to use it, otherwise, to nothing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9320 +AC_DEFUN([AM_MISSING_HAS_RUN],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9321 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9322 +AC_REQUIRE_AUX_FILE([missing])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9323 +if test x"${MISSING+set}" != xset; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9324 + case $am_aux_dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9325 + *\ * | *\ *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9326 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9327 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9328 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9329 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9330 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9331 +# Use eval to expand $SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9332 +if eval "$MISSING --is-lightweight"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9333 + am_missing_run="$MISSING "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9334 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9335 + am_missing_run=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9336 + AC_MSG_WARN(['missing' script is too old or missing])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9337 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9338 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9339 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9340 +# Helper functions for option handling. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9341 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9342 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9343 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9344 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9345 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9346 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9347 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9348 +# _AM_MANGLE_OPTION(NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9349 +# -----------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9350 +AC_DEFUN([_AM_MANGLE_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9351 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9352 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9353 +# _AM_SET_OPTION(NAME)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9354 +# --------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9355 +# Set option NAME. Presently that only means defining a flag for this option.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9356 +AC_DEFUN([_AM_SET_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9357 +[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9358 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9359 +# _AM_SET_OPTIONS(OPTIONS)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9360 +# ------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9361 +# OPTIONS is a space-separated list of Automake options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9362 +AC_DEFUN([_AM_SET_OPTIONS],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9363 +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9364 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9365 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9366 +# -------------------------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9367 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9368 +AC_DEFUN([_AM_IF_OPTION],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9369 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9370 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9371 +# Copyright (C) 1999-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9372 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9373 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9374 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9375 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9376 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9377 +# _AM_PROG_CC_C_O
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9378 +# ---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9379 +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9380 +# to automatically call this.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9381 +AC_DEFUN([_AM_PROG_CC_C_O],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9382 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9383 +AC_REQUIRE_AUX_FILE([compile])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9384 +AC_LANG_PUSH([C])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9385 +AC_CACHE_CHECK(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9386 + [whether $CC understands -c and -o together],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9387 + [am_cv_prog_cc_c_o],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9388 + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9389 + # Make sure it works both with $CC and with simple cc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9390 + # Following AC_PROG_CC_C_O, we do the test twice because some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9391 + # compilers refuse to overwrite an existing .o file with -o,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9392 + # though they will create one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9393 + am_cv_prog_cc_c_o=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9394 + for am_i in 1 2; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9395 + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9396 + && test -f conftest2.$ac_objext; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9397 + : OK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9398 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9399 + am_cv_prog_cc_c_o=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9400 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9401 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9402 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9403 + rm -f core conftest*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9404 + unset am_i])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9405 +if test "$am_cv_prog_cc_c_o" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9406 + # Losing compiler, so override with the script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9407 + # FIXME: It is wrong to rewrite CC.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9408 + # But if we don't then we get into trouble of one sort or another.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9409 + # A longer-term fix would be to have automake use am__CC in this case,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9410 + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9411 + CC="$am_aux_dir/compile $CC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9412 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9413 +AC_LANG_POP([C])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9414 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9415 +# For backward compatibility.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9416 +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9417 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9418 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9419 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9420 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9421 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9422 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9424 +# AM_RUN_LOG(COMMAND)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9425 +# -------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9426 +# Run COMMAND, save the exit status in ac_status, and log it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9427 +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9428 +AC_DEFUN([AM_RUN_LOG],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9429 +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9430 + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9431 + ac_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9432 + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9433 + (exit $ac_status); }])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9434 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9435 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9436 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9437 +# Copyright (C) 1996-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9438 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9439 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9440 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9441 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9442 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9443 +# AM_SANITY_CHECK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9444 +# ---------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9445 +AC_DEFUN([AM_SANITY_CHECK],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9446 +[AC_MSG_CHECKING([whether build environment is sane])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9447 +# Reject unsafe characters in $srcdir or the absolute working directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9448 +# name. Accept space and tab only in the latter.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9449 +am_lf='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9450 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9451 +case `pwd` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9452 + *[[\\\"\#\$\&\'\`$am_lf]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9453 + AC_MSG_ERROR([unsafe absolute working directory name]);;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9454 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9455 +case $srcdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9456 + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9457 + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9458 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9459 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9460 +# Do 'set' in a subshell so we don't clobber the current shell's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9461 +# arguments. Must try -L first in case configure is actually a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9462 +# symlink; some systems play weird games with the mod time of symlinks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9463 +# (eg FreeBSD returns the mod time of the symlink's containing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9464 +# directory).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9465 +if (
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9466 + am_has_slept=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9467 + for am_try in 1 2; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9468 + echo "timestamp, slept: $am_has_slept" > conftest.file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9469 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9470 + if test "$[*]" = "X"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9471 + # -L didn't work.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9472 + set X `ls -t "$srcdir/configure" conftest.file`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9473 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9474 + if test "$[*]" != "X $srcdir/configure conftest.file" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9475 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9476 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9477 + # If neither matched, then we have a broken ls. This can happen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9478 + # if, for instance, CONFIG_SHELL is bash and it inherits a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9479 + # broken ls alias from the environment. This has actually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9480 + # happened. Such a system could not be considered "sane".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9481 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9482 + alias in your environment])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9483 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9484 + if test "$[2]" = conftest.file || test $am_try -eq 2; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9485 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9486 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9487 + # Just in case.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9488 + sleep 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9489 + am_has_slept=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9490 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9491 + test "$[2]" = conftest.file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9492 + )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9493 +then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9494 + # Ok.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9495 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9496 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9497 + AC_MSG_ERROR([newly created file is older than distributed files!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9498 +Check your system clock])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9499 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9500 +AC_MSG_RESULT([yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9501 +# If we didn't sleep, we still need to ensure time stamps of config.status and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9502 +# generated files are strictly newer.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9503 +am_sleep_pid=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9504 +if grep 'slept: no' conftest.file >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9505 + ( sleep 1 ) &
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9506 + am_sleep_pid=$!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9507 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9508 +AC_CONFIG_COMMANDS_PRE(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9509 + [AC_MSG_CHECKING([that generated files are newer than configure])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9510 + if test -n "$am_sleep_pid"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9511 + # Hide warnings about reused PIDs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9512 + wait $am_sleep_pid 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9513 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9514 + AC_MSG_RESULT([done])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9515 +rm -f conftest.file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9516 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9517 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9518 +# Copyright (C) 2009-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9519 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9520 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9521 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9522 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9523 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9524 +# AM_SILENT_RULES([DEFAULT])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9525 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9526 +# Enable less verbose build rules; with the default set to DEFAULT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9527 +# ("yes" being less verbose, "no" or empty being verbose).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9528 +AC_DEFUN([AM_SILENT_RULES],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9529 +[AC_ARG_ENABLE([silent-rules], [dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9530 +AS_HELP_STRING(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9531 + [--enable-silent-rules],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9532 + [less verbose build output (undo: "make V=1")])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9533 +AS_HELP_STRING(
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9534 + [--disable-silent-rules],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9535 + [verbose build output (undo: "make V=0")])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9536 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9537 +case $enable_silent_rules in @%:@ (((
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9538 + yes) AM_DEFAULT_VERBOSITY=0;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9539 + no) AM_DEFAULT_VERBOSITY=1;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9540 + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9541 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9542 +dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9543 +dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9544 +dnl do not support nested variable expansions.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9545 +dnl See automake bug#9928 and bug#10237.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9546 +am_make=${MAKE-make}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9547 +AC_CACHE_CHECK([whether $am_make supports nested variables],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9548 + [am_cv_make_support_nested_variables],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9549 + [if AS_ECHO([['TRUE=$(BAR$(V))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9550 +BAR0=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9551 +BAR1=true
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9552 +V=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9553 +am__doit:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9554 + @$(TRUE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9555 +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9556 + am_cv_make_support_nested_variables=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9557 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9558 + am_cv_make_support_nested_variables=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9559 +fi])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9560 +if test $am_cv_make_support_nested_variables = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9561 + dnl Using '$V' instead of '$(V)' breaks IRIX make.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9562 + AM_V='$(V)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9563 + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9564 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9565 + AM_V=$AM_DEFAULT_VERBOSITY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9566 + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9567 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9568 +AC_SUBST([AM_V])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9569 +AM_SUBST_NOTMAKE([AM_V])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9570 +AC_SUBST([AM_DEFAULT_V])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9571 +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9572 +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9573 +AM_BACKSLASH='\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9574 +AC_SUBST([AM_BACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9575 +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9576 +])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9577 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9578 +# Copyright (C) 2001-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9579 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9580 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9581 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9582 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9583 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9584 +# AM_PROG_INSTALL_STRIP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9585 +# ---------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9586 +# One issue with vendor 'install' (even GNU) is that you can't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9587 +# specify the program used to strip binaries. This is especially
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9588 +# annoying in cross-compiling environments, where the build's strip
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9589 +# is unlikely to handle the host's binaries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9590 +# Fortunately install-sh will honor a STRIPPROG variable, so we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9591 +# always use install-sh in "make install-strip", and initialize
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9592 +# STRIPPROG with the value of the STRIP variable (set by the user).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9593 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9594 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9595 +# Installed binaries are usually stripped using 'strip' when the user
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9596 +# run "make install-strip". However 'strip' might not be the right
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9597 +# tool to use in cross-compilation environments, therefore Automake
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9598 +# will honor the 'STRIP' environment variable to overrule this program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9599 +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9600 +if test "$cross_compiling" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9601 + AC_CHECK_TOOL([STRIP], [strip], :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9602 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9603 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9604 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9605 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9606 +# Copyright (C) 2006-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9607 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9608 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9609 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9610 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9611 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9612 +# _AM_SUBST_NOTMAKE(VARIABLE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9613 +# ---------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9614 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9615 +# This macro is traced by Automake.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9616 +AC_DEFUN([_AM_SUBST_NOTMAKE])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9617 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9618 +# AM_SUBST_NOTMAKE(VARIABLE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9619 +# --------------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9620 +# Public sister of _AM_SUBST_NOTMAKE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9621 +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9622 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9623 +# Check how to create a tarball. -*- Autoconf -*-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9624 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9625 +# Copyright (C) 2004-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9626 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9627 +# This file is free software; the Free Software Foundation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9628 +# gives unlimited permission to copy and/or distribute it,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9629 +# with or without modifications, as long as this notice is preserved.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9630 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9631 +# _AM_PROG_TAR(FORMAT)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9632 +# --------------------
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9633 +# Check how to create a tarball in format FORMAT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9634 +# FORMAT should be one of 'v7', 'ustar', or 'pax'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9635 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9636 +# Substitute a variable $(am__tar) that is a command
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9637 +# writing to stdout a FORMAT-tarball containing the directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9638 +# $tardir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9639 +# tardir=directory && $(am__tar) > result.tar
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9640 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9641 +# Substitute a variable $(am__untar) that extract such
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9642 +# a tarball read from stdin.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9643 +# $(am__untar) < result.tar
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9644 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9645 +AC_DEFUN([_AM_PROG_TAR],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9646 +[# Always define AMTAR for backward compatibility. Yes, it's still used
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9647 +# in the wild :-( We should find a proper way to deprecate it ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9648 +AC_SUBST([AMTAR], ['$${TAR-tar}'])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9650 +# We'll loop over all known methods to create a tar archive until one works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9651 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9652 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9653 +m4_if([$1], [v7],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9654 + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9655 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9656 + [m4_case([$1],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9657 + [ustar],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9658 + [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9659 + # There is notably a 21 bits limit for the UID and the GID. In fact,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9660 + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9661 + # and bug#13588).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9662 + am_max_uid=2097151 # 2^21 - 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9663 + am_max_gid=$am_max_uid
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9664 + # The $UID and $GID variables are not portable, so we need to resort
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9665 + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9666 + # below are definitely unexpected, so allow the users to see them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9667 + # (that is, avoid stderr redirection).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9668 + am_uid=`id -u || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9669 + am_gid=`id -g || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9670 + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9671 + if test $am_uid -le $am_max_uid; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9672 + AC_MSG_RESULT([yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9673 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9674 + AC_MSG_RESULT([no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9675 + _am_tools=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9676 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9677 + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9678 + if test $am_gid -le $am_max_gid; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9679 + AC_MSG_RESULT([yes])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9680 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9681 + AC_MSG_RESULT([no])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9682 + _am_tools=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9683 + fi],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9684 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9685 + [pax],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9686 + [],
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9687 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9688 + [m4_fatal([Unknown tar format])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9689 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9690 + AC_MSG_CHECKING([how to create a $1 tar archive])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9692 + # Go ahead even if we have the value already cached. We do so because we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9693 + # need to set the values for the 'am__tar' and 'am__untar' variables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9694 + _am_tools=${am_cv_prog_tar_$1-$_am_tools}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9695 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9696 + for _am_tool in $_am_tools; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9697 + case $_am_tool in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9698 + gnutar)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9699 + for _am_tar in tar gnutar gtar; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9700 + AM_RUN_LOG([$_am_tar --version]) && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9701 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9702 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9703 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9704 + am__untar="$_am_tar -xf -"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9705 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9706 + plaintar)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9707 + # Must skip GNU tar: if it does not support --format= it doesn't create
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9708 + # ustar tarball either.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9709 + (tar --version) >/dev/null 2>&1 && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9710 + am__tar='tar chf - "$$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9711 + am__tar_='tar chf - "$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9712 + am__untar='tar xf -'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9713 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9714 + pax)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9715 + am__tar='pax -L -x $1 -w "$$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9716 + am__tar_='pax -L -x $1 -w "$tardir"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9717 + am__untar='pax -r'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9718 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9719 + cpio)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9720 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9721 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9722 + am__untar='cpio -i -H $1 -d'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9723 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9724 + none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9725 + am__tar=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9726 + am__tar_=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9727 + am__untar=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9728 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9729 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9730 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9731 + # If the value was cached, stop now. We just wanted to have am__tar
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9732 + # and am__untar set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9733 + test -n "${am_cv_prog_tar_$1}" && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9734 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9735 + # tar/untar a dummy directory, and stop if the command works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9736 + rm -rf conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9737 + mkdir conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9738 + echo GrepMe > conftest.dir/file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9739 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9740 + rm -rf conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9741 + if test -s conftest.tar; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9742 + AM_RUN_LOG([$am__untar <conftest.tar])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9743 + AM_RUN_LOG([cat conftest.dir/file])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9744 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9745 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9746 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9747 + rm -rf conftest.dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9748 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9749 + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9750 + AC_MSG_RESULT([$am_cv_prog_tar_$1])])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9751 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9752 +AC_SUBST([am__tar])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9753 +AC_SUBST([am__untar])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9754 +]) # _AM_PROG_TAR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9756 diff -uNr a/AUTHORS b/AUTHORS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9757 --- a/AUTHORS 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9758 +++ b/AUTHORS 2014-12-12 15:59:32.605606679 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9759 @@ -0,0 +1 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9760 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9761 diff -uNr a/ChangeLog b/ChangeLog
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9762 --- a/ChangeLog 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9763 +++ b/ChangeLog 2014-12-12 15:59:32.605606679 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9764 @@ -0,0 +1 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9765 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9766 diff -uNr a/compile b/compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9767 --- a/compile 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9768 +++ b/compile 2014-12-12 15:22:27.566241255 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9769 @@ -0,0 +1,347 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9770 +#! /bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9771 +# Wrapper for compilers which do not understand '-c -o'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9772 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9773 +scriptversion=2012-10-14.11; # UTC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9774 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9775 +# Copyright (C) 1999-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9776 +# Written by Tom Tromey <tromey@cygnus.com>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9777 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9778 +# This program is free software; you can redistribute it and/or modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9779 +# it under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9780 +# the Free Software Foundation; either version 2, or (at your option)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9781 +# any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9782 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9783 +# This program is distributed in the hope that it will be useful,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9784 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9785 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9786 +# GNU General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9787 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9788 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9789 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9790 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9791 +# As a special exception to the GNU General Public License, if you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9792 +# distribute this file as part of a program that contains a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9793 +# configuration script generated by Autoconf, you may include it under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9794 +# the same distribution terms that you use for the rest of that program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9795 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9796 +# This file is maintained in Automake, please report
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9797 +# bugs to <bug-automake@gnu.org> or send patches to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9798 +# <automake-patches@gnu.org>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9799 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9800 +nl='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9801 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9802 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9803 +# We need space, tab and new line, in precisely that order. Quoting is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9804 +# there to prevent tools from complaining about whitespace usage.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9805 +IFS=" "" $nl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9806 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9807 +file_conv=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9808 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9809 +# func_file_conv build_file lazy
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9810 +# Convert a $build file to $host form and store it in $file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9811 +# Currently only supports Windows hosts. If the determined conversion
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9812 +# type is listed in (the comma separated) LAZY, no conversion will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9813 +# take place.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9814 +func_file_conv ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9815 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9816 + file=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9817 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9818 + / | /[!/]*) # absolute file, and not a UNC file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9819 + if test -z "$file_conv"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9820 + # lazily determine how to convert abs files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9821 + case `uname -s` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9822 + MINGW*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9823 + file_conv=mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9824 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9825 + CYGWIN*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9826 + file_conv=cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9827 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9828 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9829 + file_conv=wine
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9830 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9831 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9832 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9833 + case $file_conv/,$2, in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9834 + *,$file_conv,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9835 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9836 + mingw/*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9837 + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9838 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9839 + cygwin/*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9840 + file=`cygpath -m "$file" || echo "$file"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9841 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9842 + wine/*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9843 + file=`winepath -w "$file" || echo "$file"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9844 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9845 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9846 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9847 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9848 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9849 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9850 +# func_cl_dashL linkdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9851 +# Make cl look for libraries in LINKDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9852 +func_cl_dashL ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9853 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9854 + func_file_conv "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9855 + if test -z "$lib_path"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9856 + lib_path=$file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9857 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9858 + lib_path="$lib_path;$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9859 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9860 + linker_opts="$linker_opts -LIBPATH:$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9861 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9862 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9863 +# func_cl_dashl library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9864 +# Do a library search-path lookup for cl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9865 +func_cl_dashl ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9866 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9867 + lib=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9868 + found=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9869 + save_IFS=$IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9870 + IFS=';'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9871 + for dir in $lib_path $LIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9872 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9873 + IFS=$save_IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9874 + if $shared && test -f "$dir/$lib.dll.lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9875 + found=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9876 + lib=$dir/$lib.dll.lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9877 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9878 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9879 + if test -f "$dir/$lib.lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9880 + found=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9881 + lib=$dir/$lib.lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9882 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9883 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9884 + if test -f "$dir/lib$lib.a"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9885 + found=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9886 + lib=$dir/lib$lib.a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9887 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9888 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9889 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9890 + IFS=$save_IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9891 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9892 + if test "$found" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9893 + lib=$lib.lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9894 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9895 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9896 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9897 +# func_cl_wrapper cl arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9898 +# Adjust compile command to suit cl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9899 +func_cl_wrapper ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9900 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9901 + # Assume a capable shell
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9902 + lib_path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9903 + shared=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9904 + linker_opts=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9905 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9906 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9907 + if test -n "$eat"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9908 + eat=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9909 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9910 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9911 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9912 + # configure might choose to run compile as 'compile cc -o foo foo.c'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9913 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9914 + case $2 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9915 + *.o | *.[oO][bB][jJ])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9916 + func_file_conv "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9917 + set x "$@" -Fo"$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9918 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9919 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9920 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9921 + func_file_conv "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9922 + set x "$@" -Fe"$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9923 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9924 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9925 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9926 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9927 + -I)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9928 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9929 + func_file_conv "$2" mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9930 + set x "$@" -I"$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9931 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9932 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9933 + -I*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9934 + func_file_conv "${1#-I}" mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9935 + set x "$@" -I"$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9936 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9937 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9938 + -l)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9939 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9940 + func_cl_dashl "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9941 + set x "$@" "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9942 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9943 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9944 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9945 + func_cl_dashl "${1#-l}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9946 + set x "$@" "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9947 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9948 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9949 + -L)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9950 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9951 + func_cl_dashL "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9952 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9953 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9954 + func_cl_dashL "${1#-L}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9955 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9956 + -static)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9957 + shared=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9958 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9959 + -Wl,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9960 + arg=${1#-Wl,}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9961 + save_ifs="$IFS"; IFS=','
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9962 + for flag in $arg; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9963 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9964 + linker_opts="$linker_opts $flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9965 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9966 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9967 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9968 + -Xlinker)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9969 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9970 + linker_opts="$linker_opts $2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9971 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9972 + -*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9973 + set x "$@" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9974 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9975 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9976 + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9977 + func_file_conv "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9978 + set x "$@" -Tp"$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9979 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9980 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9981 + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9982 + func_file_conv "$1" mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9983 + set x "$@" "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9984 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9985 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9986 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9987 + set x "$@" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9988 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9989 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9990 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9991 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9992 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9993 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9994 + if test -n "$linker_opts"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9995 + linker_opts="-link$linker_opts"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9996 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9997 + exec "$@" $linker_opts
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9998 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9999 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10000 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10001 +eat=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10002 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10003 +case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10004 + '')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10005 + echo "$0: No command. Try '$0 --help' for more information." 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10006 + exit 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10007 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10008 + -h | --h*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10009 + cat <<\EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10010 +Usage: compile [--help] [--version] PROGRAM [ARGS]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10011 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10012 +Wrapper for compilers which do not understand '-c -o'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10013 +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10014 +arguments, and rename the output as expected.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10015 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10016 +If you are trying to build a whole package this is not the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10017 +right script to run: please start by reading the file 'INSTALL'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10018 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10019 +Report bugs to <bug-automake@gnu.org>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10020 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10021 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10022 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10023 + -v | --v*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10024 + echo "compile $scriptversion"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10025 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10026 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10027 + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10028 + func_cl_wrapper "$@" # Doesn't return...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10029 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10030 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10031 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10032 +ofile=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10033 +cfile=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10034 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10035 +for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10036 +do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10037 + if test -n "$eat"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10038 + eat=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10039 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10040 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10041 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10042 + # configure might choose to run compile as 'compile cc -o foo foo.c'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10043 + # So we strip '-o arg' only if arg is an object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10044 + eat=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10045 + case $2 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10046 + *.o | *.obj)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10047 + ofile=$2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10048 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10049 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10050 + set x "$@" -o "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10051 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10052 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10053 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10054 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10055 + *.c)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10056 + cfile=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10057 + set x "$@" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10058 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10059 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10060 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10061 + set x "$@" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10062 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10063 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10064 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10065 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10066 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10067 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10068 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10069 +if test -z "$ofile" || test -z "$cfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10070 + # If no '-o' option was seen then we might have been invoked from a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10071 + # pattern rule where we don't need one. That is ok -- this is a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10072 + # normal compilation that the losing compiler can handle. If no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10073 + # '.c' file was seen then we are probably linking. That is also
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10074 + # ok.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10075 + exec "$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10076 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10077 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10078 +# Name of file we expect compiler to create.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10079 +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10080 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10081 +# Create the lock directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10082 +# Note: use '[/\\:.-]' here to ensure that we don't use the same name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10083 +# that we are using for the .o file. Also, base the name on the expected
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10084 +# object file name, since that is what matters with a parallel build.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10085 +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10086 +while true; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10087 + if mkdir "$lockdir" >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10088 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10089 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10090 + sleep 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10091 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10092 +# FIXME: race condition here if user kills between mkdir and trap.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10093 +trap "rmdir '$lockdir'; exit 1" 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10094 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10095 +# Run the compile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10096 +"$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10097 +ret=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10098 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10099 +if test -f "$cofile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10100 + test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10101 +elif test -f "${cofile}bj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10102 + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10103 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10104 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10105 +rmdir "$lockdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10106 +exit $ret
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10107 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10108 +# Local Variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10109 +# mode: shell-script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10110 +# sh-indentation: 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10111 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10112 +# time-stamp-start: "scriptversion="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10113 +# time-stamp-format: "%:y-%02m-%02d.%02H"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10114 +# time-stamp-time-zone: "UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10115 +# time-stamp-end: "; # UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10116 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10117 diff -uNr a/config.guess b/config.guess
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10118 --- a/config.guess 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10119 +++ b/config.guess 2014-12-12 15:22:27.578240863 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10120 @@ -0,0 +1,1420 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10121 +#! /bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10122 +# Attempt to guess a canonical system name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10123 +# Copyright 1992-2014 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10124 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10125 +timestamp='2014-03-23'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10126 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10127 +# This file is free software; you can redistribute it and/or modify it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10128 +# under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10129 +# the Free Software Foundation; either version 3 of the License, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10130 +# (at your option) any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10131 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10132 +# This program is distributed in the hope that it will be useful, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10133 +# WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10134 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10135 +# General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10136 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10137 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10138 +# along with this program; if not, see <http://www.gnu.org/licenses/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10139 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10140 +# As a special exception to the GNU General Public License, if you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10141 +# distribute this file as part of a program that contains a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10142 +# configuration script generated by Autoconf, you may include it under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10143 +# the same distribution terms that you use for the rest of that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10144 +# program. This Exception is an additional permission under section 7
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10145 +# of the GNU General Public License, version 3 ("GPLv3").
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10146 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10147 +# Originally written by Per Bothner.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10148 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10149 +# You can get the latest version of this script from:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10150 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10151 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10152 +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10153 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10154 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10155 +me=`echo "$0" | sed -e 's,.*/,,'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10156 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10157 +usage="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10158 +Usage: $0 [OPTION]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10159 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10160 +Output the configuration name of the system \`$me' is run on.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10161 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10162 +Operation modes:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10163 + -h, --help print this help, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10164 + -t, --time-stamp print date of last modification, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10165 + -v, --version print version number, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10166 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10167 +Report bugs and patches to <config-patches@gnu.org>."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10168 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10169 +version="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10170 +GNU config.guess ($timestamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10171 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10172 +Originally written by Per Bothner.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10173 +Copyright 1992-2014 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10174 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10175 +This is free software; see the source for copying conditions. There is NO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10176 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10177 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10178 +help="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10179 +Try \`$me --help' for more information."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10180 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10181 +# Parse command line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10182 +while test $# -gt 0 ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10183 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10184 + --time-stamp | --time* | -t )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10185 + echo "$timestamp" ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10186 + --version | -v )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10187 + echo "$version" ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10188 + --help | --h* | -h )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10189 + echo "$usage"; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10190 + -- ) # Stop option processing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10191 + shift; break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10192 + - ) # Use stdin as input.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10193 + break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10194 + -* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10195 + echo "$me: invalid option $1$help" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10196 + exit 1 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10197 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10198 + break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10199 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10200 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10201 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10202 +if test $# != 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10203 + echo "$me: too many arguments$help" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10204 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10205 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10206 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10207 +trap 'exit 1' 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10208 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10209 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10210 +# compiler to aid in system detection is discouraged as it requires
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10211 +# temporary files to be created and, as you can see below, it is a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10212 +# headache to deal with in a portable fashion.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10213 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10214 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10215 +# use `HOST_CC' if defined, but it is deprecated.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10216 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10217 +# Portable tmp directory creation inspired by the Autoconf team.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10218 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10219 +set_cc_for_build='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10220 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10221 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10222 +: ${TMPDIR=/tmp} ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10223 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10224 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10225 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10226 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10227 +dummy=$tmp/dummy ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10228 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10229 +case $CC_FOR_BUILD,$HOST_CC,$CC in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10230 + ,,) echo "int x;" > $dummy.c ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10231 + for c in cc gcc c89 c99 ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10232 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10233 + CC_FOR_BUILD="$c"; break ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10234 + fi ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10235 + done ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10236 + if test x"$CC_FOR_BUILD" = x ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10237 + CC_FOR_BUILD=no_compiler_found ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10238 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10239 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10240 + ,,*) CC_FOR_BUILD=$CC ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10241 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10242 +esac ; set_cc_for_build= ;'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10243 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10244 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10245 +# (ghazi@noc.rutgers.edu 1994-08-24)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10246 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10247 + PATH=$PATH:/.attbin ; export PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10248 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10249 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10250 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10251 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10252 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10253 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10254 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10255 +case "${UNAME_SYSTEM}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10256 +Linux|GNU|GNU/*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10257 + # If the system lacks a compiler, then just pick glibc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10258 + # We could probably try harder.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10259 + LIBC=gnu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10260 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10261 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10262 + cat <<-EOF > $dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10263 + #include <features.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10264 + #if defined(__UCLIBC__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10265 + LIBC=uclibc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10266 + #elif defined(__dietlibc__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10267 + LIBC=dietlibc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10268 + #else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10269 + LIBC=gnu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10270 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10271 + EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10272 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10273 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10274 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10275 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10276 +# Note: order is significant - the case branches are not exclusive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10277 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10278 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10279 + *:NetBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10280 + # NetBSD (nbsd) targets should (where applicable) match one or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10281 + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10282 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10283 + # switched to ELF, *-*-netbsd* would select the old
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10284 + # object file format. This provides both forward
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10285 + # compatibility and a consistent mechanism for selecting the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10286 + # object file format.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10287 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10288 + # Note: NetBSD doesn't particularly care about the vendor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10289 + # portion of the name. We always set it to "unknown".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10290 + sysctl="sysctl -n hw.machine_arch"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10291 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10292 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10293 + case "${UNAME_MACHINE_ARCH}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10294 + armeb) machine=armeb-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10295 + arm*) machine=arm-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10296 + sh3el) machine=shl-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10297 + sh3eb) machine=sh-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10298 + sh5el) machine=sh5le-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10299 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10300 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10301 + # The Operating System including object format, if it has switched
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10302 + # to ELF recently, or will in the future.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10303 + case "${UNAME_MACHINE_ARCH}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10304 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10305 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10306 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10307 + | grep -q __ELF__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10308 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10309 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10310 + # Return netbsd for either. FIX?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10311 + os=netbsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10312 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10313 + os=netbsdelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10314 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10315 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10316 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10317 + os=netbsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10318 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10319 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10320 + # The OS release
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10321 + # Debian GNU/NetBSD machines have a different userland, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10322 + # thus, need a distinct triplet. However, they do not need
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10323 + # kernel version information, so it can be replaced with a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10324 + # suitable tag, in the style of linux-gnu.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10325 + case "${UNAME_VERSION}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10326 + Debian*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10327 + release='-gnu'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10328 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10329 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10330 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10331 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10332 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10333 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10334 + # contains redundant information, the shorter form:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10335 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10336 + echo "${machine}-${os}${release}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10337 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10338 + *:Bitrig:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10339 + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10340 + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10341 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10342 + *:OpenBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10343 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10344 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10345 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10346 + *:ekkoBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10347 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10348 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10349 + *:SolidBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10350 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10351 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10352 + macppc:MirBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10353 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10354 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10355 + *:MirBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10356 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10357 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10358 + alpha:OSF1:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10359 + case $UNAME_RELEASE in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10360 + *4.0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10361 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10362 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10363 + *5.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10364 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10365 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10366 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10367 + # According to Compaq, /usr/sbin/psrinfo has been available on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10368 + # OSF/1 and Tru64 systems produced since 1995. I hope that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10369 + # covers most systems running today. This code pipes the CPU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10370 + # types through head -n 1, so we only detect the type of CPU 0.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10371 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10372 + case "$ALPHA_CPU_TYPE" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10373 + "EV4 (21064)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10374 + UNAME_MACHINE="alpha" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10375 + "EV4.5 (21064)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10376 + UNAME_MACHINE="alpha" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10377 + "LCA4 (21066/21068)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10378 + UNAME_MACHINE="alpha" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10379 + "EV5 (21164)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10380 + UNAME_MACHINE="alphaev5" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10381 + "EV5.6 (21164A)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10382 + UNAME_MACHINE="alphaev56" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10383 + "EV5.6 (21164PC)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10384 + UNAME_MACHINE="alphapca56" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10385 + "EV5.7 (21164PC)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10386 + UNAME_MACHINE="alphapca57" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10387 + "EV6 (21264)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10388 + UNAME_MACHINE="alphaev6" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10389 + "EV6.7 (21264A)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10390 + UNAME_MACHINE="alphaev67" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10391 + "EV6.8CB (21264C)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10392 + UNAME_MACHINE="alphaev68" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10393 + "EV6.8AL (21264B)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10394 + UNAME_MACHINE="alphaev68" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10395 + "EV6.8CX (21264D)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10396 + UNAME_MACHINE="alphaev68" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10397 + "EV6.9A (21264/EV69A)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10398 + UNAME_MACHINE="alphaev69" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10399 + "EV7 (21364)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10400 + UNAME_MACHINE="alphaev7" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10401 + "EV7.9 (21364A)")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10402 + UNAME_MACHINE="alphaev79" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10403 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10404 + # A Pn.n version is a patched version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10405 + # A Vn.n version is a released version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10406 + # A Tn.n version is a released field test version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10407 + # A Xn.n version is an unreleased experimental baselevel.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10408 + # 1.2 uses "1.2" for uname -r.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10409 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10410 + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10411 + exitcode=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10412 + trap '' 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10413 + exit $exitcode ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10414 + Alpha\ *:Windows_NT*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10415 + # How do we know it's Interix rather than the generic POSIX subsystem?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10416 + # Should we change UNAME_MACHINE based on the output of uname instead
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10417 + # of the specific Alpha model?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10418 + echo alpha-pc-interix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10419 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10420 + 21064:Windows_NT:50:3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10421 + echo alpha-dec-winnt3.5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10422 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10423 + Amiga*:UNIX_System_V:4.0:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10424 + echo m68k-unknown-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10425 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10426 + *:[Aa]miga[Oo][Ss]:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10427 + echo ${UNAME_MACHINE}-unknown-amigaos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10428 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10429 + *:[Mm]orph[Oo][Ss]:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10430 + echo ${UNAME_MACHINE}-unknown-morphos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10431 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10432 + *:OS/390:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10433 + echo i370-ibm-openedition
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10434 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10435 + *:z/VM:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10436 + echo s390-ibm-zvmoe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10437 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10438 + *:OS400:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10439 + echo powerpc-ibm-os400
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10440 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10441 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10442 + echo arm-acorn-riscix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10443 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10444 + arm*:riscos:*:*|arm*:RISCOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10445 + echo arm-unknown-riscos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10446 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10447 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10448 + echo hppa1.1-hitachi-hiuxmpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10449 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10450 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10451 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10452 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10453 + echo pyramid-pyramid-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10454 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10455 + echo pyramid-pyramid-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10456 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10457 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10458 + NILE*:*:*:dcosx)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10459 + echo pyramid-pyramid-svr4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10460 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10461 + DRS?6000:unix:4.0:6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10462 + echo sparc-icl-nx6
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10463 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10464 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10465 + case `/usr/bin/uname -p` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10466 + sparc) echo sparc-icl-nx7; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10467 + esac ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10468 + s390x:SunOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10469 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10470 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10471 + sun4H:SunOS:5.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10472 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10473 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10474 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10475 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10476 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10477 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10478 + echo i386-pc-auroraux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10479 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10480 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10481 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10482 + SUN_ARCH="i386"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10483 + # If there is a compiler, see if it is configured for 64-bit objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10484 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10485 + # This test works for both compilers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10486 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10487 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10488 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10489 + grep IS_64BIT_ARCH >/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10490 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10491 + SUN_ARCH="x86_64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10492 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10493 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10494 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10495 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10496 + sun4*:SunOS:6*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10497 + # According to config.sub, this is the proper way to canonicalize
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10498 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10499 + # it's likely to be more like Solaris than SunOS4.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10500 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10501 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10502 + sun4*:SunOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10503 + case "`/usr/bin/arch -k`" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10504 + Series*|S4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10505 + UNAME_RELEASE=`uname -v`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10506 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10507 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10508 + # Japanese Language versions have a version number like `4.1.3-JL'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10509 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10510 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10511 + sun3*:SunOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10512 + echo m68k-sun-sunos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10513 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10514 + sun*:*:4.2BSD:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10515 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10516 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10517 + case "`/bin/arch`" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10518 + sun3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10519 + echo m68k-sun-sunos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10520 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10521 + sun4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10522 + echo sparc-sun-sunos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10523 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10524 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10525 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10526 + aushp:SunOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10527 + echo sparc-auspex-sunos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10528 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10529 + # The situation for MiNT is a little confusing. The machine name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10530 + # can be virtually everything (everything which is not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10531 + # "atarist" or "atariste" at least should have a processor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10532 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10533 + # to the lowercase version "mint" (or "freemint"). Finally
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10534 + # the system name "TOS" denotes a system which is actually not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10535 + # MiNT. But MiNT is downward compatible to TOS, so this should
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10536 + # be no problem.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10537 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10538 + echo m68k-atari-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10539 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10540 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10541 + echo m68k-atari-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10542 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10543 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10544 + echo m68k-atari-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10545 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10546 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10547 + echo m68k-milan-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10548 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10549 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10550 + echo m68k-hades-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10551 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10552 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10553 + echo m68k-unknown-mint${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10554 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10555 + m68k:machten:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10556 + echo m68k-apple-machten${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10557 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10558 + powerpc:machten:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10559 + echo powerpc-apple-machten${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10560 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10561 + RISC*:Mach:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10562 + echo mips-dec-mach_bsd4.3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10563 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10564 + RISC*:ULTRIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10565 + echo mips-dec-ultrix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10566 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10567 + VAX*:ULTRIX*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10568 + echo vax-dec-ultrix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10569 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10570 + 2020:CLIX:*:* | 2430:CLIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10571 + echo clipper-intergraph-clix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10572 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10573 + mips:*:*:UMIPS | mips:*:*:RISCos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10574 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10575 + sed 's/^ //' << EOF >$dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10576 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10577 +#include <stdio.h> /* for printf() prototype */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10578 + int main (int argc, char *argv[]) {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10579 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10580 + int main (argc, argv) int argc; char *argv[]; {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10581 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10582 + #if defined (host_mips) && defined (MIPSEB)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10583 + #if defined (SYSTYPE_SYSV)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10584 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10585 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10586 + #if defined (SYSTYPE_SVR4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10587 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10588 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10589 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10590 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10591 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10592 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10593 + exit (-1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10594 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10595 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10596 + $CC_FOR_BUILD -o $dummy $dummy.c &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10597 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10598 + SYSTEM_NAME=`$dummy $dummyarg` &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10599 + { echo "$SYSTEM_NAME"; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10600 + echo mips-mips-riscos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10601 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10602 + Motorola:PowerMAX_OS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10603 + echo powerpc-motorola-powermax
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10604 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10605 + Motorola:*:4.3:PL8-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10606 + echo powerpc-harris-powermax
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10607 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10608 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10609 + echo powerpc-harris-powermax
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10610 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10611 + Night_Hawk:Power_UNIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10612 + echo powerpc-harris-powerunix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10613 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10614 + m88k:CX/UX:7*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10615 + echo m88k-harris-cxux7
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10616 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10617 + m88k:*:4*:R4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10618 + echo m88k-motorola-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10619 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10620 + m88k:*:3*:R3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10621 + echo m88k-motorola-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10622 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10623 + AViiON:dgux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10624 + # DG/UX returns AViiON for all architectures
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10625 + UNAME_PROCESSOR=`/usr/bin/uname -p`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10626 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10627 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10628 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10629 + [ ${TARGET_BINARY_INTERFACE}x = x ]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10630 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10631 + echo m88k-dg-dgux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10632 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10633 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10634 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10635 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10636 + echo i586-dg-dgux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10637 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10638 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10639 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10640 + echo m88k-dolphin-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10641 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10642 + M88*:*:R3*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10643 + # Delta 88k system running SVR3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10644 + echo m88k-motorola-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10645 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10646 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10647 + echo m88k-tektronix-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10648 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10649 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10650 + echo m68k-tektronix-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10651 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10652 + *:IRIX*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10653 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10654 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10655 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10656 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10657 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10658 + i*86:AIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10659 + echo i386-ibm-aix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10660 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10661 + ia64:AIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10662 + if [ -x /usr/bin/oslevel ] ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10663 + IBM_REV=`/usr/bin/oslevel`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10664 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10665 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10666 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10667 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10668 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10669 + *:AIX:2:3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10670 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10671 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10672 + sed 's/^ //' << EOF >$dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10673 + #include <sys/systemcfg.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10674 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10675 + main()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10676 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10677 + if (!__power_pc())
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10678 + exit(1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10679 + puts("powerpc-ibm-aix3.2.5");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10680 + exit(0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10681 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10682 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10683 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10684 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10685 + echo "$SYSTEM_NAME"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10686 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10687 + echo rs6000-ibm-aix3.2.5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10688 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10689 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10690 + echo rs6000-ibm-aix3.2.4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10691 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10692 + echo rs6000-ibm-aix3.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10693 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10694 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10695 + *:AIX:*:[4567])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10696 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10697 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10698 + IBM_ARCH=rs6000
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10699 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10700 + IBM_ARCH=powerpc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10701 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10702 + if [ -x /usr/bin/oslevel ] ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10703 + IBM_REV=`/usr/bin/oslevel`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10704 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10705 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10706 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10707 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10708 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10709 + *:AIX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10710 + echo rs6000-ibm-aix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10711 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10712 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10713 + echo romp-ibm-bsd4.4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10714 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10715 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10716 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10717 + exit ;; # report: romp-ibm BSD 4.3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10718 + *:BOSX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10719 + echo rs6000-bull-bosx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10720 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10721 + DPX/2?00:B.O.S.:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10722 + echo m68k-bull-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10723 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10724 + 9000/[34]??:4.3bsd:1.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10725 + echo m68k-hp-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10726 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10727 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10728 + echo m68k-hp-bsd4.4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10729 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10730 + 9000/[34678]??:HP-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10731 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10732 + case "${UNAME_MACHINE}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10733 + 9000/31? ) HP_ARCH=m68000 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10734 + 9000/[34]?? ) HP_ARCH=m68k ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10735 + 9000/[678][0-9][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10736 + if [ -x /usr/bin/getconf ]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10737 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10738 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10739 + case "${sc_cpu_version}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10740 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10741 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10742 + 532) # CPU_PA_RISC2_0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10743 + case "${sc_kernel_bits}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10744 + 32) HP_ARCH="hppa2.0n" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10745 + 64) HP_ARCH="hppa2.0w" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10746 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10747 + esac ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10748 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10749 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10750 + if [ "${HP_ARCH}" = "" ]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10751 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10752 + sed 's/^ //' << EOF >$dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10753 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10754 + #define _HPUX_SOURCE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10755 + #include <stdlib.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10756 + #include <unistd.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10757 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10758 + int main ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10759 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10760 + #if defined(_SC_KERNEL_BITS)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10761 + long bits = sysconf(_SC_KERNEL_BITS);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10762 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10763 + long cpu = sysconf (_SC_CPU_VERSION);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10764 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10765 + switch (cpu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10766 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10767 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10768 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10769 + case CPU_PA_RISC2_0:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10770 + #if defined(_SC_KERNEL_BITS)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10771 + switch (bits)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10772 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10773 + case 64: puts ("hppa2.0w"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10774 + case 32: puts ("hppa2.0n"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10775 + default: puts ("hppa2.0"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10776 + } break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10777 + #else /* !defined(_SC_KERNEL_BITS) */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10778 + puts ("hppa2.0"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10779 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10780 + default: puts ("hppa1.0"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10781 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10782 + exit (0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10783 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10784 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10785 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10786 + test -z "$HP_ARCH" && HP_ARCH=hppa
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10787 + fi ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10788 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10789 + if [ ${HP_ARCH} = "hppa2.0w" ]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10790 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10791 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10792 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10793 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10794 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10795 + # generating 64-bit code. GNU and HP use different nomenclature:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10796 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10797 + # $ CC_FOR_BUILD=cc ./config.guess
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10798 + # => hppa2.0w-hp-hpux11.23
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10799 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10800 + # => hppa64-hp-hpux11.23
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10801 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10802 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10803 + grep -q __LP64__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10804 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10805 + HP_ARCH="hppa2.0w"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10806 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10807 + HP_ARCH="hppa64"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10808 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10809 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10810 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10811 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10812 + ia64:HP-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10813 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10814 + echo ia64-hp-hpux${HPUX_REV}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10815 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10816 + 3050*:HI-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10817 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10818 + sed 's/^ //' << EOF >$dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10819 + #include <unistd.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10820 + int
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10821 + main ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10822 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10823 + long cpu = sysconf (_SC_CPU_VERSION);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10824 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10825 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10826 + results, however. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10827 + if (CPU_IS_PA_RISC (cpu))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10828 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10829 + switch (cpu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10830 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10831 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10832 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10833 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10834 + default: puts ("hppa-hitachi-hiuxwe2"); break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10835 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10836 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10837 + else if (CPU_IS_HP_MC68K (cpu))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10838 + puts ("m68k-hitachi-hiuxwe2");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10839 + else puts ("unknown-hitachi-hiuxwe2");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10840 + exit (0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10841 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10842 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10843 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10844 + { echo "$SYSTEM_NAME"; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10845 + echo unknown-hitachi-hiuxwe2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10846 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10847 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10848 + echo hppa1.1-hp-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10849 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10850 + 9000/8??:4.3bsd:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10851 + echo hppa1.0-hp-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10852 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10853 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10854 + echo hppa1.0-hp-mpeix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10855 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10856 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10857 + echo hppa1.1-hp-osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10858 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10859 + hp8??:OSF1:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10860 + echo hppa1.0-hp-osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10861 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10862 + i*86:OSF1:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10863 + if [ -x /usr/sbin/sysversion ] ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10864 + echo ${UNAME_MACHINE}-unknown-osf1mk
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10865 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10866 + echo ${UNAME_MACHINE}-unknown-osf1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10867 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10868 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10869 + parisc*:Lites*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10870 + echo hppa1.1-hp-lites
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10871 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10872 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10873 + echo c1-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10874 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10875 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10876 + if getsysinfo -f scalar_acc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10877 + then echo c32-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10878 + else echo c2-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10879 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10880 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10881 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10882 + echo c34-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10883 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10884 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10885 + echo c38-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10886 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10887 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10888 + echo c4-convex-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10889 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10890 + CRAY*Y-MP:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10891 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10892 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10893 + CRAY*[A-Z]90:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10894 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10895 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10896 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10897 + -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10898 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10899 + CRAY*TS:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10900 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10901 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10902 + CRAY*T3E:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10903 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10904 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10905 + CRAY*SV1:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10906 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10907 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10908 + *:UNICOS/mp:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10909 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10910 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10911 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10912 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10913 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10914 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10915 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10916 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10917 + 5000:UNIX_System_V:4.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10918 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10919 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10920 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10921 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10922 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10923 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10924 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10925 + sparc*:BSD/OS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10926 + echo sparc-unknown-bsdi${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10927 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10928 + *:BSD/OS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10929 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10930 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10931 + *:FreeBSD:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10932 + UNAME_PROCESSOR=`/usr/bin/uname -p`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10933 + case ${UNAME_PROCESSOR} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10934 + amd64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10935 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10936 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10937 + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10938 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10939 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10940 + i*:CYGWIN*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10941 + echo ${UNAME_MACHINE}-pc-cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10942 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10943 + *:MINGW64*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10944 + echo ${UNAME_MACHINE}-pc-mingw64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10945 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10946 + *:MINGW*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10947 + echo ${UNAME_MACHINE}-pc-mingw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10948 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10949 + *:MSYS*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10950 + echo ${UNAME_MACHINE}-pc-msys
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10951 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10952 + i*:windows32*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10953 + # uname -m includes "-pc" on this system.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10954 + echo ${UNAME_MACHINE}-mingw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10955 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10956 + i*:PW*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10957 + echo ${UNAME_MACHINE}-pc-pw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10958 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10959 + *:Interix*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10960 + case ${UNAME_MACHINE} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10961 + x86)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10962 + echo i586-pc-interix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10963 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10964 + authenticamd | genuineintel | EM64T)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10965 + echo x86_64-unknown-interix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10966 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10967 + IA64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10968 + echo ia64-unknown-interix${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10969 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10970 + esac ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10971 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10972 + echo i${UNAME_MACHINE}-pc-mks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10973 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10974 + 8664:Windows_NT:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10975 + echo x86_64-pc-mks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10976 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10977 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10978 + # How do we know it's Interix rather than the generic POSIX subsystem?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10979 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10980 + # UNAME_MACHINE based on the output of uname instead of i386?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10981 + echo i586-pc-interix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10982 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10983 + i*:UWIN*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10984 + echo ${UNAME_MACHINE}-pc-uwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10985 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10986 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10987 + echo x86_64-unknown-cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10988 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10989 + p*:CYGWIN*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10990 + echo powerpcle-unknown-cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10991 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10992 + prep*:SunOS:5.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10993 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10994 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10995 + *:GNU:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10996 + # the GNU system
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10997 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10998 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10999 + *:GNU/*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11000 + # other systems with GNU libc and userland
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11001 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11002 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11003 + i*86:Minix:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11004 + echo ${UNAME_MACHINE}-pc-minix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11005 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11006 + aarch64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11007 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11008 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11009 + aarch64_be:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11010 + UNAME_MACHINE=aarch64_be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11011 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11012 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11013 + alpha:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11014 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11015 + EV5) UNAME_MACHINE=alphaev5 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11016 + EV56) UNAME_MACHINE=alphaev56 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11017 + PCA56) UNAME_MACHINE=alphapca56 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11018 + PCA57) UNAME_MACHINE=alphapca56 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11019 + EV6) UNAME_MACHINE=alphaev6 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11020 + EV67) UNAME_MACHINE=alphaev67 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11021 + EV68*) UNAME_MACHINE=alphaev68 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11022 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11023 + objdump --private-headers /bin/sh | grep -q ld.so.1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11024 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11025 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11026 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11027 + arc:Linux:*:* | arceb:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11028 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11029 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11030 + arm*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11031 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11032 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11033 + | grep -q __ARM_EABI__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11034 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11035 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11036 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11037 + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11038 + | grep -q __ARM_PCS_VFP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11039 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11040 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11041 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11042 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11043 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11044 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11045 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11046 + avr32*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11047 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11048 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11049 + cris:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11050 + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11051 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11052 + crisv32:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11053 + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11054 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11055 + frv:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11056 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11057 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11058 + hexagon:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11059 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11060 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11061 + i*86:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11062 + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11063 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11064 + ia64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11065 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11066 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11067 + m32r*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11068 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11069 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11070 + m68*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11071 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11072 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11073 + mips:Linux:*:* | mips64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11074 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11075 + sed 's/^ //' << EOF >$dummy.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11076 + #undef CPU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11077 + #undef ${UNAME_MACHINE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11078 + #undef ${UNAME_MACHINE}el
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11079 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11080 + CPU=${UNAME_MACHINE}el
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11081 + #else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11082 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11083 + CPU=${UNAME_MACHINE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11084 + #else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11085 + CPU=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11086 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11087 + #endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11088 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11089 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11090 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11091 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11092 + openrisc*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11093 + echo or1k-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11094 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11095 + or32:Linux:*:* | or1k*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11096 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11097 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11098 + padre:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11099 + echo sparc-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11100 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11101 + parisc64:Linux:*:* | hppa64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11102 + echo hppa64-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11103 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11104 + parisc:Linux:*:* | hppa:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11105 + # Look for CPU level
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11106 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11107 + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11108 + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11109 + *) echo hppa-unknown-linux-${LIBC} ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11110 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11111 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11112 + ppc64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11113 + echo powerpc64-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11114 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11115 + ppc:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11116 + echo powerpc-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11117 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11118 + ppc64le:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11119 + echo powerpc64le-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11120 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11121 + ppcle:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11122 + echo powerpcle-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11123 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11124 + s390:Linux:*:* | s390x:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11125 + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11126 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11127 + sh64*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11128 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11129 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11130 + sh*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11131 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11132 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11133 + sparc:Linux:*:* | sparc64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11134 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11135 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11136 + tile*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11137 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11138 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11139 + vax:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11140 + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11141 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11142 + x86_64:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11143 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11144 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11145 + xtensa*:Linux:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11146 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11147 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11148 + i*86:DYNIX/ptx:4*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11149 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11150 + # earlier versions are messed up and put the nodename in both
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11151 + # sysname and nodename.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11152 + echo i386-sequent-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11153 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11154 + i*86:UNIX_SV:4.2MP:2.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11155 + # Unixware is an offshoot of SVR4, but it has its own version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11156 + # number series starting with 2...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11157 + # I am not positive that other SVR4 systems won't match this,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11158 + # I just have to hope. -- rms.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11159 + # Use sysv4.2uw... so that sysv4* matches it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11160 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11161 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11162 + i*86:OS/2:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11163 + # If we were able to find `uname', then EMX Unix compatibility
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11164 + # is probably installed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11165 + echo ${UNAME_MACHINE}-pc-os2-emx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11166 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11167 + i*86:XTS-300:*:STOP)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11168 + echo ${UNAME_MACHINE}-unknown-stop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11169 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11170 + i*86:atheos:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11171 + echo ${UNAME_MACHINE}-unknown-atheos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11172 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11173 + i*86:syllable:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11174 + echo ${UNAME_MACHINE}-pc-syllable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11175 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11176 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11177 + echo i386-unknown-lynxos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11178 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11179 + i*86:*DOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11180 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11181 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11182 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11183 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11184 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11185 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11186 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11187 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11188 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11189 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11190 + i*86:*:5:[678]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11191 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11192 + case `/bin/uname -X | grep "^Machine"` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11193 + *486*) UNAME_MACHINE=i486 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11194 + *Pentium) UNAME_MACHINE=i586 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11195 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11196 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11197 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11198 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11199 + i*86:*:3.2:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11200 + if test -f /usr/options/cb.name; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11201 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11202 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11203 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11204 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11205 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11206 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11207 + && UNAME_MACHINE=i586
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11208 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11209 + && UNAME_MACHINE=i686
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11210 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11211 + && UNAME_MACHINE=i686
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11212 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11213 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11214 + echo ${UNAME_MACHINE}-pc-sysv32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11215 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11216 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11217 + pc:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11218 + # Left here for compatibility:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11219 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11220 + # the processor, so we play safe by assuming i586.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11221 + # Note: whatever this is, it MUST be the same as what config.sub
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11222 + # prints for the "djgpp" host, or else GDB configury will decide that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11223 + # this is a cross-build.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11224 + echo i586-pc-msdosdjgpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11225 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11226 + Intel:Mach:3*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11227 + echo i386-pc-mach3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11228 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11229 + paragon:*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11230 + echo i860-intel-osf1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11231 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11232 + i860:*:4.*:*) # i860-SVR4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11233 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11234 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11235 + else # Add other i860-SVR4 vendors below as they are discovered.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11236 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11237 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11238 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11239 + mini*:CTIX:SYS*5:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11240 + # "miniframe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11241 + echo m68010-convergent-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11242 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11243 + mc68k:UNIX:SYSTEM5:3.51m)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11244 + echo m68k-convergent-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11245 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11246 + M680?0:D-NIX:5.3:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11247 + echo m68k-diab-dnix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11248 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11249 + M68*:*:R3V[5678]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11250 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11251 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11252 + OS_REL=''
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11253 + test -r /etc/.relid \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11254 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11255 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11256 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11257 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11258 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11259 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11260 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11261 + && { echo i486-ncr-sysv4; exit; } ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11262 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11263 + OS_REL='.3'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11264 + test -r /etc/.relid \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11265 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11266 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11267 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11268 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11269 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11270 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11271 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11272 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11273 + echo m68k-unknown-lynxos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11274 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11275 + mc68030:UNIX_System_V:4.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11276 + echo m68k-atari-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11277 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11278 + TSUNAMI:LynxOS:2.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11279 + echo sparc-unknown-lynxos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11280 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11281 + rs6000:LynxOS:2.*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11282 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11283 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11284 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11285 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11286 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11287 + SM[BE]S:UNIX_SV:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11288 + echo mips-dde-sysv${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11289 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11290 + RM*:ReliantUNIX-*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11291 + echo mips-sni-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11292 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11293 + RM*:SINIX-*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11294 + echo mips-sni-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11295 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11296 + *:SINIX-*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11297 + if uname -p 2>/dev/null >/dev/null ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11298 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11299 + echo ${UNAME_MACHINE}-sni-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11300 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11301 + echo ns32k-sni-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11302 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11303 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11304 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11305 + # says <Richard.M.Bartel@ccMail.Census.GOV>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11306 + echo i586-unisys-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11307 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11308 + *:UNIX_System_V:4*:FTX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11309 + # From Gerald Hewes <hewes@openmarket.com>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11310 + # How about differentiating between stratus architectures? -djm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11311 + echo hppa1.1-stratus-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11312 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11313 + *:*:*:FTX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11314 + # From seanf@swdc.stratus.com.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11315 + echo i860-stratus-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11316 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11317 + i*86:VOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11318 + # From Paul.Green@stratus.com.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11319 + echo ${UNAME_MACHINE}-stratus-vos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11320 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11321 + *:VOS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11322 + # From Paul.Green@stratus.com.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11323 + echo hppa1.1-stratus-vos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11324 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11325 + mc68*:A/UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11326 + echo m68k-apple-aux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11327 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11328 + news*:NEWS-OS:6*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11329 + echo mips-sony-newsos6
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11330 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11331 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11332 + if [ -d /usr/nec ]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11333 + echo mips-nec-sysv${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11334 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11335 + echo mips-unknown-sysv${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11336 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11337 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11338 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11339 + echo powerpc-be-beos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11340 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11341 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11342 + echo powerpc-apple-beos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11343 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11344 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11345 + echo i586-pc-beos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11346 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11347 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11348 + echo i586-pc-haiku
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11349 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11350 + x86_64:Haiku:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11351 + echo x86_64-unknown-haiku
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11352 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11353 + SX-4:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11354 + echo sx4-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11355 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11356 + SX-5:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11357 + echo sx5-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11358 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11359 + SX-6:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11360 + echo sx6-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11361 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11362 + SX-7:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11363 + echo sx7-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11364 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11365 + SX-8:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11366 + echo sx8-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11367 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11368 + SX-8R:SUPER-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11369 + echo sx8r-nec-superux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11370 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11371 + Power*:Rhapsody:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11372 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11373 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11374 + *:Rhapsody:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11375 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11376 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11377 + *:Darwin:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11378 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11379 + eval $set_cc_for_build
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11380 + if test "$UNAME_PROCESSOR" = unknown ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11381 + UNAME_PROCESSOR=powerpc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11382 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11383 + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11384 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11385 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11386 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11387 + grep IS_64BIT_ARCH >/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11388 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11389 + case $UNAME_PROCESSOR in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11390 + i386) UNAME_PROCESSOR=x86_64 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11391 + powerpc) UNAME_PROCESSOR=powerpc64 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11392 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11393 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11394 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11395 + elif test "$UNAME_PROCESSOR" = i386 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11396 + # Avoid executing cc on OS X 10.9, as it ships with a stub
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11397 + # that puts up a graphical alert prompting to install
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11398 + # developer tools. Any system running Mac OS X 10.7 or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11399 + # later (Darwin 11 and later) is required to have a 64-bit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11400 + # processor. This is not true of the ARM version of Darwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11401 + # that Apple uses in portable devices.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11402 + UNAME_PROCESSOR=x86_64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11403 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11404 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11405 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11406 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11407 + UNAME_PROCESSOR=`uname -p`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11408 + if test "$UNAME_PROCESSOR" = "x86"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11409 + UNAME_PROCESSOR=i386
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11410 + UNAME_MACHINE=pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11411 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11412 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11413 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11414 + *:QNX:*:4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11415 + echo i386-pc-qnx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11416 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11417 + NEO-?:NONSTOP_KERNEL:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11418 + echo neo-tandem-nsk${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11419 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11420 + NSE-*:NONSTOP_KERNEL:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11421 + echo nse-tandem-nsk${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11422 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11423 + NSR-?:NONSTOP_KERNEL:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11424 + echo nsr-tandem-nsk${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11425 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11426 + *:NonStop-UX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11427 + echo mips-compaq-nonstopux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11428 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11429 + BS2000:POSIX*:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11430 + echo bs2000-siemens-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11431 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11432 + DS/*:UNIX_System_V:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11433 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11434 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11435 + *:Plan9:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11436 + # "uname -m" is not consistent, so use $cputype instead. 386
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11437 + # is converted to i386 for consistency with other x86
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11438 + # operating systems.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11439 + if test "$cputype" = "386"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11440 + UNAME_MACHINE=i386
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11441 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11442 + UNAME_MACHINE="$cputype"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11443 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11444 + echo ${UNAME_MACHINE}-unknown-plan9
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11445 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11446 + *:TOPS-10:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11447 + echo pdp10-unknown-tops10
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11448 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11449 + *:TENEX:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11450 + echo pdp10-unknown-tenex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11451 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11452 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11453 + echo pdp10-dec-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11454 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11455 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11456 + echo pdp10-xkl-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11457 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11458 + *:TOPS-20:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11459 + echo pdp10-unknown-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11460 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11461 + *:ITS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11462 + echo pdp10-unknown-its
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11463 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11464 + SEI:*:*:SEIUX)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11465 + echo mips-sei-seiux${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11466 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11467 + *:DragonFly:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11468 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11469 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11470 + *:*VMS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11471 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11472 + case "${UNAME_MACHINE}" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11473 + A*) echo alpha-dec-vms ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11474 + I*) echo ia64-dec-vms ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11475 + V*) echo vax-dec-vms ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11476 + esac ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11477 + *:XENIX:*:SysV)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11478 + echo i386-pc-xenix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11479 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11480 + i*86:skyos:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11481 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11482 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11483 + i*86:rdos:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11484 + echo ${UNAME_MACHINE}-pc-rdos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11485 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11486 + i*86:AROS:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11487 + echo ${UNAME_MACHINE}-pc-aros
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11488 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11489 + x86_64:VMkernel:*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11490 + echo ${UNAME_MACHINE}-unknown-esx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11491 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11492 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11493 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11494 +cat >&2 <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11495 +$0: unable to guess system type
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11496 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11497 +This script, last modified $timestamp, has failed to recognize
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11498 +the operating system you are using. It is advised that you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11499 +download the most up to date version of the config scripts from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11500 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11501 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11502 +and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11503 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11504 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11505 +If the version you run ($0) is already up to date, please
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11506 +send the following data and any information you think might be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11507 +pertinent to <config-patches@gnu.org> in order to provide the needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11508 +information to handle your system.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11509 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11510 +config.guess timestamp = $timestamp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11511 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11512 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11513 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11514 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11515 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11517 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11518 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11519 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11520 +hostinfo = `(hostinfo) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11521 +/bin/universe = `(/bin/universe) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11522 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11523 +/bin/arch = `(/bin/arch) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11524 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11525 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11526 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11527 +UNAME_MACHINE = ${UNAME_MACHINE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11528 +UNAME_RELEASE = ${UNAME_RELEASE}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11529 +UNAME_SYSTEM = ${UNAME_SYSTEM}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11530 +UNAME_VERSION = ${UNAME_VERSION}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11531 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11532 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11533 +exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11534 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11535 +# Local variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11536 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11537 +# time-stamp-start: "timestamp='"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11538 +# time-stamp-format: "%:y-%02m-%02d"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11539 +# time-stamp-end: "'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11540 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11541 diff -uNr a/config.sub b/config.sub
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11542 --- a/config.sub 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11543 +++ b/config.sub 2014-12-12 15:22:27.586240602 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11544 @@ -0,0 +1,1799 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11545 +#! /bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11546 +# Configuration validation subroutine script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11547 +# Copyright 1992-2014 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11548 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11549 +timestamp='2014-09-11'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11550 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11551 +# This file is free software; you can redistribute it and/or modify it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11552 +# under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11553 +# the Free Software Foundation; either version 3 of the License, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11554 +# (at your option) any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11555 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11556 +# This program is distributed in the hope that it will be useful, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11557 +# WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11558 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11559 +# General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11560 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11561 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11562 +# along with this program; if not, see <http://www.gnu.org/licenses/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11563 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11564 +# As a special exception to the GNU General Public License, if you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11565 +# distribute this file as part of a program that contains a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11566 +# configuration script generated by Autoconf, you may include it under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11567 +# the same distribution terms that you use for the rest of that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11568 +# program. This Exception is an additional permission under section 7
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11569 +# of the GNU General Public License, version 3 ("GPLv3").
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11570 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11571 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11572 +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11573 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11574 +# Configuration subroutine to validate and canonicalize a configuration type.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11575 +# Supply the specified configuration type as an argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11576 +# If it is invalid, we print an error message on stderr and exit with code 1.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11577 +# Otherwise, we print the canonical config type on stdout and succeed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11578 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11579 +# You can get the latest version of this script from:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11580 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11581 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11582 +# This file is supposed to be the same for all GNU packages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11583 +# and recognize all the CPU types, system types and aliases
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11584 +# that are meaningful with *any* GNU software.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11585 +# Each package is responsible for reporting which valid configurations
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11586 +# it does not support. The user should be able to distinguish
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11587 +# a failure to support a valid configuration from a meaningless
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11588 +# configuration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11589 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11590 +# The goal of this file is to map all the various variations of a given
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11591 +# machine specification into a single specification in the form:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11592 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11593 +# or in some cases, the newer four-part form:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11594 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11595 +# It is wrong to echo any other type of specification.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11596 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11597 +me=`echo "$0" | sed -e 's,.*/,,'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11598 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11599 +usage="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11600 +Usage: $0 [OPTION] CPU-MFR-OPSYS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11601 + $0 [OPTION] ALIAS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11602 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11603 +Canonicalize a configuration name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11604 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11605 +Operation modes:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11606 + -h, --help print this help, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11607 + -t, --time-stamp print date of last modification, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11608 + -v, --version print version number, then exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11609 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11610 +Report bugs and patches to <config-patches@gnu.org>."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11611 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11612 +version="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11613 +GNU config.sub ($timestamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11614 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11615 +Copyright 1992-2014 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11616 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11617 +This is free software; see the source for copying conditions. There is NO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11618 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11619 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11620 +help="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11621 +Try \`$me --help' for more information."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11622 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11623 +# Parse command line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11624 +while test $# -gt 0 ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11625 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11626 + --time-stamp | --time* | -t )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11627 + echo "$timestamp" ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11628 + --version | -v )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11629 + echo "$version" ; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11630 + --help | --h* | -h )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11631 + echo "$usage"; exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11632 + -- ) # Stop option processing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11633 + shift; break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11634 + - ) # Use stdin as input.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11635 + break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11636 + -* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11637 + echo "$me: invalid option $1$help"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11638 + exit 1 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11639 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11640 + *local*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11641 + # First pass through any local machine types.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11642 + echo $1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11643 + exit ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11644 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11645 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11646 + break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11647 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11648 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11650 +case $# in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11651 + 0) echo "$me: missing argument$help" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11652 + exit 1;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11653 + 1) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11654 + *) echo "$me: too many arguments$help" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11655 + exit 1;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11656 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11657 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11658 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11659 +# Here we must recognize all the valid KERNEL-OS combinations.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11660 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11661 +case $maybe_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11662 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11663 + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11664 + knetbsd*-gnu* | netbsd*-gnu* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11665 + kopensolaris*-gnu* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11666 + storm-chaos* | os2-emx* | rtmk-nova*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11667 + os=-$maybe_os
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11668 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11669 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11670 + android-linux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11671 + os=-linux-android
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11672 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11673 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11674 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11675 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11676 + if [ $basic_machine != $1 ]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11677 + then os=`echo $1 | sed 's/.*-/-/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11678 + else os=; fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11679 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11680 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11681 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11682 +### Let's recognize common machines as not being operating systems so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11683 +### that things like config.sub decstation-3100 work. We also
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11684 +### recognize some manufacturers as not being operating systems, so we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11685 +### can provide default operating systems below.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11686 +case $os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11687 + -sun*os*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11688 + # Prevent following clause from handling this invalid input.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11689 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11690 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11691 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11692 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11693 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11694 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11695 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11696 + -apple | -axis | -knuth | -cray | -microblaze*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11697 + os=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11698 + basic_machine=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11699 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11700 + -bluegene*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11701 + os=-cnk
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11702 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11703 + -sim | -cisco | -oki | -wec | -winbond)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11704 + os=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11705 + basic_machine=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11706 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11707 + -scout)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11708 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11709 + -wrs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11710 + os=-vxworks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11711 + basic_machine=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11712 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11713 + -chorusos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11714 + os=-chorusos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11715 + basic_machine=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11716 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11717 + -chorusrdb)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11718 + os=-chorusrdb
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11719 + basic_machine=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11720 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11721 + -hiux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11722 + os=-hiuxwe2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11723 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11724 + -sco6)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11725 + os=-sco5v6
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11726 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11727 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11728 + -sco5)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11729 + os=-sco3.2v5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11730 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11731 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11732 + -sco4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11733 + os=-sco3.2v4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11734 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11735 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11736 + -sco3.2.[4-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11737 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11738 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11739 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11740 + -sco3.2v[4-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11741 + # Don't forget version if it is 3.2v4 or newer.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11742 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11743 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11744 + -sco5v6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11745 + # Don't forget version if it is 3.2v4 or newer.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11746 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11747 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11748 + -sco*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11749 + os=-sco3.2v2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11750 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11751 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11752 + -udk*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11753 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11754 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11755 + -isc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11756 + os=-isc2.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11757 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11758 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11759 + -clix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11760 + basic_machine=clipper-intergraph
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11761 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11762 + -isc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11763 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11764 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11765 + -lynx*178)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11766 + os=-lynxos178
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11767 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11768 + -lynx*5)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11769 + os=-lynxos5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11770 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11771 + -lynx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11772 + os=-lynxos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11773 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11774 + -ptx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11775 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11776 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11777 + -windowsnt*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11778 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11779 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11780 + -psos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11781 + os=-psos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11782 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11783 + -mint | -mint[0-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11784 + basic_machine=m68k-atari
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11785 + os=-mint
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11786 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11787 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11788 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11789 +# Decode aliases for certain CPU-COMPANY combinations.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11790 +case $basic_machine in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11791 + # Recognize the basic CPU types without company name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11792 + # Some are omitted here because they have special meanings below.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11793 + 1750a | 580 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11794 + | a29k \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11795 + | aarch64 | aarch64_be \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11796 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11797 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11798 + | am33_2.0 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11799 + | arc | arceb \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11800 + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11801 + | avr | avr32 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11802 + | be32 | be64 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11803 + | bfin \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11804 + | c4x | c8051 | clipper \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11805 + | d10v | d30v | dlx | dsp16xx \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11806 + | epiphany \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11807 + | fido | fr30 | frv \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11808 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11809 + | hexagon \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11810 + | i370 | i860 | i960 | ia64 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11811 + | ip2k | iq2000 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11812 + | k1om \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11813 + | le32 | le64 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11814 + | lm32 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11815 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11816 + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11817 + | mips | mipsbe | mipseb | mipsel | mipsle \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11818 + | mips16 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11819 + | mips64 | mips64el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11820 + | mips64octeon | mips64octeonel \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11821 + | mips64orion | mips64orionel \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11822 + | mips64r5900 | mips64r5900el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11823 + | mips64vr | mips64vrel \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11824 + | mips64vr4100 | mips64vr4100el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11825 + | mips64vr4300 | mips64vr4300el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11826 + | mips64vr5000 | mips64vr5000el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11827 + | mips64vr5900 | mips64vr5900el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11828 + | mipsisa32 | mipsisa32el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11829 + | mipsisa32r2 | mipsisa32r2el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11830 + | mipsisa32r6 | mipsisa32r6el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11831 + | mipsisa64 | mipsisa64el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11832 + | mipsisa64r2 | mipsisa64r2el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11833 + | mipsisa64r6 | mipsisa64r6el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11834 + | mipsisa64sb1 | mipsisa64sb1el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11835 + | mipsisa64sr71k | mipsisa64sr71kel \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11836 + | mipsr5900 | mipsr5900el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11837 + | mipstx39 | mipstx39el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11838 + | mn10200 | mn10300 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11839 + | moxie \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11840 + | mt \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11841 + | msp430 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11842 + | nds32 | nds32le | nds32be \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11843 + | nios | nios2 | nios2eb | nios2el \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11844 + | ns16k | ns32k \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11845 + | open8 | or1k | or1knd | or32 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11846 + | pdp10 | pdp11 | pj | pjl \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11847 + | powerpc | powerpc64 | powerpc64le | powerpcle \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11848 + | pyramid \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11849 + | riscv32 | riscv64 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11850 + | rl78 | rx \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11851 + | score \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11852 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11853 + | sh64 | sh64le \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11854 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11855 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11856 + | spu \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11857 + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11858 + | ubicom32 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11859 + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11860 + | we32k \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11861 + | x86 | xc16x | xstormy16 | xtensa \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11862 + | z8k | z80)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11863 + basic_machine=$basic_machine-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11864 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11865 + c54x)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11866 + basic_machine=tic54x-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11867 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11868 + c55x)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11869 + basic_machine=tic55x-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11870 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11871 + c6x)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11872 + basic_machine=tic6x-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11873 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11874 + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11875 + basic_machine=$basic_machine-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11876 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11877 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11878 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11879 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11880 + ms1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11881 + basic_machine=mt-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11882 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11883 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11884 + strongarm | thumb | xscale)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11885 + basic_machine=arm-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11886 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11887 + xgate)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11888 + basic_machine=$basic_machine-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11889 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11890 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11891 + xscaleeb)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11892 + basic_machine=armeb-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11893 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11894 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11895 + xscaleel)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11896 + basic_machine=armel-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11897 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11898 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11899 + # We use `pc' rather than `unknown'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11900 + # because (1) that's what they normally are, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11901 + # (2) the word "unknown" tends to confuse beginning users.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11902 + i*86 | x86_64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11903 + basic_machine=$basic_machine-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11904 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11905 + # Object if more than one company name word.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11906 + *-*-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11907 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11908 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11909 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11910 + # Recognize the basic CPU types with company name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11911 + 580-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11912 + | a29k-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11913 + | aarch64-* | aarch64_be-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11914 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11915 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11916 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11917 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11918 + | avr-* | avr32-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11919 + | be32-* | be64-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11920 + | bfin-* | bs2000-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11921 + | c[123]* | c30-* | [cjt]90-* | c4x-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11922 + | c8051-* | clipper-* | craynv-* | cydra-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11923 + | d10v-* | d30v-* | dlx-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11924 + | elxsi-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11925 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11926 + | h8300-* | h8500-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11927 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11928 + | hexagon-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11929 + | i*86-* | i860-* | i960-* | ia64-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11930 + | ip2k-* | iq2000-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11931 + | k1om-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11932 + | le32-* | le64-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11933 + | lm32-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11934 + | m32c-* | m32r-* | m32rle-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11935 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11936 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11937 + | microblaze-* | microblazeel-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11938 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11939 + | mips16-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11940 + | mips64-* | mips64el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11941 + | mips64octeon-* | mips64octeonel-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11942 + | mips64orion-* | mips64orionel-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11943 + | mips64r5900-* | mips64r5900el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11944 + | mips64vr-* | mips64vrel-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11945 + | mips64vr4100-* | mips64vr4100el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11946 + | mips64vr4300-* | mips64vr4300el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11947 + | mips64vr5000-* | mips64vr5000el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11948 + | mips64vr5900-* | mips64vr5900el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11949 + | mipsisa32-* | mipsisa32el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11950 + | mipsisa32r2-* | mipsisa32r2el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11951 + | mipsisa32r6-* | mipsisa32r6el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11952 + | mipsisa64-* | mipsisa64el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11953 + | mipsisa64r2-* | mipsisa64r2el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11954 + | mipsisa64r6-* | mipsisa64r6el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11955 + | mipsisa64sb1-* | mipsisa64sb1el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11956 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11957 + | mipsr5900-* | mipsr5900el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11958 + | mipstx39-* | mipstx39el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11959 + | mmix-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11960 + | mt-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11961 + | msp430-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11962 + | nds32-* | nds32le-* | nds32be-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11963 + | nios-* | nios2-* | nios2eb-* | nios2el-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11964 + | none-* | np1-* | ns16k-* | ns32k-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11965 + | open8-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11966 + | or1k*-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11967 + | orion-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11968 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11969 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11970 + | pyramid-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11971 + | rl78-* | romp-* | rs6000-* | rx-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11972 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11973 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11974 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11975 + | sparclite-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11976 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11977 + | tahoe-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11978 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11979 + | tile*-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11980 + | tron-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11981 + | ubicom32-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11982 + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11983 + | vax-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11984 + | we32k-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11985 + | x86-* | x86_64-* | xc16x-* | xps100-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11986 + | xstormy16-* | xtensa*-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11987 + | ymp-* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11988 + | z8k-* | z80-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11989 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11990 + # Recognize the basic CPU types without company name, with glob match.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11991 + xtensa*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11992 + basic_machine=$basic_machine-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11993 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11994 + # Recognize the various machine names and aliases which stand
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11995 + # for a CPU type and a company and sometimes even an OS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11996 + 386bsd)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11997 + basic_machine=i386-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11998 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11999 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12000 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12001 + basic_machine=m68000-att
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12002 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12003 + 3b*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12004 + basic_machine=we32k-att
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12005 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12006 + a29khif)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12007 + basic_machine=a29k-amd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12008 + os=-udi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12009 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12010 + abacus)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12011 + basic_machine=abacus-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12012 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12013 + adobe68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12014 + basic_machine=m68010-adobe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12015 + os=-scout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12016 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12017 + alliant | fx80)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12018 + basic_machine=fx80-alliant
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12019 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12020 + altos | altos3068)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12021 + basic_machine=m68k-altos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12022 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12023 + am29k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12024 + basic_machine=a29k-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12025 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12026 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12027 + amd64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12028 + basic_machine=x86_64-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12029 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12030 + amd64-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12031 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12032 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12033 + amdahl)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12034 + basic_machine=580-amdahl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12035 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12036 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12037 + amiga | amiga-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12038 + basic_machine=m68k-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12039 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12040 + amigaos | amigados)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12041 + basic_machine=m68k-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12042 + os=-amigaos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12043 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12044 + amigaunix | amix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12045 + basic_machine=m68k-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12046 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12047 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12048 + apollo68)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12049 + basic_machine=m68k-apollo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12050 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12051 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12052 + apollo68bsd)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12053 + basic_machine=m68k-apollo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12054 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12055 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12056 + aros)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12057 + basic_machine=i386-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12058 + os=-aros
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12059 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12060 + aux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12061 + basic_machine=m68k-apple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12062 + os=-aux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12063 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12064 + balance)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12065 + basic_machine=ns32k-sequent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12066 + os=-dynix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12067 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12068 + blackfin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12069 + basic_machine=bfin-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12070 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12071 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12072 + blackfin-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12073 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12074 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12075 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12076 + bluegene*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12077 + basic_machine=powerpc-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12078 + os=-cnk
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12079 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12080 + c54x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12081 + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12082 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12083 + c55x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12084 + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12085 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12086 + c6x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12087 + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12088 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12089 + c90)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12090 + basic_machine=c90-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12091 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12092 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12093 + cegcc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12094 + basic_machine=arm-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12095 + os=-cegcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12096 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12097 + convex-c1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12098 + basic_machine=c1-convex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12099 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12100 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12101 + convex-c2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12102 + basic_machine=c2-convex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12103 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12104 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12105 + convex-c32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12106 + basic_machine=c32-convex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12107 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12108 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12109 + convex-c34)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12110 + basic_machine=c34-convex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12111 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12112 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12113 + convex-c38)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12114 + basic_machine=c38-convex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12115 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12116 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12117 + cray | j90)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12118 + basic_machine=j90-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12119 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12120 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12121 + craynv)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12122 + basic_machine=craynv-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12123 + os=-unicosmp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12124 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12125 + cr16 | cr16-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12126 + basic_machine=cr16-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12127 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12128 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12129 + crds | unos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12130 + basic_machine=m68k-crds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12131 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12132 + crisv32 | crisv32-* | etraxfs*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12133 + basic_machine=crisv32-axis
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12134 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12135 + cris | cris-* | etrax*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12136 + basic_machine=cris-axis
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12137 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12138 + crx)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12139 + basic_machine=crx-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12140 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12141 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12142 + da30 | da30-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12143 + basic_machine=m68k-da30
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12144 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12145 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12146 + basic_machine=mips-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12147 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12148 + decsystem10* | dec10*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12149 + basic_machine=pdp10-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12150 + os=-tops10
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12151 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12152 + decsystem20* | dec20*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12153 + basic_machine=pdp10-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12154 + os=-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12155 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12156 + delta | 3300 | motorola-3300 | motorola-delta \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12157 + | 3300-motorola | delta-motorola)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12158 + basic_machine=m68k-motorola
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12159 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12160 + delta88)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12161 + basic_machine=m88k-motorola
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12162 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12163 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12164 + dicos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12165 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12166 + os=-dicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12167 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12168 + djgpp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12169 + basic_machine=i586-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12170 + os=-msdosdjgpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12171 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12172 + dpx20 | dpx20-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12173 + basic_machine=rs6000-bull
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12174 + os=-bosx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12175 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12176 + dpx2* | dpx2*-bull)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12177 + basic_machine=m68k-bull
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12178 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12179 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12180 + ebmon29k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12181 + basic_machine=a29k-amd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12182 + os=-ebmon
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12183 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12184 + elxsi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12185 + basic_machine=elxsi-elxsi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12186 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12187 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12188 + encore | umax | mmax)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12189 + basic_machine=ns32k-encore
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12190 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12191 + es1800 | OSE68k | ose68k | ose | OSE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12192 + basic_machine=m68k-ericsson
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12193 + os=-ose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12194 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12195 + fx2800)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12196 + basic_machine=i860-alliant
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12197 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12198 + genix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12199 + basic_machine=ns32k-ns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12200 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12201 + gmicro)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12202 + basic_machine=tron-gmicro
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12203 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12204 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12205 + go32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12206 + basic_machine=i386-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12207 + os=-go32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12208 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12209 + h3050r* | hiux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12210 + basic_machine=hppa1.1-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12211 + os=-hiuxwe2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12212 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12213 + h8300hms)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12214 + basic_machine=h8300-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12215 + os=-hms
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12216 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12217 + h8300xray)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12218 + basic_machine=h8300-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12219 + os=-xray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12220 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12221 + h8500hms)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12222 + basic_machine=h8500-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12223 + os=-hms
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12224 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12225 + harris)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12226 + basic_machine=m88k-harris
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12227 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12228 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12229 + hp300-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12230 + basic_machine=m68k-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12231 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12232 + hp300bsd)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12233 + basic_machine=m68k-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12234 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12235 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12236 + hp300hpux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12237 + basic_machine=m68k-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12238 + os=-hpux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12239 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12240 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12241 + basic_machine=hppa1.0-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12242 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12243 + hp9k2[0-9][0-9] | hp9k31[0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12244 + basic_machine=m68000-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12245 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12246 + hp9k3[2-9][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12247 + basic_machine=m68k-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12248 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12249 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12250 + basic_machine=hppa1.0-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12251 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12252 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12253 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12254 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12255 + hp9k78[0-9] | hp78[0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12256 + # FIXME: really hppa2.0-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12257 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12258 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12259 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12260 + # FIXME: really hppa2.0-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12261 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12262 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12263 + hp9k8[0-9][13679] | hp8[0-9][13679])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12264 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12265 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12266 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12267 + basic_machine=hppa1.0-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12268 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12269 + hppa-next)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12270 + os=-nextstep3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12271 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12272 + hppaosf)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12273 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12274 + os=-osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12275 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12276 + hppro)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12277 + basic_machine=hppa1.1-hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12278 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12279 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12280 + i370-ibm* | ibm*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12281 + basic_machine=i370-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12282 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12283 + i*86v32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12284 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12285 + os=-sysv32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12286 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12287 + i*86v4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12288 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12289 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12290 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12291 + i*86v)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12292 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12293 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12294 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12295 + i*86sol2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12296 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12297 + os=-solaris2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12298 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12299 + i386mach)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12300 + basic_machine=i386-mach
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12301 + os=-mach
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12302 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12303 + i386-vsta | vsta)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12304 + basic_machine=i386-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12305 + os=-vsta
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12306 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12307 + iris | iris4d)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12308 + basic_machine=mips-sgi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12309 + case $os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12310 + -irix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12311 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12312 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12313 + os=-irix4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12314 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12315 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12316 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12317 + isi68 | isi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12318 + basic_machine=m68k-isi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12319 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12320 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12321 + m68knommu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12322 + basic_machine=m68k-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12323 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12324 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12325 + m68knommu-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12326 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12327 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12328 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12329 + m88k-omron*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12330 + basic_machine=m88k-omron
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12331 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12332 + magnum | m3230)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12333 + basic_machine=mips-mips
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12334 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12335 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12336 + merlin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12337 + basic_machine=ns32k-utek
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12338 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12339 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12340 + microblaze*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12341 + basic_machine=microblaze-xilinx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12342 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12343 + mingw64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12344 + basic_machine=x86_64-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12345 + os=-mingw64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12346 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12347 + mingw32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12348 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12349 + os=-mingw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12350 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12351 + mingw32ce)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12352 + basic_machine=arm-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12353 + os=-mingw32ce
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12354 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12355 + miniframe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12356 + basic_machine=m68000-convergent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12357 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12358 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12359 + basic_machine=m68k-atari
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12360 + os=-mint
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12361 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12362 + mips3*-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12363 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12364 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12365 + mips3*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12366 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12367 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12368 + monitor)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12369 + basic_machine=m68k-rom68k
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12370 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12371 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12372 + morphos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12373 + basic_machine=powerpc-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12374 + os=-morphos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12375 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12376 + moxiebox)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12377 + basic_machine=moxie-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12378 + os=-moxiebox
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12379 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12380 + msdos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12381 + basic_machine=i386-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12382 + os=-msdos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12383 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12384 + ms1-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12385 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12386 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12387 + msys)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12388 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12389 + os=-msys
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12390 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12391 + mvs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12392 + basic_machine=i370-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12393 + os=-mvs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12394 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12395 + nacl)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12396 + basic_machine=le32-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12397 + os=-nacl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12398 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12399 + ncr3000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12400 + basic_machine=i486-ncr
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12401 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12402 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12403 + netbsd386)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12404 + basic_machine=i386-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12405 + os=-netbsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12406 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12407 + netwinder)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12408 + basic_machine=armv4l-rebel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12409 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12410 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12411 + news | news700 | news800 | news900)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12412 + basic_machine=m68k-sony
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12413 + os=-newsos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12414 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12415 + news1000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12416 + basic_machine=m68030-sony
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12417 + os=-newsos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12418 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12419 + news-3600 | risc-news)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12420 + basic_machine=mips-sony
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12421 + os=-newsos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12422 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12423 + necv70)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12424 + basic_machine=v70-nec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12425 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12426 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12427 + next | m*-next )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12428 + basic_machine=m68k-next
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12429 + case $os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12430 + -nextstep* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12431 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12432 + -ns2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12433 + os=-nextstep2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12434 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12435 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12436 + os=-nextstep3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12437 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12438 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12439 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12440 + nh3000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12441 + basic_machine=m68k-harris
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12442 + os=-cxux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12443 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12444 + nh[45]000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12445 + basic_machine=m88k-harris
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12446 + os=-cxux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12447 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12448 + nindy960)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12449 + basic_machine=i960-intel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12450 + os=-nindy
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12451 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12452 + mon960)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12453 + basic_machine=i960-intel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12454 + os=-mon960
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12455 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12456 + nonstopux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12457 + basic_machine=mips-compaq
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12458 + os=-nonstopux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12459 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12460 + np1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12461 + basic_machine=np1-gould
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12462 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12463 + neo-tandem)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12464 + basic_machine=neo-tandem
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12465 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12466 + nse-tandem)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12467 + basic_machine=nse-tandem
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12468 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12469 + nsr-tandem)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12470 + basic_machine=nsr-tandem
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12471 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12472 + op50n-* | op60c-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12473 + basic_machine=hppa1.1-oki
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12474 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12475 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12476 + openrisc | openrisc-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12477 + basic_machine=or32-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12478 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12479 + os400)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12480 + basic_machine=powerpc-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12481 + os=-os400
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12482 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12483 + OSE68000 | ose68000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12484 + basic_machine=m68000-ericsson
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12485 + os=-ose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12486 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12487 + os68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12488 + basic_machine=m68k-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12489 + os=-os68k
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12490 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12491 + pa-hitachi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12492 + basic_machine=hppa1.1-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12493 + os=-hiuxwe2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12494 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12495 + paragon)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12496 + basic_machine=i860-intel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12497 + os=-osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12498 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12499 + parisc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12500 + basic_machine=hppa-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12501 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12502 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12503 + parisc-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12504 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12505 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12506 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12507 + pbd)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12508 + basic_machine=sparc-tti
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12509 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12510 + pbb)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12511 + basic_machine=m68k-tti
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12512 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12513 + pc532 | pc532-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12514 + basic_machine=ns32k-pc532
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12515 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12516 + pc98)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12517 + basic_machine=i386-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12518 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12519 + pc98-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12520 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12521 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12522 + pentium | p5 | k5 | k6 | nexgen | viac3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12523 + basic_machine=i586-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12524 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12525 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12526 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12527 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12528 + pentiumii | pentium2 | pentiumiii | pentium3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12529 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12530 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12531 + pentium4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12532 + basic_machine=i786-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12533 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12534 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12535 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12536 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12537 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12538 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12539 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12540 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12541 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12542 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12543 + pentium4-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12544 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12545 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12546 + pn)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12547 + basic_machine=pn-gould
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12548 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12549 + power) basic_machine=power-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12550 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12551 + ppc | ppcbe) basic_machine=powerpc-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12552 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12553 + ppc-* | ppcbe-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12554 + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12555 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12556 + ppcle | powerpclittle | ppc-le | powerpc-little)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12557 + basic_machine=powerpcle-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12558 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12559 + ppcle-* | powerpclittle-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12560 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12561 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12562 + ppc64) basic_machine=powerpc64-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12563 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12564 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12565 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12566 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12567 + basic_machine=powerpc64le-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12568 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12569 + ppc64le-* | powerpc64little-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12570 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12571 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12572 + ps2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12573 + basic_machine=i386-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12574 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12575 + pw32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12576 + basic_machine=i586-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12577 + os=-pw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12578 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12579 + rdos | rdos64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12580 + basic_machine=x86_64-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12581 + os=-rdos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12582 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12583 + rdos32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12584 + basic_machine=i386-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12585 + os=-rdos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12586 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12587 + rom68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12588 + basic_machine=m68k-rom68k
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12589 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12590 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12591 + rm[46]00)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12592 + basic_machine=mips-siemens
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12593 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12594 + rtpc | rtpc-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12595 + basic_machine=romp-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12596 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12597 + s390 | s390-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12598 + basic_machine=s390-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12599 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12600 + s390x | s390x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12601 + basic_machine=s390x-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12602 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12603 + sa29200)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12604 + basic_machine=a29k-amd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12605 + os=-udi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12606 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12607 + sb1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12608 + basic_machine=mipsisa64sb1-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12609 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12610 + sb1el)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12611 + basic_machine=mipsisa64sb1el-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12612 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12613 + sde)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12614 + basic_machine=mipsisa32-sde
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12615 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12616 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12617 + sei)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12618 + basic_machine=mips-sei
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12619 + os=-seiux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12620 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12621 + sequent)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12622 + basic_machine=i386-sequent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12623 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12624 + sh)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12625 + basic_machine=sh-hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12626 + os=-hms
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12627 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12628 + sh5el)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12629 + basic_machine=sh5le-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12630 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12631 + sh64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12632 + basic_machine=sh64-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12633 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12634 + sparclite-wrs | simso-wrs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12635 + basic_machine=sparclite-wrs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12636 + os=-vxworks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12637 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12638 + sps7)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12639 + basic_machine=m68k-bull
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12640 + os=-sysv2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12641 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12642 + spur)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12643 + basic_machine=spur-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12644 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12645 + st2000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12646 + basic_machine=m68k-tandem
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12647 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12648 + stratus)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12649 + basic_machine=i860-stratus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12650 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12651 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12652 + strongarm-* | thumb-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12653 + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12654 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12655 + sun2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12656 + basic_machine=m68000-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12657 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12658 + sun2os3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12659 + basic_machine=m68000-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12660 + os=-sunos3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12661 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12662 + sun2os4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12663 + basic_machine=m68000-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12664 + os=-sunos4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12665 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12666 + sun3os3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12667 + basic_machine=m68k-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12668 + os=-sunos3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12669 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12670 + sun3os4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12671 + basic_machine=m68k-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12672 + os=-sunos4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12673 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12674 + sun4os3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12675 + basic_machine=sparc-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12676 + os=-sunos3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12677 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12678 + sun4os4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12679 + basic_machine=sparc-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12680 + os=-sunos4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12681 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12682 + sun4sol2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12683 + basic_machine=sparc-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12684 + os=-solaris2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12685 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12686 + sun3 | sun3-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12687 + basic_machine=m68k-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12688 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12689 + sun4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12690 + basic_machine=sparc-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12691 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12692 + sun386 | sun386i | roadrunner)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12693 + basic_machine=i386-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12694 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12695 + sv1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12696 + basic_machine=sv1-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12697 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12698 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12699 + symmetry)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12700 + basic_machine=i386-sequent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12701 + os=-dynix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12702 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12703 + t3e)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12704 + basic_machine=alphaev5-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12705 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12706 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12707 + t90)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12708 + basic_machine=t90-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12709 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12710 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12711 + tile*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12712 + basic_machine=$basic_machine-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12713 + os=-linux-gnu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12714 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12715 + tx39)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12716 + basic_machine=mipstx39-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12717 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12718 + tx39el)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12719 + basic_machine=mipstx39el-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12720 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12721 + toad1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12722 + basic_machine=pdp10-xkl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12723 + os=-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12724 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12725 + tower | tower-32)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12726 + basic_machine=m68k-ncr
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12727 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12728 + tpf)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12729 + basic_machine=s390x-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12730 + os=-tpf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12731 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12732 + udi29k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12733 + basic_machine=a29k-amd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12734 + os=-udi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12735 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12736 + ultra3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12737 + basic_machine=a29k-nyu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12738 + os=-sym1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12739 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12740 + v810 | necv810)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12741 + basic_machine=v810-nec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12742 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12743 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12744 + vaxv)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12745 + basic_machine=vax-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12746 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12747 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12748 + vms)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12749 + basic_machine=vax-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12750 + os=-vms
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12751 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12752 + vpp*|vx|vx-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12753 + basic_machine=f301-fujitsu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12754 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12755 + vxworks960)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12756 + basic_machine=i960-wrs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12757 + os=-vxworks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12758 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12759 + vxworks68)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12760 + basic_machine=m68k-wrs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12761 + os=-vxworks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12762 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12763 + vxworks29k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12764 + basic_machine=a29k-wrs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12765 + os=-vxworks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12766 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12767 + w65*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12768 + basic_machine=w65-wdc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12769 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12770 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12771 + w89k-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12772 + basic_machine=hppa1.1-winbond
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12773 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12774 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12775 + xbox)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12776 + basic_machine=i686-pc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12777 + os=-mingw32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12778 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12779 + xps | xps100)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12780 + basic_machine=xps100-honeywell
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12781 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12782 + xscale-* | xscalee[bl]-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12783 + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12784 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12785 + ymp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12786 + basic_machine=ymp-cray
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12787 + os=-unicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12788 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12789 + z8k-*-coff)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12790 + basic_machine=z8k-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12791 + os=-sim
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12792 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12793 + z80-*-coff)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12794 + basic_machine=z80-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12795 + os=-sim
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12796 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12797 + none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12798 + basic_machine=none-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12799 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12800 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12801 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12802 +# Here we handle the default manufacturer of certain CPU types. It is in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12803 +# some cases the only manufacturer, in others, it is the most popular.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12804 + w89k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12805 + basic_machine=hppa1.1-winbond
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12806 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12807 + op50n)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12808 + basic_machine=hppa1.1-oki
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12809 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12810 + op60c)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12811 + basic_machine=hppa1.1-oki
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12812 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12813 + romp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12814 + basic_machine=romp-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12815 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12816 + mmix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12817 + basic_machine=mmix-knuth
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12818 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12819 + rs6000)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12820 + basic_machine=rs6000-ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12821 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12822 + vax)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12823 + basic_machine=vax-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12824 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12825 + pdp10)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12826 + # there are many clones, so DEC is not a safe bet
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12827 + basic_machine=pdp10-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12828 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12829 + pdp11)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12830 + basic_machine=pdp11-dec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12831 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12832 + we32k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12833 + basic_machine=we32k-att
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12834 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12835 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12836 + basic_machine=sh-unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12837 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12838 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12839 + basic_machine=sparc-sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12840 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12841 + cydra)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12842 + basic_machine=cydra-cydrome
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12843 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12844 + orion)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12845 + basic_machine=orion-highlevel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12846 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12847 + orion105)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12848 + basic_machine=clipper-highlevel
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12849 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12850 + mac | mpw | mac-mpw)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12851 + basic_machine=m68k-apple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12852 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12853 + pmac | pmac-mpw)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12854 + basic_machine=powerpc-apple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12855 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12856 + *-unknown)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12857 + # Make sure to match an already-canonicalized machine name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12858 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12859 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12860 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12861 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12862 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12863 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12864 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12865 +# Here we canonicalize certain aliases for manufacturers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12866 +case $basic_machine in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12867 + *-digital*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12868 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12869 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12870 + *-commodore*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12871 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12872 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12873 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12874 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12875 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12876 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12877 +# Decode manufacturer-specific aliases for certain operating systems.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12878 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12879 +if [ x"$os" != x"" ]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12880 +then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12881 +case $os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12882 + # First match some system type aliases
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12883 + # that might get confused with valid system types.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12884 + # -solaris* is a basic system type, with this one exception.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12885 + -auroraux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12886 + os=-auroraux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12887 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12888 + -solaris1 | -solaris1.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12889 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12890 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12891 + -solaris)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12892 + os=-solaris2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12893 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12894 + -svr4*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12895 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12896 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12897 + -unixware*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12898 + os=-sysv4.2uw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12899 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12900 + -gnu/linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12901 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12902 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12903 + # First accept the basic system types.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12904 + # The portable systems comes first.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12905 + # Each alternative MUST END IN A *, to match a version number.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12906 + # -sysv* is not here because it comes later, after sysvr4.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12907 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12908 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12909 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12910 + | -sym* | -kopensolaris* | -plan9* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12911 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12912 + | -aos* | -aros* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12913 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12914 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12915 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12916 + | -bitrig* | -openbsd* | -solidbsd* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12917 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12918 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12919 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12920 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12921 + | -chorusos* | -chorusrdb* | -cegcc* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12922 + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12923 + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12924 + | -linux-newlib* | -linux-musl* | -linux-uclibc* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12925 + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12926 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12927 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12928 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12929 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12930 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12931 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12932 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12933 + # Remember, each alternative MUST END IN *, to match a version number.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12934 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12935 + -qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12936 + case $basic_machine in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12937 + x86-* | i*86-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12938 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12939 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12940 + os=-nto$os
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12941 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12942 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12943 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12944 + -nto-qnx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12945 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12946 + -nto*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12947 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12948 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12949 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12950 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12951 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12952 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12953 + -mac*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12954 + os=`echo $os | sed -e 's|mac|macos|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12955 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12956 + -linux-dietlibc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12957 + os=-linux-dietlibc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12958 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12959 + -linux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12960 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12961 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12962 + -sunos5*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12963 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12964 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12965 + -sunos6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12966 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12967 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12968 + -opened*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12969 + os=-openedition
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12970 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12971 + -os400*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12972 + os=-os400
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12973 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12974 + -wince*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12975 + os=-wince
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12976 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12977 + -osfrose*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12978 + os=-osfrose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12979 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12980 + -osf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12981 + os=-osf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12982 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12983 + -utek*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12984 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12985 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12986 + -dynix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12987 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12988 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12989 + -acis*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12990 + os=-aos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12991 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12992 + -atheos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12993 + os=-atheos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12994 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12995 + -syllable*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12996 + os=-syllable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12997 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12998 + -386bsd)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12999 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13000 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13001 + -ctix* | -uts*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13002 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13003 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13004 + -nova*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13005 + os=-rtmk-nova
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13006 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13007 + -ns2 )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13008 + os=-nextstep2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13009 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13010 + -nsk*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13011 + os=-nsk
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13012 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13013 + # Preserve the version number of sinix5.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13014 + -sinix5.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13015 + os=`echo $os | sed -e 's|sinix|sysv|'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13016 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13017 + -sinix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13018 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13019 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13020 + -tpf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13021 + os=-tpf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13022 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13023 + -triton*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13024 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13025 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13026 + -oss*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13027 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13028 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13029 + -svr4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13030 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13031 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13032 + -svr3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13033 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13034 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13035 + -sysvr4)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13036 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13037 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13038 + # This must come after -sysvr4.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13039 + -sysv*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13040 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13041 + -ose*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13042 + os=-ose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13043 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13044 + -es1800*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13045 + os=-ose
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13046 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13047 + -xenix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13048 + os=-xenix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13049 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13050 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13051 + os=-mint
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13052 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13053 + -aros*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13054 + os=-aros
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13055 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13056 + -zvmoe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13057 + os=-zvmoe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13058 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13059 + -dicos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13060 + os=-dicos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13061 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13062 + -nacl*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13063 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13064 + -none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13065 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13066 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13067 + # Get rid of the `-' at the beginning of $os.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13068 + os=`echo $os | sed 's/[^-]*-//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13069 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13070 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13071 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13072 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13073 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13074 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13075 +# Here we handle the default operating systems that come with various machines.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13076 +# The value should be what the vendor currently ships out the door with their
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13077 +# machine or put another way, the most popular os provided with the machine.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13078 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13079 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13080 +# "-sun"), then you have to tell the case statement up towards the top
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13081 +# that MANUFACTURER isn't an operating system. Otherwise, code above
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13082 +# will signal an error saying that MANUFACTURER isn't an operating
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13083 +# system, and we'll never get to this point.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13084 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13085 +case $basic_machine in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13086 + score-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13087 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13088 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13089 + spu-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13090 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13091 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13092 + *-acorn)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13093 + os=-riscix1.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13094 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13095 + arm*-rebel)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13096 + os=-linux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13097 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13098 + arm*-semi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13099 + os=-aout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13100 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13101 + c4x-* | tic4x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13102 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13103 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13104 + c8051-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13105 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13106 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13107 + hexagon-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13108 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13109 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13110 + tic54x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13111 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13112 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13113 + tic55x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13114 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13115 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13116 + tic6x-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13117 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13118 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13119 + # This must come before the *-dec entry.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13120 + pdp10-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13121 + os=-tops20
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13122 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13123 + pdp11-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13124 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13125 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13126 + *-dec | vax-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13127 + os=-ultrix4.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13128 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13129 + m68*-apollo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13130 + os=-domain
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13131 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13132 + i386-sun)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13133 + os=-sunos4.0.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13134 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13135 + m68000-sun)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13136 + os=-sunos3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13137 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13138 + m68*-cisco)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13139 + os=-aout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13140 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13141 + mep-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13142 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13143 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13144 + mips*-cisco)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13145 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13146 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13147 + mips*-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13148 + os=-elf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13149 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13150 + or32-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13151 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13152 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13153 + *-tti) # must be before sparc entry or we get the wrong os.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13154 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13155 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13156 + sparc-* | *-sun)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13157 + os=-sunos4.1.1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13158 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13159 + *-be)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13160 + os=-beos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13161 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13162 + *-haiku)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13163 + os=-haiku
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13164 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13165 + *-ibm)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13166 + os=-aix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13167 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13168 + *-knuth)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13169 + os=-mmixware
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13170 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13171 + *-wec)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13172 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13173 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13174 + *-winbond)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13175 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13176 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13177 + *-oki)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13178 + os=-proelf
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13179 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13180 + *-hp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13181 + os=-hpux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13182 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13183 + *-hitachi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13184 + os=-hiux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13185 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13186 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13187 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13188 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13189 + *-cbm)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13190 + os=-amigaos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13191 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13192 + *-dg)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13193 + os=-dgux
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13194 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13195 + *-dolphin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13196 + os=-sysv3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13197 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13198 + m68k-ccur)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13199 + os=-rtu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13200 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13201 + m88k-omron*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13202 + os=-luna
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13203 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13204 + *-next )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13205 + os=-nextstep
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13206 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13207 + *-sequent)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13208 + os=-ptx
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13209 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13210 + *-crds)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13211 + os=-unos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13212 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13213 + *-ns)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13214 + os=-genix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13215 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13216 + i370-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13217 + os=-mvs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13218 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13219 + *-next)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13220 + os=-nextstep3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13221 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13222 + *-gould)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13223 + os=-sysv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13224 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13225 + *-highlevel)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13226 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13227 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13228 + *-encore)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13229 + os=-bsd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13230 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13231 + *-sgi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13232 + os=-irix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13233 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13234 + *-siemens)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13235 + os=-sysv4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13236 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13237 + *-masscomp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13238 + os=-rtu
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13239 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13240 + f30[01]-fujitsu | f700-fujitsu)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13241 + os=-uxpv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13242 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13243 + *-rom68k)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13244 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13245 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13246 + *-*bug)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13247 + os=-coff
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13248 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13249 + *-apple)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13250 + os=-macos
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13251 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13252 + *-atari*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13253 + os=-mint
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13254 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13255 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13256 + os=-none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13257 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13258 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13259 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13260 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13261 +# Here we handle the case where we know the os, and the CPU type, but not the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13262 +# manufacturer. We pick the logical manufacturer.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13263 +vendor=unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13264 +case $basic_machine in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13265 + *-unknown)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13266 + case $os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13267 + -riscix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13268 + vendor=acorn
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13269 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13270 + -sunos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13271 + vendor=sun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13272 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13273 + -cnk*|-aix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13274 + vendor=ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13275 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13276 + -beos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13277 + vendor=be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13278 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13279 + -hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13280 + vendor=hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13281 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13282 + -mpeix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13283 + vendor=hp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13284 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13285 + -hiux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13286 + vendor=hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13287 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13288 + -unos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13289 + vendor=crds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13290 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13291 + -dgux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13292 + vendor=dg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13293 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13294 + -luna*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13295 + vendor=omron
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13296 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13297 + -genix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13298 + vendor=ns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13299 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13300 + -mvs* | -opened*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13301 + vendor=ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13302 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13303 + -os400*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13304 + vendor=ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13305 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13306 + -ptx*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13307 + vendor=sequent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13308 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13309 + -tpf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13310 + vendor=ibm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13311 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13312 + -vxsim* | -vxworks* | -windiss*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13313 + vendor=wrs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13314 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13315 + -aux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13316 + vendor=apple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13317 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13318 + -hms*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13319 + vendor=hitachi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13320 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13321 + -mpw* | -macos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13322 + vendor=apple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13323 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13324 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13325 + vendor=atari
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13326 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13327 + -vos*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13328 + vendor=stratus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13329 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13330 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13331 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13332 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13333 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13334 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13335 +echo $basic_machine$os
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13336 +exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13337 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13338 +# Local variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13339 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13340 +# time-stamp-start: "timestamp='"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13341 +# time-stamp-format: "%:y-%02m-%02d"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13342 +# time-stamp-end: "'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13343 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13344 diff -uNr a/configure.ac b/configure.ac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13345 --- a/configure.ac 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13346 +++ b/configure.ac 2014-12-12 15:37:39.364452680 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13347 @@ -0,0 +1,31 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13348 +AC_PREREQ([2.62])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13349 +AC_INIT([GL2PS], [1.3.8], [], [gl2ps])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13350 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13351 +AC_CONFIG_SRCDIR([gl2ps.c])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13352 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13353 +AM_INIT_AUTOMAKE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13354 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13355 +AC_CANONICAL_HOST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13356 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13357 +AC_PROG_CC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13358 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13359 +LT_PREREQ([2.2.2])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13360 +LT_INIT([disable-static dlopen win32-dll])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13361 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13362 +AC_CHECK_LIB([z], [gzclearerr], [LIBS="-lz $LIBS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13363 +AC_DEFINE([GL2PS_HAVE_ZLIB], 1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13364 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13365 +AC_CHECK_LIB([png], [png_write_info], [LIBS="-lpng $LIBS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13366 +AC_DEFINE([GL2PS_HAVE_LIBPNG], 1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13367 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13368 +AC_CHECK_HEADERS([GL/glu.h OpenGL/glu.h])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13369 +AC_CHECK_LIB([GLU], [gluBeginCurve])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13370 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13371 +AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13372 +AC_CHECK_LIB([GL], [glEnable])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13373 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13374 +AC_CHECK_FUNCS([vsnprintf], [], [AC_DEFINE([HAVE_NO_VSNPRINTF], 1)])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13376 +AC_CONFIG_FILES([Makefile])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13377 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13378 +AC_OUTPUT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13379 diff -uNr a/COPYING b/COPYING
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13380 --- a/COPYING 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13381 +++ b/COPYING 2014-12-12 15:59:32.605606679 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13382 @@ -0,0 +1 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13383 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13384 diff -uNr a/depcomp b/depcomp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13385 --- a/depcomp 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13386 +++ b/depcomp 2014-12-12 15:22:27.650238513 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13387 @@ -0,0 +1,791 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13388 +#! /bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13389 +# depcomp - compile a program generating dependencies as side-effects
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13390 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13391 +scriptversion=2013-05-30.07; # UTC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13392 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13393 +# Copyright (C) 1999-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13394 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13395 +# This program is free software; you can redistribute it and/or modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13396 +# it under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13397 +# the Free Software Foundation; either version 2, or (at your option)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13398 +# any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13399 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13400 +# This program is distributed in the hope that it will be useful,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13401 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13402 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13403 +# GNU General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13404 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13405 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13406 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13407 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13408 +# As a special exception to the GNU General Public License, if you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13409 +# distribute this file as part of a program that contains a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13410 +# configuration script generated by Autoconf, you may include it under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13411 +# the same distribution terms that you use for the rest of that program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13412 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13413 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13414 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13415 +case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13416 + '')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13417 + echo "$0: No command. Try '$0 --help' for more information." 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13418 + exit 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13419 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13420 + -h | --h*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13421 + cat <<\EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13422 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13424 +Run PROGRAMS ARGS to compile a file, generating dependencies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13425 +as side-effects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13426 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13427 +Environment variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13428 + depmode Dependency tracking mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13429 + source Source file read by 'PROGRAMS ARGS'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13430 + object Object file output by 'PROGRAMS ARGS'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13431 + DEPDIR directory where to store dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13432 + depfile Dependency file to output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13433 + tmpdepfile Temporary file to use when outputting dependencies.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13434 + libtool Whether libtool is used (yes/no).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13435 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13436 +Report bugs to <bug-automake@gnu.org>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13437 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13438 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13439 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13440 + -v | --v*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13441 + echo "depcomp $scriptversion"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13442 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13443 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13444 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13445 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13446 +# Get the directory component of the given path, and save it in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13447 +# global variables '$dir'. Note that this directory component will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13448 +# be either empty or ending with a '/' character. This is deliberate.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13449 +set_dir_from ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13450 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13451 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13452 + */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13453 + *) dir=;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13454 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13455 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13456 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13457 +# Get the suffix-stripped basename of the given path, and save it the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13458 +# global variable '$base'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13459 +set_base_from ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13460 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13461 + base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13462 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13463 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13464 +# If no dependency file was actually created by the compiler invocation,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13465 +# we still have to create a dummy depfile, to avoid errors with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13466 +# Makefile "include basename.Plo" scheme.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13467 +make_dummy_depfile ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13468 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13469 + echo "#dummy" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13470 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13471 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13472 +# Factor out some common post-processing of the generated depfile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13473 +# Requires the auxiliary global variable '$tmpdepfile' to be set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13474 +aix_post_process_depfile ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13475 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13476 + # If the compiler actually managed to produce a dependency file,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13477 + # post-process it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13478 + if test -f "$tmpdepfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13479 + # Each line is of the form 'foo.o: dependency.h'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13480 + # Do two passes, one to just change these to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13481 + # $object: dependency.h
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13482 + # and one to simply output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13483 + # dependency.h:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13484 + # which is needed to avoid the deleted-header problem.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13485 + { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13486 + sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13487 + } > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13488 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13489 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13490 + make_dummy_depfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13491 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13492 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13493 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13494 +# A tabulation character.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13495 +tab=' '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13496 +# A newline character.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13497 +nl='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13498 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13499 +# Character ranges might be problematic outside the C locale.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13500 +# These definitions help.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13501 +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13502 +lower=abcdefghijklmnopqrstuvwxyz
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13503 +digits=0123456789
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13504 +alpha=${upper}${lower}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13505 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13506 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13507 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13508 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13509 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13510 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13511 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13512 +depfile=${depfile-`echo "$object" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13513 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13514 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13515 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13516 +rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13517 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13518 +# Avoid interferences from the environment.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13519 +gccflag= dashmflag=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13520 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13521 +# Some modes work just like other modes, but use different flags. We
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13522 +# parameterize here, but still list the modes in the big case below,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13523 +# to make depend.m4 easier to write. Note that we *cannot* use a case
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13524 +# here, because this file can only contain one case statement.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13525 +if test "$depmode" = hp; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13526 + # HP compiler uses -M and no extra arg.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13527 + gccflag=-M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13528 + depmode=gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13529 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13530 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13531 +if test "$depmode" = dashXmstdout; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13532 + # This is just like dashmstdout with a different argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13533 + dashmflag=-xM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13534 + depmode=dashmstdout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13535 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13537 +cygpath_u="cygpath -u -f -"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13538 +if test "$depmode" = msvcmsys; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13539 + # This is just like msvisualcpp but w/o cygpath translation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13540 + # Just convert the backslash-escaped backslashes to single forward
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13541 + # slashes to satisfy depend.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13542 + cygpath_u='sed s,\\\\,/,g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13543 + depmode=msvisualcpp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13544 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13545 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13546 +if test "$depmode" = msvc7msys; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13547 + # This is just like msvc7 but w/o cygpath translation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13548 + # Just convert the backslash-escaped backslashes to single forward
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13549 + # slashes to satisfy depend.m4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13550 + cygpath_u='sed s,\\\\,/,g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13551 + depmode=msvc7
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13552 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13553 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13554 +if test "$depmode" = xlc; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13555 + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13556 + gccflag=-qmakedep=gcc,-MF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13557 + depmode=gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13558 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13559 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13560 +case "$depmode" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13561 +gcc3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13562 +## gcc 3 implements dependency tracking that does exactly what
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13563 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13564 +## it if -MD -MP comes after the -MF stuff. Hmm.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13565 +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13566 +## the command line argument order; so add the flags where they
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13567 +## appear in depend2.am. Note that the slowdown incurred here
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13568 +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13569 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13570 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13571 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13572 + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13573 + *) set fnord "$@" "$arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13574 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13575 + shift # fnord
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13576 + shift # $arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13577 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13578 + "$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13579 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13580 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13581 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13582 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13583 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13584 + mv "$tmpdepfile" "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13585 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13587 +gcc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13588 +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13589 +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13590 +## (see the conditional assignment to $gccflag above).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13591 +## There are various ways to get dependency output from gcc. Here's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13592 +## why we pick this rather obscure method:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13593 +## - Don't want to use -MD because we'd like the dependencies to end
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13594 +## up in a subdir. Having to rename by hand is ugly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13595 +## (We might end up doing this anyway to support other compilers.)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13596 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13597 +## -MM, not -M (despite what the docs say). Also, it might not be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13598 +## supported by the other compilers which use the 'gcc' depmode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13599 +## - Using -M directly means running the compiler twice (even worse
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13600 +## than renaming).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13601 + if test -z "$gccflag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13602 + gccflag=-MD,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13603 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13604 + "$@" -Wp,"$gccflag$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13605 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13606 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13607 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13608 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13609 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13610 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13611 + echo "$object : \\" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13612 + # The second -e expression handles DOS-style file names with drive
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13613 + # letters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13614 + sed -e 's/^[^:]*: / /' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13615 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13616 +## This next piece of magic avoids the "deleted header file" problem.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13617 +## The problem is that when a header file which appears in a .P file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13618 +## is deleted, the dependency causes make to die (because there is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13619 +## typically no way to rebuild the header). We avoid this by adding
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13620 +## dummy dependencies for each header file. Too bad gcc doesn't do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13621 +## this for us directly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13622 +## Some versions of gcc put a space before the ':'. On the theory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13623 +## that the space means something, we add a space to the output as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13624 +## well. hp depmode also adds that space, but also prefixes the VPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13625 +## to the object. Take care to not repeat it in the output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13626 +## Some versions of the HPUX 10.20 sed can't process this invocation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13627 +## correctly. Breaking it into two sed invocations is a workaround.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13628 + tr ' ' "$nl" < "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13629 + | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13630 + | sed -e 's/$/ :/' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13631 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13632 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13633 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13634 +hp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13635 + # This case exists only to let depend.m4 do its work. It works by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13636 + # looking at the text of this script. This case will never be run,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13637 + # since it is checked for above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13638 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13639 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13640 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13641 +sgi)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13642 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13643 + "$@" "-Wp,-MDupdate,$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13644 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13645 + "$@" -MDupdate "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13646 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13647 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13648 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13649 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13650 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13651 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13652 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13653 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13654 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13655 + echo "$object : \\" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13656 + # Clip off the initial element (the dependent). Don't try to be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13657 + # clever and replace this with sed code, as IRIX sed won't handle
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13658 + # lines with more than a fixed number of characters (4096 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13659 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13660 + # the IRIX cc adds comments like '#:fec' to the end of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13661 + # dependency line.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13662 + tr ' ' "$nl" < "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13663 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13664 + | tr "$nl" ' ' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13665 + echo >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13666 + # The second pass generates a dummy entry for each header file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13667 + tr ' ' "$nl" < "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13668 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13669 + >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13670 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13671 + make_dummy_depfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13672 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13673 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13674 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13675 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13676 +xlc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13677 + # This case exists only to let depend.m4 do its work. It works by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13678 + # looking at the text of this script. This case will never be run,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13679 + # since it is checked for above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13680 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13681 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13682 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13683 +aix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13684 + # The C for AIX Compiler uses -M and outputs the dependencies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13685 + # in a .u file. In older versions, this file always lives in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13686 + # current directory. Also, the AIX compiler puts '$object:' at the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13687 + # start of each line; $object doesn't have directory information.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13688 + # Version 6 uses the directory in both cases.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13689 + set_dir_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13690 + set_base_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13691 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13692 + tmpdepfile1=$dir$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13693 + tmpdepfile2=$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13694 + tmpdepfile3=$dir.libs/$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13695 + "$@" -Wc,-M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13696 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13697 + tmpdepfile1=$dir$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13698 + tmpdepfile2=$dir$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13699 + tmpdepfile3=$dir$base.u
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13700 + "$@" -M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13701 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13702 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13703 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13704 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13705 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13706 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13707 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13708 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13709 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13710 + test -f "$tmpdepfile" && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13711 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13712 + aix_post_process_depfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13713 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13714 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13715 +tcc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13716 + # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13717 + # FIXME: That version still under development at the moment of writing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13718 + # Make that this statement remains true also for stable, released
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13719 + # versions.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13720 + # It will wrap lines (doesn't matter whether long or short) with a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13721 + # trailing '\', as in:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13722 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13723 + # foo.o : \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13724 + # foo.c \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13725 + # foo.h \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13726 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13727 + # It will put a trailing '\' even on the last line, and will use leading
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13728 + # spaces rather than leading tabs (at least since its commit 0394caf7
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13729 + # "Emit spaces for -MD").
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13730 + "$@" -MD -MF "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13731 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13732 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13733 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13734 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13735 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13736 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13737 + # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13738 + # We have to change lines of the first kind to '$object: \'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13739 + sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13740 + # And for each line of the second kind, we have to emit a 'dep.h:'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13741 + # dummy dependency, to avoid the deleted-header problem.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13742 + sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13743 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13744 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13745 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13746 +## The order of this option in the case statement is important, since the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13747 +## shell code in configure will try each of these formats in the order
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13748 +## listed in this file. A plain '-MD' option would be understood by many
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13749 +## compilers, so we must ensure this comes after the gcc and icc options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13750 +pgcc)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13751 + # Portland's C compiler understands '-MD'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13752 + # Will always output deps to 'file.d' where file is the root name of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13753 + # source file under compilation, even if file resides in a subdirectory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13754 + # The object file name does not affect the name of the '.d' file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13755 + # pgcc 10.2 will output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13756 + # foo.o: sub/foo.c sub/foo.h
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13757 + # and will wrap long lines using '\' :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13758 + # foo.o: sub/foo.c ... \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13759 + # sub/foo.h ... \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13760 + # ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13761 + set_dir_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13762 + # Use the source, not the object, to determine the base name, since
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13763 + # that's sadly what pgcc will do too.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13764 + set_base_from "$source"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13765 + tmpdepfile=$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13766 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13767 + # For projects that build the same source file twice into different object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13768 + # files, the pgcc approach of using the *source* file root name can cause
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13769 + # problems in parallel builds. Use a locking strategy to avoid stomping on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13770 + # the same $tmpdepfile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13771 + lockdir=$base.d-lock
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13772 + trap "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13773 + echo '$0: caught signal, cleaning up...' >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13774 + rmdir '$lockdir'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13775 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13776 + " 1 2 13 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13777 + numtries=100
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13778 + i=$numtries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13779 + while test $i -gt 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13780 + # mkdir is a portable test-and-set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13781 + if mkdir "$lockdir" 2>/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13782 + # This process acquired the lock.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13783 + "$@" -MD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13784 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13785 + # Release the lock.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13786 + rmdir "$lockdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13787 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13788 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13789 + # If the lock is being held by a different process, wait
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13790 + # until the winning process is done or we timeout.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13791 + while test -d "$lockdir" && test $i -gt 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13792 + sleep 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13793 + i=`expr $i - 1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13794 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13795 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13796 + i=`expr $i - 1`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13797 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13798 + trap - 1 2 13 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13799 + if test $i -le 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13800 + echo "$0: failed to acquire lock after $numtries attempts" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13801 + echo "$0: check lockdir '$lockdir'" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13802 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13803 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13805 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13806 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13807 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13808 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13809 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13810 + # Each line is of the form `foo.o: dependent.h',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13811 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13812 + # Do two passes, one to just change these to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13813 + # `$object: dependent.h' and one to simply `dependent.h:'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13814 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13815 + # Some versions of the HPUX 10.20 sed can't process this invocation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13816 + # correctly. Breaking it into two sed invocations is a workaround.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13817 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13818 + | sed -e 's/$/ :/' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13819 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13820 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13821 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13822 +hp2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13823 + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13824 + # compilers, which have integrated preprocessors. The correct option
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13825 + # to use with these is +Maked; it writes dependencies to a file named
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13826 + # 'foo.d', which lands next to the object file, wherever that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13827 + # happens to be.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13828 + # Much of this is similar to the tru64 case; see comments there.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13829 + set_dir_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13830 + set_base_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13831 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13832 + tmpdepfile1=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13833 + tmpdepfile2=$dir.libs/$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13834 + "$@" -Wc,+Maked
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13835 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13836 + tmpdepfile1=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13837 + tmpdepfile2=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13838 + "$@" +Maked
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13839 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13840 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13841 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13842 + rm -f "$tmpdepfile1" "$tmpdepfile2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13843 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13844 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13845 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13846 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13847 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13848 + test -f "$tmpdepfile" && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13849 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13850 + if test -f "$tmpdepfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13851 + sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13852 + # Add 'dependent.h:' lines.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13853 + sed -ne '2,${
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13854 + s/^ *//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13855 + s/ \\*$//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13856 + s/$/:/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13857 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13858 + }' "$tmpdepfile" >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13859 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13860 + make_dummy_depfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13861 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13862 + rm -f "$tmpdepfile" "$tmpdepfile2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13863 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13864 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13865 +tru64)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13866 + # The Tru64 compiler uses -MD to generate dependencies as a side
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13867 + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13868 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13869 + # dependencies in 'foo.d' instead, so we check for that too.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13870 + # Subdirectories are respected.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13871 + set_dir_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13872 + set_base_from "$object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13873 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13874 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13875 + # Libtool generates 2 separate objects for the 2 libraries. These
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13876 + # two compilations output dependencies in $dir.libs/$base.o.d and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13877 + # in $dir$base.o.d. We have to check for both files, because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13878 + # one of the two compilations can be disabled. We should prefer
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13879 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13880 + # automatically cleaned when .libs/ is deleted, while ignoring
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13881 + # the former would cause a distcleancheck panic.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13882 + tmpdepfile1=$dir$base.o.d # libtool 1.5
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13883 + tmpdepfile2=$dir.libs/$base.o.d # Likewise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13884 + tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13885 + "$@" -Wc,-MD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13886 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13887 + tmpdepfile1=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13888 + tmpdepfile2=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13889 + tmpdepfile3=$dir$base.d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13890 + "$@" -MD
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13891 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13892 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13893 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13894 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13895 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13896 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13897 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13898 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13899 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13900 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13901 + test -f "$tmpdepfile" && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13902 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13903 + # Same post-processing that is required for AIX mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13904 + aix_post_process_depfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13905 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13907 +msvc7)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13908 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13909 + showIncludes=-Wc,-showIncludes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13910 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13911 + showIncludes=-showIncludes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13912 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13913 + "$@" $showIncludes > "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13914 + stat=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13915 + grep -v '^Note: including file: ' "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13916 + if test $stat -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13917 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13918 + exit $stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13919 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13920 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13921 + echo "$object : \\" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13922 + # The first sed program below extracts the file names and escapes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13923 + # backslashes for cygpath. The second sed program outputs the file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13924 + # name when reading, but also accumulates all include files in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13925 + # hold buffer in order to output them again at the end. This only
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13926 + # works with sed implementations that can handle large buffers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13927 + sed < "$tmpdepfile" -n '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13928 +/^Note: including file: *\(.*\)/ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13929 + s//\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13930 + s/\\/\\\\/g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13931 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13932 +}' | $cygpath_u | sort -u | sed -n '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13933 +s/ /\\ /g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13934 +s/\(.*\)/'"$tab"'\1 \\/p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13935 +s/.\(.*\) \\/\1:/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13936 +H
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13937 +$ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13938 + s/.*/'"$tab"'/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13939 + G
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13940 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13941 +}' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13942 + echo >> "$depfile" # make sure the fragment doesn't end with a backslash
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13943 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13944 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13945 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13946 +msvc7msys)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13947 + # This case exists only to let depend.m4 do its work. It works by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13948 + # looking at the text of this script. This case will never be run,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13949 + # since it is checked for above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13950 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13951 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13952 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13953 +#nosideeffect)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13954 + # This comment above is used by automake to tell side-effect
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13955 + # dependency tracking mechanisms from slower ones.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13956 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13957 +dashmstdout)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13958 + # Important note: in order to support this mode, a compiler *must*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13959 + # always write the preprocessed file to stdout, regardless of -o.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13960 + "$@" || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13961 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13962 + # Remove the call to Libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13963 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13964 + while test "X$1" != 'X--mode=compile'; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13965 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13966 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13967 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13968 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13969 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13970 + # Remove '-o $object'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13971 + IFS=" "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13972 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13973 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13974 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13975 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13976 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13977 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13978 + $object)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13979 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13980 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13981 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13982 + set fnord "$@" "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13983 + shift # fnord
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13984 + shift # $arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13985 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13986 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13987 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13988 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13989 + test -z "$dashmflag" && dashmflag=-M
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13990 + # Require at least two characters before searching for ':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13991 + # in the target name. This is to cope with DOS-style filenames:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13992 + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13993 + "$@" $dashmflag |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13994 + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13995 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13996 + cat < "$tmpdepfile" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13997 + # Some versions of the HPUX 10.20 sed can't process this sed invocation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13998 + # correctly. Breaking it into two sed invocations is a workaround.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13999 + tr ' ' "$nl" < "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14000 + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14001 + | sed -e 's/$/ :/' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14002 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14003 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14004 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14005 +dashXmstdout)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14006 + # This case only exists to satisfy depend.m4. It is never actually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14007 + # run, as this mode is specially recognized in the preamble.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14008 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14009 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14010 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14011 +makedepend)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14012 + "$@" || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14013 + # Remove any Libtool call
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14014 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14015 + while test "X$1" != 'X--mode=compile'; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14016 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14017 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14018 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14019 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14020 + # X makedepend
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14021 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14022 + cleared=no eat=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14023 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14024 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14025 + case $cleared in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14026 + no)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14027 + set ""; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14028 + cleared=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14029 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14030 + if test $eat = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14031 + eat=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14032 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14033 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14034 + case "$arg" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14035 + -D*|-I*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14036 + set fnord "$@" "$arg"; shift ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14037 + # Strip any option that makedepend may not understand. Remove
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14038 + # the object too, otherwise makedepend will parse it as a source file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14039 + -arch)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14040 + eat=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14041 + -*|$object)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14042 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14043 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14044 + set fnord "$@" "$arg"; shift ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14045 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14046 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14047 + obj_suffix=`echo "$object" | sed 's/^.*\././'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14048 + touch "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14049 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14050 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14051 + # makedepend may prepend the VPATH from the source file name to the object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14052 + # No need to regex-escape $object, excess matching of '.' is harmless.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14053 + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14054 + # Some versions of the HPUX 10.20 sed can't process the last invocation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14055 + # correctly. Breaking it into two sed invocations is a workaround.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14056 + sed '1,2d' "$tmpdepfile" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14057 + | tr ' ' "$nl" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14058 + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14059 + | sed -e 's/$/ :/' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14060 + rm -f "$tmpdepfile" "$tmpdepfile".bak
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14061 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14062 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14063 +cpp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14064 + # Important note: in order to support this mode, a compiler *must*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14065 + # always write the preprocessed file to stdout.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14066 + "$@" || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14067 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14068 + # Remove the call to Libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14069 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14070 + while test "X$1" != 'X--mode=compile'; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14071 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14072 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14073 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14074 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14075 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14076 + # Remove '-o $object'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14077 + IFS=" "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14078 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14079 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14080 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14081 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14082 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14083 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14084 + $object)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14085 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14086 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14087 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14088 + set fnord "$@" "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14089 + shift # fnord
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14090 + shift # $arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14091 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14092 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14093 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14094 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14095 + "$@" -E \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14096 + | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14097 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14098 + | sed '$ s: \\$::' > "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14099 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14100 + echo "$object : \\" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14101 + cat < "$tmpdepfile" >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14102 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14103 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14104 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14105 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14106 +msvisualcpp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14107 + # Important note: in order to support this mode, a compiler *must*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14108 + # always write the preprocessed file to stdout.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14109 + "$@" || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14110 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14111 + # Remove the call to Libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14112 + if test "$libtool" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14113 + while test "X$1" != 'X--mode=compile'; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14114 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14115 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14116 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14117 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14118 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14119 + IFS=" "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14120 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14121 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14122 + case "$arg" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14123 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14124 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14125 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14126 + $object)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14127 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14128 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14129 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14130 + set fnord "$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14131 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14132 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14133 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14134 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14135 + set fnord "$@" "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14136 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14137 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14138 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14139 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14140 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14141 + "$@" -E 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14142 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14143 + rm -f "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14144 + echo "$object : \\" > "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14145 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14146 + echo "$tab" >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14147 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14148 + rm -f "$tmpdepfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14149 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14150 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14151 +msvcmsys)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14152 + # This case exists only to let depend.m4 do its work. It works by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14153 + # looking at the text of this script. This case will never be run,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14154 + # since it is checked for above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14155 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14156 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14157 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14158 +none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14159 + exec "$@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14160 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14161 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14162 +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14163 + echo "Unknown depmode $depmode" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14164 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14165 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14166 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14167 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14168 +exit 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14169 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14170 +# Local Variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14171 +# mode: shell-script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14172 +# sh-indentation: 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14173 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14174 +# time-stamp-start: "scriptversion="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14175 +# time-stamp-format: "%:y-%02m-%02d.%02H"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14176 +# time-stamp-time-zone: "UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14177 +# time-stamp-end: "; # UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14178 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14179 diff -uNr a/INSTALL b/INSTALL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14180 --- a/INSTALL 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14181 +++ b/INSTALL 2014-12-12 15:22:27.622239427 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14182 @@ -0,0 +1,370 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14183 +Installation Instructions
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14184 +*************************
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14185 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14186 +Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14187 +Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14188 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14189 + Copying and distribution of this file, with or without modification,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14190 +are permitted in any medium without royalty provided the copyright
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14191 +notice and this notice are preserved. This file is offered as-is,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14192 +without warranty of any kind.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14193 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14194 +Basic Installation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14195 +==================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14196 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14197 + Briefly, the shell command `./configure && make && make install'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14198 +should configure, build, and install this package. The following
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14199 +more-detailed instructions are generic; see the `README' file for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14200 +instructions specific to this package. Some packages provide this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14201 +`INSTALL' file but do not implement all of the features documented
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14202 +below. The lack of an optional feature in a given package is not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14203 +necessarily a bug. More recommendations for GNU packages can be found
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14204 +in *note Makefile Conventions: (standards)Makefile Conventions.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14205 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14206 + The `configure' shell script attempts to guess correct values for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14207 +various system-dependent variables used during compilation. It uses
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14208 +those values to create a `Makefile' in each directory of the package.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14209 +It may also create one or more `.h' files containing system-dependent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14210 +definitions. Finally, it creates a shell script `config.status' that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14211 +you can run in the future to recreate the current configuration, and a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14212 +file `config.log' containing compiler output (useful mainly for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14213 +debugging `configure').
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14214 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14215 + It can also use an optional file (typically called `config.cache'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14216 +and enabled with `--cache-file=config.cache' or simply `-C') that saves
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14217 +the results of its tests to speed up reconfiguring. Caching is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14218 +disabled by default to prevent problems with accidental use of stale
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14219 +cache files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14220 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14221 + If you need to do unusual things to compile the package, please try
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14222 +to figure out how `configure' could check whether to do them, and mail
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14223 +diffs or instructions to the address given in the `README' so they can
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14224 +be considered for the next release. If you are using the cache, and at
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14225 +some point `config.cache' contains results you don't want to keep, you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14226 +may remove or edit it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14227 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14228 + The file `configure.ac' (or `configure.in') is used to create
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14229 +`configure' by a program called `autoconf'. You need `configure.ac' if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14230 +you want to change it or regenerate `configure' using a newer version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14231 +of `autoconf'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14232 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14233 + The simplest way to compile this package is:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14234 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14235 + 1. `cd' to the directory containing the package's source code and type
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14236 + `./configure' to configure the package for your system.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14238 + Running `configure' might take a while. While running, it prints
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14239 + some messages telling which features it is checking for.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14240 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14241 + 2. Type `make' to compile the package.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14242 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14243 + 3. Optionally, type `make check' to run any self-tests that come with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14244 + the package, generally using the just-built uninstalled binaries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14245 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14246 + 4. Type `make install' to install the programs and any data files and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14247 + documentation. When installing into a prefix owned by root, it is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14248 + recommended that the package be configured and built as a regular
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14249 + user, and only the `make install' phase executed with root
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14250 + privileges.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14251 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14252 + 5. Optionally, type `make installcheck' to repeat any self-tests, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14253 + this time using the binaries in their final installed location.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14254 + This target does not install anything. Running this target as a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14255 + regular user, particularly if the prior `make install' required
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14256 + root privileges, verifies that the installation completed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14257 + correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14258 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14259 + 6. You can remove the program binaries and object files from the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14260 + source code directory by typing `make clean'. To also remove the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14261 + files that `configure' created (so you can compile the package for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14262 + a different kind of computer), type `make distclean'. There is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14263 + also a `make maintainer-clean' target, but that is intended mainly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14264 + for the package's developers. If you use it, you may have to get
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14265 + all sorts of other programs in order to regenerate files that came
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14266 + with the distribution.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14267 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14268 + 7. Often, you can also type `make uninstall' to remove the installed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14269 + files again. In practice, not all packages have tested that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14270 + uninstallation works correctly, even though it is required by the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14271 + GNU Coding Standards.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14272 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14273 + 8. Some packages, particularly those that use Automake, provide `make
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14274 + distcheck', which can by used by developers to test that all other
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14275 + targets like `make install' and `make uninstall' work correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14276 + This target is generally not run by end users.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14277 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14278 +Compilers and Options
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14279 +=====================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14280 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14281 + Some systems require unusual options for compilation or linking that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14282 +the `configure' script does not know about. Run `./configure --help'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14283 +for details on some of the pertinent environment variables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14284 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14285 + You can give `configure' initial values for configuration parameters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14286 +by setting variables in the command line or in the environment. Here
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14287 +is an example:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14288 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14289 + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14290 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14291 + *Note Defining Variables::, for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14292 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14293 +Compiling For Multiple Architectures
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14294 +====================================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14295 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14296 + You can compile the package for more than one kind of computer at the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14297 +same time, by placing the object files for each architecture in their
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14298 +own directory. To do this, you can use GNU `make'. `cd' to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14299 +directory where you want the object files and executables to go and run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14300 +the `configure' script. `configure' automatically checks for the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14301 +source code in the directory that `configure' is in and in `..'. This
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14302 +is known as a "VPATH" build.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14303 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14304 + With a non-GNU `make', it is safer to compile the package for one
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14305 +architecture at a time in the source code directory. After you have
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14306 +installed the package for one architecture, use `make distclean' before
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14307 +reconfiguring for another architecture.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14308 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14309 + On MacOS X 10.5 and later systems, you can create libraries and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14310 +executables that work on multiple system types--known as "fat" or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14311 +"universal" binaries--by specifying multiple `-arch' options to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14312 +compiler but only a single `-arch' option to the preprocessor. Like
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14313 +this:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14314 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14315 + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14316 + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14317 + CPP="gcc -E" CXXCPP="g++ -E"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14318 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14319 + This is not guaranteed to produce working output in all cases, you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14320 +may have to build one architecture at a time and combine the results
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14321 +using the `lipo' tool if you have problems.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14322 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14323 +Installation Names
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14324 +==================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14325 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14326 + By default, `make install' installs the package's commands under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14327 +`/usr/local/bin', include files under `/usr/local/include', etc. You
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14328 +can specify an installation prefix other than `/usr/local' by giving
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14329 +`configure' the option `--prefix=PREFIX', where PREFIX must be an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14330 +absolute file name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14331 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14332 + You can specify separate installation prefixes for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14333 +architecture-specific files and architecture-independent files. If you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14334 +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14335 +PREFIX as the prefix for installing programs and libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14336 +Documentation and other data files still use the regular prefix.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14337 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14338 + In addition, if you use an unusual directory layout you can give
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14339 +options like `--bindir=DIR' to specify different values for particular
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14340 +kinds of files. Run `configure --help' for a list of the directories
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14341 +you can set and what kinds of files go in them. In general, the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14342 +default for these options is expressed in terms of `${prefix}', so that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14343 +specifying just `--prefix' will affect all of the other directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14344 +specifications that were not explicitly provided.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14345 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14346 + The most portable way to affect installation locations is to pass the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14347 +correct locations to `configure'; however, many packages provide one or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14348 +both of the following shortcuts of passing variable assignments to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14349 +`make install' command line to change installation locations without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14350 +having to reconfigure or recompile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14351 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14352 + The first method involves providing an override variable for each
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14353 +affected directory. For example, `make install
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14354 +prefix=/alternate/directory' will choose an alternate location for all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14355 +directory configuration variables that were expressed in terms of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14356 +`${prefix}'. Any directories that were specified during `configure',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14357 +but not in terms of `${prefix}', must each be overridden at install
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14358 +time for the entire installation to be relocated. The approach of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14359 +makefile variable overrides for each directory variable is required by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14360 +the GNU Coding Standards, and ideally causes no recompilation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14361 +However, some platforms have known limitations with the semantics of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14362 +shared libraries that end up requiring recompilation when using this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14363 +method, particularly noticeable in packages that use GNU Libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14364 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14365 + The second method involves providing the `DESTDIR' variable. For
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14366 +example, `make install DESTDIR=/alternate/directory' will prepend
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14367 +`/alternate/directory' before all installation names. The approach of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14368 +`DESTDIR' overrides is not required by the GNU Coding Standards, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14369 +does not work on platforms that have drive letters. On the other hand,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14370 +it does better at avoiding recompilation issues, and works well even
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14371 +when some directory options were not specified in terms of `${prefix}'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14372 +at `configure' time.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14373 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14374 +Optional Features
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14375 +=================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14376 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14377 + If the package supports it, you can cause programs to be installed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14378 +with an extra prefix or suffix on their names by giving `configure' the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14379 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14380 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14381 + Some packages pay attention to `--enable-FEATURE' options to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14382 +`configure', where FEATURE indicates an optional part of the package.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14383 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14384 +is something like `gnu-as' or `x' (for the X Window System). The
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14385 +`README' should mention any `--enable-' and `--with-' options that the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14386 +package recognizes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14387 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14388 + For packages that use the X Window System, `configure' can usually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14389 +find the X include and library files automatically, but if it doesn't,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14390 +you can use the `configure' options `--x-includes=DIR' and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14391 +`--x-libraries=DIR' to specify their locations.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14392 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14393 + Some packages offer the ability to configure how verbose the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14394 +execution of `make' will be. For these packages, running `./configure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14395 +--enable-silent-rules' sets the default to minimal output, which can be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14396 +overridden with `make V=1'; while running `./configure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14397 +--disable-silent-rules' sets the default to verbose, which can be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14398 +overridden with `make V=0'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14399 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14400 +Particular systems
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14401 +==================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14402 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14403 + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14404 +CC is not installed, it is recommended to use the following options in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14405 +order to use an ANSI C compiler:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14406 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14407 + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14408 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14409 +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14410 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14411 + HP-UX `make' updates targets which have the same time stamps as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14412 +their prerequisites, which makes it generally unusable when shipped
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14413 +generated files such as `configure' are involved. Use GNU `make'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14414 +instead.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14415 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14416 + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14417 +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14418 +a workaround. If GNU CC is not installed, it is therefore recommended
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14419 +to try
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14420 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14421 + ./configure CC="cc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14422 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14423 +and if that doesn't work, try
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14424 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14425 + ./configure CC="cc -nodtk"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14426 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14427 + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14428 +directory contains several dysfunctional programs; working variants of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14429 +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14430 +in your `PATH', put it _after_ `/usr/bin'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14431 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14432 + On Haiku, software installed for all users goes in `/boot/common',
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14433 +not `/usr/local'. It is recommended to use the following options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14434 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14435 + ./configure --prefix=/boot/common
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14436 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14437 +Specifying the System Type
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14438 +==========================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14439 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14440 + There may be some features `configure' cannot figure out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14441 +automatically, but needs to determine by the type of machine the package
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14442 +will run on. Usually, assuming the package is built to be run on the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14443 +_same_ architectures, `configure' can figure that out, but if it prints
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14444 +a message saying it cannot guess the machine type, give it the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14445 +`--build=TYPE' option. TYPE can either be a short name for the system
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14446 +type, such as `sun4', or a canonical name which has the form:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14447 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14448 + CPU-COMPANY-SYSTEM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14449 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14450 +where SYSTEM can have one of these forms:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14451 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14452 + OS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14453 + KERNEL-OS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14454 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14455 + See the file `config.sub' for the possible values of each field. If
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14456 +`config.sub' isn't included in this package, then this package doesn't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14457 +need to know the machine type.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14458 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14459 + If you are _building_ compiler tools for cross-compiling, you should
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14460 +use the option `--target=TYPE' to select the type of system they will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14461 +produce code for.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14462 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14463 + If you want to _use_ a cross compiler, that generates code for a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14464 +platform different from the build platform, you should specify the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14465 +"host" platform (i.e., that on which the generated programs will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14466 +eventually be run) with `--host=TYPE'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14467 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14468 +Sharing Defaults
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14469 +================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14470 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14471 + If you want to set default values for `configure' scripts to share,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14472 +you can create a site shell script called `config.site' that gives
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14473 +default values for variables like `CC', `cache_file', and `prefix'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14474 +`configure' looks for `PREFIX/share/config.site' if it exists, then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14475 +`PREFIX/etc/config.site' if it exists. Or, you can set the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14476 +`CONFIG_SITE' environment variable to the location of the site script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14477 +A warning: not all `configure' scripts look for a site script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14478 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14479 +Defining Variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14480 +==================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14481 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14482 + Variables not defined in a site shell script can be set in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14483 +environment passed to `configure'. However, some packages may run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14484 +configure again during the build, and the customized values of these
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14485 +variables may be lost. In order to avoid this problem, you should set
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14486 +them in the `configure' command line, using `VAR=value'. For example:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14487 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14488 + ./configure CC=/usr/local2/bin/gcc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14489 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14490 +causes the specified `gcc' to be used as the C compiler (unless it is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14491 +overridden in the site shell script).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14492 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14493 +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14494 +an Autoconf limitation. Until the limitation is lifted, you can use
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14495 +this workaround:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14496 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14497 + CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14498 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14499 +`configure' Invocation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14500 +======================
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14501 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14502 + `configure' recognizes the following options to control how it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14503 +operates.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14504 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14505 +`--help'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14506 +`-h'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14507 + Print a summary of all of the options to `configure', and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14509 +`--help=short'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14510 +`--help=recursive'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14511 + Print a summary of the options unique to this package's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14512 + `configure', and exit. The `short' variant lists options used
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14513 + only in the top level, while the `recursive' variant lists options
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14514 + also present in any nested packages.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14515 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14516 +`--version'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14517 +`-V'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14518 + Print the version of Autoconf used to generate the `configure'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14519 + script, and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14520 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14521 +`--cache-file=FILE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14522 + Enable the cache: use and save the results of the tests in FILE,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14523 + traditionally `config.cache'. FILE defaults to `/dev/null' to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14524 + disable caching.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14525 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14526 +`--config-cache'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14527 +`-C'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14528 + Alias for `--cache-file=config.cache'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14529 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14530 +`--quiet'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14531 +`--silent'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14532 +`-q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14533 + Do not print messages saying which checks are being made. To
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14534 + suppress all normal output, redirect it to `/dev/null' (any error
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14535 + messages will still be shown).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14537 +`--srcdir=DIR'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14538 + Look for the package's source code in directory DIR. Usually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14539 + `configure' can determine that directory automatically.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14540 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14541 +`--prefix=DIR'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14542 + Use DIR as the installation prefix. *note Installation Names::
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14543 + for more details, including other options available for fine-tuning
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14544 + the installation locations.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14545 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14546 +`--no-create'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14547 +`-n'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14548 + Run the configure checks, but stop before creating any output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14549 + files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14550 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14551 +`configure' also accepts some other, not widely useful, options. Run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14552 +`configure --help' for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14553 diff -uNr a/install-sh b/install-sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14554 --- a/install-sh 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14555 +++ b/install-sh 2014-12-12 15:22:27.594240341 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14556 @@ -0,0 +1,527 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14557 +#!/bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14558 +# install - install a program, script, or datafile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14559 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14560 +scriptversion=2011-11-20.07; # UTC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14561 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14562 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14563 +# later released in X11R6 (xc/config/util/install.sh) with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14564 +# following copyright and license.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14565 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14566 +# Copyright (C) 1994 X Consortium
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14567 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14568 +# Permission is hereby granted, free of charge, to any person obtaining a copy
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14569 +# of this software and associated documentation files (the "Software"), to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14570 +# deal in the Software without restriction, including without limitation the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14571 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14572 +# sell copies of the Software, and to permit persons to whom the Software is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14573 +# furnished to do so, subject to the following conditions:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14574 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14575 +# The above copyright notice and this permission notice shall be included in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14576 +# all copies or substantial portions of the Software.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14577 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14578 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14579 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14580 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14581 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14582 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14583 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14584 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14585 +# Except as contained in this notice, the name of the X Consortium shall not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14586 +# be used in advertising or otherwise to promote the sale, use or other deal-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14587 +# ings in this Software without prior written authorization from the X Consor-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14588 +# tium.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14589 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14590 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14591 +# FSF changes to this file are in the public domain.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14592 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14593 +# Calling this script install-sh is preferred over install.sh, to prevent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14594 +# 'make' implicit rules from creating a file called install from it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14595 +# when there is no Makefile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14596 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14597 +# This script is compatible with the BSD install script, but was written
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14598 +# from scratch.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14599 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14600 +nl='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14601 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14602 +IFS=" "" $nl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14603 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14604 +# set DOITPROG to echo to test this script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14605 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14606 +# Don't use :- since 4.3BSD and earlier shells don't like it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14607 +doit=${DOITPROG-}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14608 +if test -z "$doit"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14609 + doit_exec=exec
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14610 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14611 + doit_exec=$doit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14612 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14613 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14614 +# Put in absolute file names if you don't have them in your path;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14615 +# or use environment vars.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14616 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14617 +chgrpprog=${CHGRPPROG-chgrp}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14618 +chmodprog=${CHMODPROG-chmod}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14619 +chownprog=${CHOWNPROG-chown}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14620 +cmpprog=${CMPPROG-cmp}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14621 +cpprog=${CPPROG-cp}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14622 +mkdirprog=${MKDIRPROG-mkdir}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14623 +mvprog=${MVPROG-mv}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14624 +rmprog=${RMPROG-rm}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14625 +stripprog=${STRIPPROG-strip}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14626 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14627 +posix_glob='?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14628 +initialize_posix_glob='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14629 + test "$posix_glob" != "?" || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14630 + if (set -f) 2>/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14631 + posix_glob=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14632 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14633 + posix_glob=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14634 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14635 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14636 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14637 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14638 +posix_mkdir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14639 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14640 +# Desired mode of installed file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14641 +mode=0755
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14642 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14643 +chgrpcmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14644 +chmodcmd=$chmodprog
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14645 +chowncmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14646 +mvcmd=$mvprog
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14647 +rmcmd="$rmprog -f"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14648 +stripcmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14649 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14650 +src=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14651 +dst=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14652 +dir_arg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14653 +dst_arg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14654 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14655 +copy_on_change=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14656 +no_target_directory=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14657 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14658 +usage="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14659 +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14660 + or: $0 [OPTION]... SRCFILES... DIRECTORY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14661 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14662 + or: $0 [OPTION]... -d DIRECTORIES...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14663 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14664 +In the 1st form, copy SRCFILE to DSTFILE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14665 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14666 +In the 4th, create DIRECTORIES.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14667 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14668 +Options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14669 + --help display this help and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14670 + --version display version info and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14671 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14672 + -c (ignored)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14673 + -C install only if different (preserve the last data modification time)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14674 + -d create directories instead of installing files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14675 + -g GROUP $chgrpprog installed files to GROUP.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14676 + -m MODE $chmodprog installed files to MODE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14677 + -o USER $chownprog installed files to USER.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14678 + -s $stripprog installed files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14679 + -t DIRECTORY install into DIRECTORY.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14680 + -T report an error if DSTFILE is a directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14681 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14682 +Environment variables override the default commands:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14683 + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14684 + RMPROG STRIPPROG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14685 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14686 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14687 +while test $# -ne 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14688 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14689 + -c) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14690 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14691 + -C) copy_on_change=true;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14692 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14693 + -d) dir_arg=true;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14694 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14695 + -g) chgrpcmd="$chgrpprog $2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14696 + shift;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14697 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14698 + --help) echo "$usage"; exit $?;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14699 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14700 + -m) mode=$2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14701 + case $mode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14702 + *' '* | *' '* | *'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14703 +'* | *'*'* | *'?'* | *'['*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14704 + echo "$0: invalid mode: $mode" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14705 + exit 1;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14706 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14707 + shift;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14708 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14709 + -o) chowncmd="$chownprog $2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14710 + shift;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14711 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14712 + -s) stripcmd=$stripprog;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14713 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14714 + -t) dst_arg=$2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14715 + # Protect names problematic for 'test' and other utilities.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14716 + case $dst_arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14717 + -* | [=\(\)!]) dst_arg=./$dst_arg;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14718 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14719 + shift;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14720 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14721 + -T) no_target_directory=true;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14722 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14723 + --version) echo "$0 $scriptversion"; exit $?;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14724 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14725 + --) shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14726 + break;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14727 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14728 + -*) echo "$0: invalid option: $1" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14729 + exit 1;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14730 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14731 + *) break;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14732 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14733 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14734 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14735 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14736 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14737 + # When -d is used, all remaining arguments are directories to create.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14738 + # When -t is used, the destination is already specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14739 + # Otherwise, the last argument is the destination. Remove it from $@.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14740 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14741 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14742 + if test -n "$dst_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14743 + # $@ is not empty: it contains at least $arg.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14744 + set fnord "$@" "$dst_arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14745 + shift # fnord
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14746 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14747 + shift # arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14748 + dst_arg=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14749 + # Protect names problematic for 'test' and other utilities.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14750 + case $dst_arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14751 + -* | [=\(\)!]) dst_arg=./$dst_arg;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14752 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14753 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14754 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14756 +if test $# -eq 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14757 + if test -z "$dir_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14758 + echo "$0: no input file specified." >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14759 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14760 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14761 + # It's OK to call 'install-sh -d' without argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14762 + # This can happen when creating conditional directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14763 + exit 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14764 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14765 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14766 +if test -z "$dir_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14767 + do_exit='(exit $ret); exit $ret'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14768 + trap "ret=129; $do_exit" 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14769 + trap "ret=130; $do_exit" 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14770 + trap "ret=141; $do_exit" 13
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14771 + trap "ret=143; $do_exit" 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14772 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14773 + # Set umask so as not to create temps with too-generous modes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14774 + # However, 'strip' requires both read and write access to temps.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14775 + case $mode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14776 + # Optimize common cases.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14777 + *644) cp_umask=133;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14778 + *755) cp_umask=22;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14779 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14780 + *[0-7])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14781 + if test -z "$stripcmd"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14782 + u_plus_rw=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14783 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14784 + u_plus_rw='% 200'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14785 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14786 + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14787 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14788 + if test -z "$stripcmd"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14789 + u_plus_rw=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14790 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14791 + u_plus_rw=,u+rw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14792 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14793 + cp_umask=$mode$u_plus_rw;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14794 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14795 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14796 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14797 +for src
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14798 +do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14799 + # Protect names problematic for 'test' and other utilities.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14800 + case $src in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14801 + -* | [=\(\)!]) src=./$src;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14802 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14803 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14804 + if test -n "$dir_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14805 + dst=$src
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14806 + dstdir=$dst
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14807 + test -d "$dstdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14808 + dstdir_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14809 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14810 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14811 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14812 + # might cause directories to be created, which would be especially bad
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14813 + # if $src (and thus $dsttmp) contains '*'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14814 + if test ! -f "$src" && test ! -d "$src"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14815 + echo "$0: $src does not exist." >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14816 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14817 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14818 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14819 + if test -z "$dst_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14820 + echo "$0: no destination specified." >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14821 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14822 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14823 + dst=$dst_arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14824 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14825 + # If destination is a directory, append the input filename; won't work
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14826 + # if double slashes aren't ignored.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14827 + if test -d "$dst"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14828 + if test -n "$no_target_directory"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14829 + echo "$0: $dst_arg: Is a directory" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14830 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14831 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14832 + dstdir=$dst
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14833 + dst=$dstdir/`basename "$src"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14834 + dstdir_status=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14835 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14836 + # Prefer dirname, but fall back on a substitute if dirname fails.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14837 + dstdir=`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14838 + (dirname "$dst") 2>/dev/null ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14839 + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14840 + X"$dst" : 'X\(//\)[^/]' \| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14841 + X"$dst" : 'X\(//\)$' \| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14842 + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14843 + echo X"$dst" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14844 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14845 + s//\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14846 + q
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14847 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14848 + /^X\(\/\/\)[^/].*/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14849 + s//\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14850 + q
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14851 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14852 + /^X\(\/\/\)$/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14853 + s//\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14854 + q
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14855 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14856 + /^X\(\/\).*/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14857 + s//\1/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14858 + q
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14859 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14860 + s/.*/./; q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14861 + `
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14862 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14863 + test -d "$dstdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14864 + dstdir_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14865 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14866 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14867 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14868 + obsolete_mkdir_used=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14869 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14870 + if test $dstdir_status != 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14871 + case $posix_mkdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14872 + '')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14873 + # Create intermediate dirs using mode 755 as modified by the umask.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14874 + # This is like FreeBSD 'install' as of 1997-10-28.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14875 + umask=`umask`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14876 + case $stripcmd.$umask in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14877 + # Optimize common cases.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14878 + *[2367][2367]) mkdir_umask=$umask;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14879 + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14880 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14881 + *[0-7])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14882 + mkdir_umask=`expr $umask + 22 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14883 + - $umask % 100 % 40 + $umask % 20 \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14884 + - $umask % 10 % 4 + $umask % 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14885 + `;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14886 + *) mkdir_umask=$umask,go-w;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14887 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14888 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14889 + # With -d, create the new directory with the user-specified mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14890 + # Otherwise, rely on $mkdir_umask.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14891 + if test -n "$dir_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14892 + mkdir_mode=-m$mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14893 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14894 + mkdir_mode=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14895 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14896 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14897 + posix_mkdir=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14898 + case $umask in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14899 + *[123567][0-7][0-7])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14900 + # POSIX mkdir -p sets u+wx bits regardless of umask, which
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14901 + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14902 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14903 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14904 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14905 + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14907 + if (umask $mkdir_umask &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14908 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14909 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14910 + if test -z "$dir_arg" || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14911 + # Check for POSIX incompatibilities with -m.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14912 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14913 + # other-writable bit of parent directory when it shouldn't.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14914 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14915 + ls_ld_tmpdir=`ls -ld "$tmpdir"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14916 + case $ls_ld_tmpdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14917 + d????-?r-*) different_mode=700;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14918 + d????-?--*) different_mode=755;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14919 + *) false;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14920 + esac &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14921 + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14922 + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14923 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14924 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14925 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14926 + then posix_mkdir=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14927 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14928 + rmdir "$tmpdir/d" "$tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14929 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14930 + # Remove any dirs left behind by ancient mkdir implementations.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14931 + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14932 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14933 + trap '' 0;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14934 + esac;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14935 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14936 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14937 + if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14938 + $posix_mkdir && (
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14939 + umask $mkdir_umask &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14940 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14941 + )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14942 + then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14943 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14944 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14945 + # The umask is ridiculous, or mkdir does not conform to POSIX,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14946 + # or it failed possibly due to a race condition. Create the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14947 + # directory the slow way, step by step, checking for races as we go.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14948 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14949 + case $dstdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14950 + /*) prefix='/';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14951 + [-=\(\)!]*) prefix='./';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14952 + *) prefix='';;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14953 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14954 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14955 + eval "$initialize_posix_glob"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14956 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14957 + oIFS=$IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14958 + IFS=/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14959 + $posix_glob set -f
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14960 + set fnord $dstdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14961 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14962 + $posix_glob set +f
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14963 + IFS=$oIFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14964 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14965 + prefixes=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14966 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14967 + for d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14968 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14969 + test X"$d" = X && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14970 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14971 + prefix=$prefix$d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14972 + if test -d "$prefix"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14973 + prefixes=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14974 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14975 + if $posix_mkdir; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14976 + (umask=$mkdir_umask &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14977 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14978 + # Don't fail if two instances are running concurrently.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14979 + test -d "$prefix" || exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14980 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14981 + case $prefix in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14982 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14983 + *) qprefix=$prefix;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14984 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14985 + prefixes="$prefixes '$qprefix'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14986 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14987 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14988 + prefix=$prefix/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14989 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14990 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14991 + if test -n "$prefixes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14992 + # Don't fail if two instances are running concurrently.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14993 + (umask $mkdir_umask &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14994 + eval "\$doit_exec \$mkdirprog $prefixes") ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14995 + test -d "$dstdir" || exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14996 + obsolete_mkdir_used=true
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14997 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14998 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14999 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15000 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15001 + if test -n "$dir_arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15002 + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15003 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15004 + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15005 + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15006 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15007 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15008 + # Make a couple of temp file names in the proper directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15009 + dsttmp=$dstdir/_inst.$$_
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15010 + rmtmp=$dstdir/_rm.$$_
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15011 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15012 + # Trap to clean up those temp files at exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15013 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15014 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15015 + # Copy the file name to the temp name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15016 + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15017 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15018 + # and set any options; do chmod last to preserve setuid bits.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15019 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15020 + # If any of these fail, we abort the whole thing. If we want to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15021 + # ignore errors from any of these, just make sure not to ignore
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15022 + # errors from the above "$doit $cpprog $src $dsttmp" command.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15023 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15024 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15025 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15026 + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15027 + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15028 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15029 + # If -C, don't bother to copy if it wouldn't change the file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15030 + if $copy_on_change &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15031 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15032 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15033 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15034 + eval "$initialize_posix_glob" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15035 + $posix_glob set -f &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15036 + set X $old && old=:$2:$4:$5:$6 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15037 + set X $new && new=:$2:$4:$5:$6 &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15038 + $posix_glob set +f &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15039 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15040 + test "$old" = "$new" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15041 + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15042 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15043 + rm -f "$dsttmp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15044 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15045 + # Rename the file to the real destination.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15046 + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15047 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15048 + # The rename failed, perhaps because mv can't rename something else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15049 + # to itself, or perhaps because mv is so ancient that it does not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15050 + # support -f.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15051 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15052 + # Now remove or move aside any old file at destination location.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15053 + # We try this two ways since rm can't unlink itself on some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15054 + # systems and the destination file might be busy for other
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15055 + # reasons. In this case, the final cleanup might fail but the new
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15056 + # file should still install successfully.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15057 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15058 + test ! -f "$dst" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15059 + $doit $rmcmd -f "$dst" 2>/dev/null ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15060 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15061 + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15062 + } ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15063 + { echo "$0: cannot unlink or rename $dst" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15064 + (exit 1); exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15065 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15066 + } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15067 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15068 + # Now rename the file to the real destination.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15069 + $doit $mvcmd "$dsttmp" "$dst"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15070 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15071 + fi || exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15072 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15073 + trap '' 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15074 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15075 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15076 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15077 +# Local variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15078 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15079 +# time-stamp-start: "scriptversion="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15080 +# time-stamp-format: "%:y-%02m-%02d.%02H"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15081 +# time-stamp-time-zone: "UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15082 +# time-stamp-end: "; # UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15083 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15084 diff -uNr a/ltmain.sh b/ltmain.sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15085 --- a/ltmain.sh 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15086 +++ b/ltmain.sh 2014-12-12 15:22:32.314086261 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15087 @@ -0,0 +1,9661 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15088 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15089 +# libtool (GNU libtool) 2.4.2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15090 +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15091 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15092 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15093 +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15094 +# This is free software; see the source for copying conditions. There is NO
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15095 +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15097 +# GNU Libtool is free software; you can redistribute it and/or modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15098 +# it under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15099 +# the Free Software Foundation; either version 2 of the License, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15100 +# (at your option) any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15101 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15102 +# As a special exception to the GNU General Public License,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15103 +# if you distribute this file as part of a program or library that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15104 +# is built using GNU Libtool, you may include this file under the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15105 +# same distribution terms that you use for the rest of that program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15106 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15107 +# GNU Libtool is distributed in the hope that it will be useful, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15108 +# WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15109 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15110 +# General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15111 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15112 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15113 +# along with GNU Libtool; see the file COPYING. If not, a copy
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15114 +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15115 +# or obtained by writing to the Free Software Foundation, Inc.,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15116 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15117 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15118 +# Usage: $progname [OPTION]... [MODE-ARG]...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15119 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15120 +# Provide generalized library-building support services.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15121 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15122 +# --config show all configuration variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15123 +# --debug enable verbose shell tracing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15124 +# -n, --dry-run display commands without modifying any files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15125 +# --features display basic configuration information and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15126 +# --mode=MODE use operation mode MODE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15127 +# --preserve-dup-deps don't remove duplicate dependency libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15128 +# --quiet, --silent don't print informational messages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15129 +# --no-quiet, --no-silent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15130 +# print informational messages (default)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15131 +# --no-warn don't display warning messages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15132 +# --tag=TAG use configuration variables from tag TAG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15133 +# -v, --verbose print more informational messages than default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15134 +# --no-verbose don't print the extra informational messages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15135 +# --version print version information
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15136 +# -h, --help, --help-all print short, long, or detailed help message
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15137 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15138 +# MODE must be one of the following:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15139 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15140 +# clean remove files from the build directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15141 +# compile compile a source file into a libtool object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15142 +# execute automatically set library path, then run a program
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15143 +# finish complete the installation of libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15144 +# install install libraries or executables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15145 +# link create a library or an executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15146 +# uninstall remove libraries from an installed directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15147 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15148 +# MODE-ARGS vary depending on the MODE. When passed as first option,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15149 +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15150 +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15151 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15152 +# When reporting a bug, please describe a test case to reproduce it and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15153 +# include the following information:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15154 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15155 +# host-triplet: $host
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15156 +# shell: $SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15157 +# compiler: $LTCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15158 +# compiler flags: $LTCFLAGS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15159 +# linker: $LD (gnu? $with_gnu_ld)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15160 +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15161 +# automake: $automake_version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15162 +# autoconf: $autoconf_version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15163 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15164 +# Report bugs to <bug-libtool@gnu.org>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15165 +# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15166 +# General help using GNU software: <http://www.gnu.org/gethelp/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15167 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15168 +PROGRAM=libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15169 +PACKAGE=libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15170 +VERSION="2.4.2 Debian-2.4.2-1.11"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15171 +TIMESTAMP=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15172 +package_revision=1.3337
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15173 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15174 +# Be Bourne compatible
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15175 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15176 + emulate sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15177 + NULLCMD=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15178 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15179 + # is contrary to our usage. Disable this feature.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15180 + alias -g '${1+"$@"}'='"$@"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15181 + setopt NO_GLOB_SUBST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15182 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15183 + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15184 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15185 +BIN_SH=xpg4; export BIN_SH # for Tru64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15186 +DUALCASE=1; export DUALCASE # for MKS sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15187 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15188 +# A function that is used when there is no print builtin or printf.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15189 +func_fallback_echo ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15190 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15191 + eval 'cat <<_LTECHO_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15192 +$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15193 +_LTECHO_EOF'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15194 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15195 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15196 +# NLS nuisances: We save the old values to restore during execute mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15197 +lt_user_locale=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15198 +lt_safe_locale=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15199 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15200 +do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15201 + eval "if test \"\${$lt_var+set}\" = set; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15202 + save_$lt_var=\$$lt_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15203 + $lt_var=C
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15204 + export $lt_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15205 + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15206 + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15207 + fi"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15208 +done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15209 +LC_ALL=C
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15210 +LANGUAGE=C
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15211 +export LANGUAGE LC_ALL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15212 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15213 +$lt_unset CDPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15214 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15215 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15216 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15217 +# is ksh but when the shell is invoked as "sh" and the current value of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15218 +# the _XPG environment variable is not equal to 1 (one), the special
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15219 +# positional parameter $0, within a function call, is the name of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15220 +# function.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15221 +progpath="$0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15222 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15223 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15224 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15225 +: ${CP="cp -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15226 +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15227 +: ${MAKE="make"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15228 +: ${MKDIR="mkdir"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15229 +: ${MV="mv -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15230 +: ${RM="rm -f"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15231 +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15232 +: ${Xsed="$SED -e 1s/^X//"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15233 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15234 +# Global variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15235 +EXIT_SUCCESS=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15236 +EXIT_FAILURE=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15237 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15238 +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15239 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15240 +exit_status=$EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15241 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15242 +# Make sure IFS has a sensible default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15243 +lt_nl='
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15244 +'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15245 +IFS=" $lt_nl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15246 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15247 +dirname="s,/[^/]*$,,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15248 +basename="s,^.*/,,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15249 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15250 +# func_dirname file append nondir_replacement
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15251 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15252 +# otherwise set result to NONDIR_REPLACEMENT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15253 +func_dirname ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15254 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15255 + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15256 + if test "X$func_dirname_result" = "X${1}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15257 + func_dirname_result="${3}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15258 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15259 + func_dirname_result="$func_dirname_result${2}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15260 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15261 +} # func_dirname may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15262 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15263 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15264 +# func_basename file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15265 +func_basename ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15266 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15267 + func_basename_result=`$ECHO "${1}" | $SED "$basename"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15268 +} # func_basename may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15269 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15270 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15271 +# func_dirname_and_basename file append nondir_replacement
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15272 +# perform func_basename and func_dirname in a single function
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15273 +# call:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15274 +# dirname: Compute the dirname of FILE. If nonempty,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15275 +# add APPEND to the result, otherwise set result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15276 +# to NONDIR_REPLACEMENT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15277 +# value returned in "$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15278 +# basename: Compute filename of FILE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15279 +# value retuned in "$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15280 +# Implementation must be kept synchronized with func_dirname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15281 +# and func_basename. For efficiency, we do not delegate to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15282 +# those functions but instead duplicate the functionality here.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15283 +func_dirname_and_basename ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15284 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15285 + # Extract subdirectory from the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15286 + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15287 + if test "X$func_dirname_result" = "X${1}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15288 + func_dirname_result="${3}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15289 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15290 + func_dirname_result="$func_dirname_result${2}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15291 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15292 + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15293 +} # func_dirname_and_basename may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15294 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15295 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15296 +# func_stripname prefix suffix name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15297 +# strip PREFIX and SUFFIX off of NAME.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15298 +# PREFIX and SUFFIX must not contain globbing or regex special
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15299 +# characters, hashes, percent signs, but SUFFIX may contain a leading
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15300 +# dot (in which case that matches only a dot).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15301 +# func_strip_suffix prefix name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15302 +func_stripname ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15303 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15304 + case ${2} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15305 + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15306 + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15307 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15308 +} # func_stripname may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15309 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15310 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15311 +# These SED scripts presuppose an absolute path with a trailing slash.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15312 +pathcar='s,^/\([^/]*\).*$,\1,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15313 +pathcdr='s,^/[^/]*,,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15314 +removedotparts=':dotsl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15315 + s@/\./@/@g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15316 + t dotsl
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15317 + s,/\.$,/,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15318 +collapseslashes='s@/\{1,\}@/@g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15319 +finalslash='s,/*$,/,'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15320 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15321 +# func_normal_abspath PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15322 +# Remove doubled-up and trailing slashes, "." path components,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15323 +# and cancel out any ".." path components in PATH after making
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15324 +# it an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15325 +# value returned in "$func_normal_abspath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15326 +func_normal_abspath ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15327 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15328 + # Start from root dir and reassemble the path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15329 + func_normal_abspath_result=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15330 + func_normal_abspath_tpath=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15331 + func_normal_abspath_altnamespace=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15332 + case $func_normal_abspath_tpath in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15333 + "")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15334 + # Empty path, that just means $cwd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15335 + func_stripname '' '/' "`pwd`"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15336 + func_normal_abspath_result=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15337 + return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15338 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15339 + # The next three entries are used to spot a run of precisely
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15340 + # two leading slashes without using negated character classes;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15341 + # we take advantage of case's first-match behaviour.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15342 + ///*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15343 + # Unusual form of absolute path, do nothing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15344 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15345 + //*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15346 + # Not necessarily an ordinary path; POSIX reserves leading '//'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15347 + # and for example Cygwin uses it to access remote file shares
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15348 + # over CIFS/SMB, so we conserve a leading double slash if found.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15349 + func_normal_abspath_altnamespace=/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15350 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15351 + /*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15352 + # Absolute path, do nothing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15354 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15355 + # Relative path, prepend $cwd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15356 + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15357 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15358 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15359 + # Cancel out all the simple stuff to save iterations. We also want
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15360 + # the path to end with a slash for ease of parsing, so make sure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15361 + # there is one (and only one) here.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15362 + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15363 + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15364 + while :; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15365 + # Processed it all yet?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15366 + if test "$func_normal_abspath_tpath" = / ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15367 + # If we ascended to the root using ".." the result may be empty now.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15368 + if test -z "$func_normal_abspath_result" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15369 + func_normal_abspath_result=/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15370 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15371 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15372 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15373 + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15374 + -e "$pathcar"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15375 + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15376 + -e "$pathcdr"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15377 + # Figure out what to do with it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15378 + case $func_normal_abspath_tcomponent in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15379 + "")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15380 + # Trailing empty path component, ignore it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15381 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15382 + ..)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15383 + # Parent dir; strip last assembled component from result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15384 + func_dirname "$func_normal_abspath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15385 + func_normal_abspath_result=$func_dirname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15386 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15387 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15388 + # Actual path component, append it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15389 + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15390 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15391 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15392 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15393 + # Restore leading double-slash if one was found on entry.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15394 + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15395 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15396 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15397 +# func_relative_path SRCDIR DSTDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15398 +# generates a relative path from SRCDIR to DSTDIR, with a trailing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15399 +# slash if non-empty, suitable for immediately appending a filename
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15400 +# without needing to append a separator.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15401 +# value returned in "$func_relative_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15402 +func_relative_path ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15403 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15404 + func_relative_path_result=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15405 + func_normal_abspath "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15406 + func_relative_path_tlibdir=$func_normal_abspath_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15407 + func_normal_abspath "$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15408 + func_relative_path_tbindir=$func_normal_abspath_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15409 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15410 + # Ascend the tree starting from libdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15411 + while :; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15412 + # check if we have found a prefix of bindir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15413 + case $func_relative_path_tbindir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15414 + $func_relative_path_tlibdir)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15415 + # found an exact match
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15416 + func_relative_path_tcancelled=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15417 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15418 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15419 + $func_relative_path_tlibdir*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15420 + # found a matching prefix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15421 + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15422 + func_relative_path_tcancelled=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15423 + if test -z "$func_relative_path_result"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15424 + func_relative_path_result=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15425 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15426 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15427 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15428 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15429 + func_dirname $func_relative_path_tlibdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15430 + func_relative_path_tlibdir=${func_dirname_result}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15431 + if test "x$func_relative_path_tlibdir" = x ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15432 + # Have to descend all the way to the root!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15433 + func_relative_path_result=../$func_relative_path_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15434 + func_relative_path_tcancelled=$func_relative_path_tbindir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15435 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15436 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15437 + func_relative_path_result=../$func_relative_path_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15438 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15439 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15440 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15442 + # Now calculate path; take care to avoid doubling-up slashes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15443 + func_stripname '' '/' "$func_relative_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15444 + func_relative_path_result=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15445 + func_stripname '/' '/' "$func_relative_path_tcancelled"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15446 + if test "x$func_stripname_result" != x ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15447 + func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15448 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15449 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15450 + # Normalisation. If bindir is libdir, return empty string,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15451 + # else relative path ending with a slash; either way, target
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15452 + # file name can be directly appended.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15453 + if test ! -z "$func_relative_path_result"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15454 + func_stripname './' '' "$func_relative_path_result/"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15455 + func_relative_path_result=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15456 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15457 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15458 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15459 +# The name of this program:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15460 +func_dirname_and_basename "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15461 +progname=$func_basename_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15462 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15463 +# Make sure we have an absolute path for reexecution:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15464 +case $progpath in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15465 + [\\/]*|[A-Za-z]:\\*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15466 + *[\\/]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15467 + progdir=$func_dirname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15468 + progdir=`cd "$progdir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15469 + progpath="$progdir/$progname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15470 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15471 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15472 + save_IFS="$IFS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15473 + IFS=${PATH_SEPARATOR-:}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15474 + for progdir in $PATH; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15475 + IFS="$save_IFS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15476 + test -x "$progdir/$progname" && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15477 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15478 + IFS="$save_IFS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15479 + test -n "$progdir" || progdir=`pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15480 + progpath="$progdir/$progname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15481 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15482 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15483 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15484 +# Sed substitution that helps us do robust quoting. It backslashifies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15485 +# metacharacters that are still active within double-quoted strings.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15486 +Xsed="${SED}"' -e 1s/^X//'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15487 +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15488 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15489 +# Same as above, but do not quote variable references.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15490 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15491 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15492 +# Sed substitution that turns a string into a regex matching for the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15493 +# string literally.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15494 +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15495 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15496 +# Sed substitution that converts a w32 file name or path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15497 +# which contains forward slashes, into one that contains
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15498 +# (escaped) backslashes. A very naive implementation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15499 +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15500 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15501 +# Re-`\' parameter expansions in output of double_quote_subst that were
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15502 +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15503 +# in input to double_quote_subst, that '$' was protected from expansion.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15504 +# Since each input `\' is now two `\'s, look for any number of runs of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15505 +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15506 +bs='\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15507 +bs2='\\\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15508 +bs4='\\\\\\\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15509 +dollar='\$'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15510 +sed_double_backslash="\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15511 + s/$bs4/&\\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15512 +/g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15513 + s/^$bs2$dollar/$bs&/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15514 + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15515 + s/\n//g"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15517 +# Standard options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15518 +opt_dry_run=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15519 +opt_help=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15520 +opt_quiet=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15521 +opt_verbose=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15522 +opt_warning=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15523 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15524 +# func_echo arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15525 +# Echo program name prefixed message, along with the current mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15526 +# name if it has been set yet.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15527 +func_echo ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15528 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15529 + $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15530 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15531 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15532 +# func_verbose arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15533 +# Echo program name prefixed message in verbose mode only.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15534 +func_verbose ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15535 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15536 + $opt_verbose && func_echo ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15537 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15538 + # A bug in bash halts the script if the last line of a function
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15539 + # fails when set -e is in force, so we need another command to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15540 + # work around that:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15541 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15542 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15543 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15544 +# func_echo_all arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15545 +# Invoke $ECHO with all args, space-separated.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15546 +func_echo_all ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15547 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15548 + $ECHO "$*"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15549 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15550 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15551 +# func_error arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15552 +# Echo program name prefixed message to standard error.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15553 +func_error ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15554 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15555 + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15556 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15557 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15558 +# func_warning arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15559 +# Echo program name prefixed warning message to standard error.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15560 +func_warning ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15561 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15562 + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15563 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15564 + # bash bug again:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15565 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15566 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15567 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15568 +# func_fatal_error arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15569 +# Echo program name prefixed message to standard error, and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15570 +func_fatal_error ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15571 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15572 + func_error ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15573 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15574 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15575 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15576 +# func_fatal_help arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15577 +# Echo program name prefixed message to standard error, followed by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15578 +# a help hint, and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15579 +func_fatal_help ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15580 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15581 + func_error ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15582 + func_fatal_error "$help"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15583 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15584 +help="Try \`$progname --help' for more information." ## default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15585 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15587 +# func_grep expression filename
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15588 +# Check whether EXPRESSION matches any line of FILENAME, without output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15589 +func_grep ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15590 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15591 + $GREP "$1" "$2" >/dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15592 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15593 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15594 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15595 +# func_mkdir_p directory-path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15596 +# Make sure the entire path to DIRECTORY-PATH is available.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15597 +func_mkdir_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15598 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15599 + my_directory_path="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15600 + my_dir_list=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15601 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15602 + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15603 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15604 + # Protect directory names starting with `-'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15605 + case $my_directory_path in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15606 + -*) my_directory_path="./$my_directory_path" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15607 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15608 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15609 + # While some portion of DIR does not yet exist...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15610 + while test ! -d "$my_directory_path"; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15611 + # ...make a list in topmost first order. Use a colon delimited
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15612 + # list incase some portion of path contains whitespace.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15613 + my_dir_list="$my_directory_path:$my_dir_list"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15614 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15615 + # If the last portion added has no slash in it, the list is done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15616 + case $my_directory_path in */*) ;; *) break ;; esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15617 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15618 + # ...otherwise throw away the child directory and loop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15619 + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15620 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15621 + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15622 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15623 + save_mkdir_p_IFS="$IFS"; IFS=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15624 + for my_dir in $my_dir_list; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15625 + IFS="$save_mkdir_p_IFS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15626 + # mkdir can fail with a `File exist' error if two processes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15627 + # try to create one of the directories concurrently. Don't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15628 + # stop in that case!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15629 + $MKDIR "$my_dir" 2>/dev/null || :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15630 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15631 + IFS="$save_mkdir_p_IFS"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15632 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15633 + # Bail out if we (or some other process) failed to create a directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15634 + test -d "$my_directory_path" || \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15635 + func_fatal_error "Failed to create \`$1'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15636 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15637 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15638 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15639 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15640 +# func_mktempdir [string]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15641 +# Make a temporary directory that won't clash with other running
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15642 +# libtool processes, and avoids race conditions if possible. If
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15643 +# given, STRING is the basename for that directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15644 +func_mktempdir ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15645 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15646 + my_template="${TMPDIR-/tmp}/${1-$progname}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15647 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15648 + if test "$opt_dry_run" = ":"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15649 + # Return a directory name, but don't create it in dry-run mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15650 + my_tmpdir="${my_template}-$$"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15651 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15652 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15653 + # If mktemp works, use that first and foremost
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15654 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15655 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15656 + if test ! -d "$my_tmpdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15657 + # Failing that, at least try and use $RANDOM to avoid a race
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15658 + my_tmpdir="${my_template}-${RANDOM-0}$$"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15659 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15660 + save_mktempdir_umask=`umask`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15661 + umask 0077
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15662 + $MKDIR "$my_tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15663 + umask $save_mktempdir_umask
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15664 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15665 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15666 + # If we're not in dry-run mode, bomb out on failure
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15667 + test -d "$my_tmpdir" || \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15668 + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15669 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15670 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15671 + $ECHO "$my_tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15672 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15673 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15674 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15675 +# func_quote_for_eval arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15676 +# Aesthetically quote ARG to be evaled later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15677 +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15678 +# is double-quoted, suitable for a subsequent eval, whereas
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15679 +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15680 +# which are still active within double quotes backslashified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15681 +func_quote_for_eval ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15682 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15683 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15684 + *[\\\`\"\$]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15685 + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15686 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15687 + func_quote_for_eval_unquoted_result="$1" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15688 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15689 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15690 + case $func_quote_for_eval_unquoted_result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15691 + # Double-quote args containing shell metacharacters to delay
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15692 + # word splitting, command substitution and and variable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15693 + # expansion for a subsequent eval.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15694 + # Many Bourne shells cannot handle close brackets correctly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15695 + # in scan sets, so we specify it separately.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15696 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15697 + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15698 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15699 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15700 + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15701 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15702 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15703 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15704 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15705 +# func_quote_for_expand arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15706 +# Aesthetically quote ARG to be evaled later; same as above,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15707 +# but do not quote variable references.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15708 +func_quote_for_expand ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15709 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15710 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15711 + *[\\\`\"]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15712 + my_arg=`$ECHO "$1" | $SED \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15713 + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15714 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15715 + my_arg="$1" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15716 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15717 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15718 + case $my_arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15719 + # Double-quote args containing shell metacharacters to delay
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15720 + # word splitting and command substitution for a subsequent eval.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15721 + # Many Bourne shells cannot handle close brackets correctly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15722 + # in scan sets, so we specify it separately.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15723 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15724 + my_arg="\"$my_arg\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15725 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15726 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15727 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15728 + func_quote_for_expand_result="$my_arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15729 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15730 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15731 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15732 +# func_show_eval cmd [fail_exp]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15733 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15734 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15735 +# is given, then evaluate it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15736 +func_show_eval ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15737 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15738 + my_cmd="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15739 + my_fail_exp="${2-:}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15740 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15741 + ${opt_silent-false} || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15742 + func_quote_for_expand "$my_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15743 + eval "func_echo $func_quote_for_expand_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15744 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15745 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15746 + if ${opt_dry_run-false}; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15747 + eval "$my_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15748 + my_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15749 + if test "$my_status" -eq 0; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15750 + eval "(exit $my_status); $my_fail_exp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15751 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15752 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15753 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15754 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15756 +# func_show_eval_locale cmd [fail_exp]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15757 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15758 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15759 +# is given, then evaluate it. Use the saved locale for evaluation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15760 +func_show_eval_locale ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15761 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15762 + my_cmd="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15763 + my_fail_exp="${2-:}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15764 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15765 + ${opt_silent-false} || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15766 + func_quote_for_expand "$my_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15767 + eval "func_echo $func_quote_for_expand_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15768 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15769 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15770 + if ${opt_dry_run-false}; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15771 + eval "$lt_user_locale
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15772 + $my_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15773 + my_status=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15774 + eval "$lt_safe_locale"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15775 + if test "$my_status" -eq 0; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15776 + eval "(exit $my_status); $my_fail_exp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15777 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15778 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15779 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15781 +# func_tr_sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15782 +# Turn $1 into a string suitable for a shell variable name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15783 +# Result is stored in $func_tr_sh_result. All characters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15784 +# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15785 +# if $1 begins with a digit, a '_' is prepended as well.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15786 +func_tr_sh ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15787 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15788 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15789 + [0-9]* | *[!a-zA-Z0-9_]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15790 + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15791 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15792 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15793 + func_tr_sh_result=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15794 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15795 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15796 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15797 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15798 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15799 +# func_version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15800 +# Echo version message to standard output and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15801 +func_version ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15802 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15803 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15804 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15805 + $SED -n '/(C)/!b go
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15806 + :more
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15807 + /\./!{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15808 + N
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15809 + s/\n# / /
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15810 + b more
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15811 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15812 + :go
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15813 + /^# '$PROGRAM' (GNU /,/# warranty; / {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15814 + s/^# //
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15815 + s/^# *$//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15816 + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15817 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15818 + }' < "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15819 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15820 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15821 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15822 +# func_usage
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15823 +# Echo short help message to standard output and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15824 +func_usage ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15825 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15826 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15827 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15828 + $SED -n '/^# Usage:/,/^# *.*--help/ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15829 + s/^# //
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15830 + s/^# *$//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15831 + s/\$progname/'$progname'/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15832 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15833 + }' < "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15834 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15835 + $ECHO "run \`$progname --help | more' for full usage"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15836 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15837 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15838 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15839 +# func_help [NOEXIT]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15840 +# Echo long help message to standard output and exit,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15841 +# unless 'noexit' is passed as argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15842 +func_help ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15843 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15844 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15845 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15846 + $SED -n '/^# Usage:/,/# Report bugs to/ {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15847 + :print
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15848 + s/^# //
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15849 + s/^# *$//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15850 + s*\$progname*'$progname'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15851 + s*\$host*'"$host"'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15852 + s*\$SHELL*'"$SHELL"'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15853 + s*\$LTCC*'"$LTCC"'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15854 + s*\$LTCFLAGS*'"$LTCFLAGS"'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15855 + s*\$LD*'"$LD"'*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15856 + s/\$with_gnu_ld/'"$with_gnu_ld"'/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15857 + s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15858 + s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15859 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15860 + d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15861 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15862 + /^# .* home page:/b print
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15863 + /^# General help using/b print
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15864 + ' < "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15865 + ret=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15866 + if test -z "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15867 + exit $ret
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15868 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15869 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15870 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15871 +# func_missing_arg argname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15872 +# Echo program name prefixed message to standard error and set global
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15873 +# exit_cmd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15874 +func_missing_arg ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15875 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15876 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15877 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15878 + func_error "missing argument for $1."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15879 + exit_cmd=exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15880 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15881 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15882 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15883 +# func_split_short_opt shortopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15884 +# Set func_split_short_opt_name and func_split_short_opt_arg shell
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15885 +# variables after splitting SHORTOPT after the 2nd character.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15886 +func_split_short_opt ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15887 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15888 + my_sed_short_opt='1s/^\(..\).*$/\1/;q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15889 + my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15890 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15891 + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15892 + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15893 +} # func_split_short_opt may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15894 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15895 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15896 +# func_split_long_opt longopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15897 +# Set func_split_long_opt_name and func_split_long_opt_arg shell
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15898 +# variables after splitting LONGOPT at the `=' sign.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15899 +func_split_long_opt ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15900 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15901 + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15902 + my_sed_long_arg='1s/^--[^=]*=//'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15903 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15904 + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15905 + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15906 +} # func_split_long_opt may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15907 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15908 +exit_cmd=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15909 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15910 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15911 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15912 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15913 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15914 +magic="%%%MAGIC variable%%%"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15915 +magic_exe="%%%MAGIC EXE variable%%%"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15916 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15917 +# Global variables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15918 +nonopt=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15919 +preserve_args=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15920 +lo2o="s/\\.lo\$/.${objext}/"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15921 +o2lo="s/\\.${objext}\$/.lo/"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15922 +extracted_archives=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15923 +extracted_serial=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15924 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15925 +# If this variable is set in any of the actions, the command in it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15926 +# will be execed at the end. This prevents here-documents from being
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15927 +# left over by shells.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15928 +exec_cmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15929 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15930 +# func_append var value
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15931 +# Append VALUE to the end of shell variable VAR.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15932 +func_append ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15933 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15934 + eval "${1}=\$${1}\${2}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15935 +} # func_append may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15936 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15937 +# func_append_quoted var value
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15938 +# Quote VALUE and append to the end of shell variable VAR, separated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15939 +# by a space.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15940 +func_append_quoted ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15941 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15942 + func_quote_for_eval "${2}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15943 + eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15944 +} # func_append_quoted may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15945 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15946 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15947 +# func_arith arithmetic-term...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15948 +func_arith ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15949 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15950 + func_arith_result=`expr "${@}"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15951 +} # func_arith may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15952 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15953 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15954 +# func_len string
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15955 +# STRING may not start with a hyphen.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15956 +func_len ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15957 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15958 + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15959 +} # func_len may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15960 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15961 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15962 +# func_lo2o object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15963 +func_lo2o ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15964 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15965 + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15966 +} # func_lo2o may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15967 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15968 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15969 +# func_xform libobj-or-source
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15970 +func_xform ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15971 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15972 + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15973 +} # func_xform may be replaced by extended shell implementation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15974 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15975 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15976 +# func_fatal_configuration arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15977 +# Echo program name prefixed message to standard error, followed by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15978 +# a configuration failure hint, and exit.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15979 +func_fatal_configuration ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15980 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15981 + func_error ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15982 + func_error "See the $PACKAGE documentation for more information."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15983 + func_fatal_error "Fatal configuration error."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15984 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15985 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15986 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15987 +# func_config
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15988 +# Display the configuration for all the tags in this script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15989 +func_config ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15990 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15991 + re_begincf='^# ### BEGIN LIBTOOL'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15992 + re_endcf='^# ### END LIBTOOL'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15993 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15994 + # Default configuration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15995 + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15996 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15997 + # Now print the configurations for the tags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15998 + for tagname in $taglist; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15999 + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16000 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16001 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16002 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16003 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16004 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16005 +# func_features
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16006 +# Display the features supported by this script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16007 +func_features ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16008 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16009 + echo "host: $host"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16010 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16011 + echo "enable shared libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16012 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16013 + echo "disable shared libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16014 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16015 + if test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16016 + echo "enable static libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16017 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16018 + echo "disable static libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16019 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16020 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16021 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16022 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16023 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16024 +# func_enable_tag tagname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16025 +# Verify that TAGNAME is valid, and either flag an error and exit, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16026 +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16027 +# variable here.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16028 +func_enable_tag ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16029 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16030 + # Global variable:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16031 + tagname="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16032 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16033 + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16034 + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16035 + sed_extractcf="/$re_begincf/,/$re_endcf/p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16036 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16037 + # Validate tagname.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16038 + case $tagname in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16039 + *[!-_A-Za-z0-9,/]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16040 + func_fatal_error "invalid tag name: $tagname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16041 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16042 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16043 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16044 + # Don't test for the "default" C tag, as we know it's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16045 + # there but not specially marked.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16046 + case $tagname in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16047 + CC) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16048 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16049 + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16050 + taglist="$taglist $tagname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16051 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16052 + # Evaluate the configuration. Be careful to quote the path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16053 + # and the sed script, to avoid splitting on whitespace, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16054 + # also don't use non-portable quotes within backquotes within
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16055 + # quotes we have to do it in 2 steps:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16056 + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16057 + eval "$extractedcf"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16058 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16059 + func_error "ignoring unknown tag $tagname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16060 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16061 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16062 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16063 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16064 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16065 +# func_check_version_match
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16066 +# Ensure that we are using m4 macros, and libtool script from the same
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16067 +# release of libtool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16068 +func_check_version_match ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16069 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16070 + if test "$package_revision" != "$macro_revision"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16071 + if test "$VERSION" != "$macro_version"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16072 + if test -z "$macro_version"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16073 + cat >&2 <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16074 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16075 +$progname: definition of this LT_INIT comes from an older release.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16076 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16077 +$progname: and run autoconf again.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16078 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16079 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16080 + cat >&2 <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16081 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16082 +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16083 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16084 +$progname: and run autoconf again.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16085 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16086 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16087 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16088 + cat >&2 <<_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16089 +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16090 +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16091 +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16092 +$progname: of $PACKAGE $VERSION and run autoconf again.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16093 +_LT_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16094 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16095 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16096 + exit $EXIT_MISMATCH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16097 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16098 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16099 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16100 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16101 +# Shorthand for --mode=foo, only valid as the first argument
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16102 +case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16103 +clean|clea|cle|cl)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16104 + shift; set dummy --mode clean ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16105 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16106 +compile|compil|compi|comp|com|co|c)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16107 + shift; set dummy --mode compile ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16108 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16109 +execute|execut|execu|exec|exe|ex|e)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16110 + shift; set dummy --mode execute ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16111 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16112 +finish|finis|fini|fin|fi|f)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16113 + shift; set dummy --mode finish ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16114 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16115 +install|instal|insta|inst|ins|in|i)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16116 + shift; set dummy --mode install ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16117 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16118 +link|lin|li|l)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16119 + shift; set dummy --mode link ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16120 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16121 +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16122 + shift; set dummy --mode uninstall ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16123 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16124 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16125 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16126 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16127 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16128 +# Option defaults:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16129 +opt_debug=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16130 +opt_dry_run=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16131 +opt_config=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16132 +opt_preserve_dup_deps=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16133 +opt_features=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16134 +opt_finish=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16135 +opt_help=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16136 +opt_help_all=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16137 +opt_silent=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16138 +opt_warning=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16139 +opt_verbose=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16140 +opt_silent=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16141 +opt_verbose=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16142 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16143 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16144 +# Parse options once, thoroughly. This comes as soon as possible in the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16145 +# script to make things like `--version' happen as quickly as we can.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16146 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16147 + # this just eases exit handling
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16148 + while test $# -gt 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16149 + opt="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16150 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16151 + case $opt in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16152 + --debug|-x) opt_debug='set -x'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16153 + func_echo "enabling shell trace mode"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16154 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16155 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16156 + --dry-run|--dryrun|-n)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16157 + opt_dry_run=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16158 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16159 + --config)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16160 + opt_config=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16161 +func_config
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16162 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16163 + --dlopen|-dlopen)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16164 + optarg="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16165 + opt_dlopen="${opt_dlopen+$opt_dlopen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16166 +}$optarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16167 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16168 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16169 + --preserve-dup-deps)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16170 + opt_preserve_dup_deps=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16171 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16172 + --features)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16173 + opt_features=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16174 +func_features
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16175 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16176 + --finish)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16177 + opt_finish=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16178 +set dummy --mode finish ${1+"$@"}; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16179 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16180 + --help)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16181 + opt_help=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16182 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16183 + --help-all)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16184 + opt_help_all=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16185 +opt_help=': help-all'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16186 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16187 + --mode)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16188 + test $# = 0 && func_missing_arg $opt && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16189 + optarg="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16190 + opt_mode="$optarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16191 +case $optarg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16192 + # Valid mode arguments:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16193 + clean|compile|execute|finish|install|link|relink|uninstall) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16194 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16195 + # Catch anything else as an error
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16196 + *) func_error "invalid argument for $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16197 + exit_cmd=exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16198 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16199 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16200 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16201 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16202 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16203 + --no-silent|--no-quiet)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16204 + opt_silent=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16205 +func_append preserve_args " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16206 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16207 + --no-warning|--no-warn)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16208 + opt_warning=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16209 +func_append preserve_args " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16210 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16211 + --no-verbose)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16212 + opt_verbose=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16213 +func_append preserve_args " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16214 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16215 + --silent|--quiet)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16216 + opt_silent=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16217 +func_append preserve_args " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16218 + opt_verbose=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16219 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16220 + --verbose|-v)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16221 + opt_verbose=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16222 +func_append preserve_args " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16223 +opt_silent=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16224 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16225 + --tag)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16226 + test $# = 0 && func_missing_arg $opt && break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16227 + optarg="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16228 + opt_tag="$optarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16229 +func_append preserve_args " $opt $optarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16230 +func_enable_tag "$optarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16231 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16232 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16233 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16234 + -\?|-h) func_usage ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16235 + --help) func_help ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16236 + --version) func_version ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16237 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16238 + # Separate optargs to long options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16239 + --*=*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16240 + func_split_long_opt "$opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16241 + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16242 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16243 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16244 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16245 + # Separate non-argument short options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16246 + -\?*|-h*|-n*|-v*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16247 + func_split_short_opt "$opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16248 + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16249 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16250 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16251 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16252 + --) break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16253 + -*) func_fatal_help "unrecognized option \`$opt'" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16254 + *) set dummy "$opt" ${1+"$@"}; shift; break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16255 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16256 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16257 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16258 + # Validate options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16259 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16260 + # save first non-option argument
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16261 + if test "$#" -gt 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16262 + nonopt="$opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16263 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16264 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16265 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16266 + # preserve --debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16267 + test "$opt_debug" = : || func_append preserve_args " --debug"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16268 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16269 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16270 + *cygwin* | *mingw* | *pw32* | *cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16271 + # don't eliminate duplications in $postdeps and $predeps
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16272 + opt_duplicate_compiler_generated_deps=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16273 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16274 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16275 + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16276 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16277 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16278 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16279 + $opt_help || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16280 + # Sanity checks first:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16281 + func_check_version_match
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16282 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16283 + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16284 + func_fatal_configuration "not configured to build any kind of library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16285 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16286 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16287 + # Darwin sucks
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16288 + eval std_shrext=\"$shrext_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16289 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16290 + # Only execute mode is allowed to have -dlopen flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16291 + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16292 + func_error "unrecognized option \`-dlopen'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16293 + $ECHO "$help" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16294 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16295 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16296 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16297 + # Change the help message to a mode-specific one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16298 + generic_help="$help"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16299 + help="Try \`$progname --help --mode=$opt_mode' for more information."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16300 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16301 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16302 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16303 + # Bail if the options were screwed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16304 + $exit_cmd $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16305 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16306 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16307 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16308 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16309 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16310 +## ----------- ##
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16311 +## Main. ##
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16312 +## ----------- ##
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16313 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16314 +# func_lalib_p file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16315 +# True iff FILE is a libtool `.la' library or `.lo' object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16316 +# This function is only a basic sanity check; it will hardly flush out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16317 +# determined imposters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16318 +func_lalib_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16319 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16320 + test -f "$1" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16321 + $SED -e 4q "$1" 2>/dev/null \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16322 + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16323 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16324 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16325 +# func_lalib_unsafe_p file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16326 +# True iff FILE is a libtool `.la' library or `.lo' object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16327 +# This function implements the same check as func_lalib_p without
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16328 +# resorting to external programs. To this end, it redirects stdin and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16329 +# closes it afterwards, without saving the original file descriptor.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16330 +# As a safety measure, use it only where a negative result would be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16331 +# fatal anyway. Works if `file' does not exist.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16332 +func_lalib_unsafe_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16333 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16334 + lalib_p=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16335 + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16336 + for lalib_p_l in 1 2 3 4
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16337 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16338 + read lalib_p_line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16339 + case "$lalib_p_line" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16340 + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16341 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16342 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16343 + exec 0<&5 5<&-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16344 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16345 + test "$lalib_p" = yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16346 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16347 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16348 +# func_ltwrapper_script_p file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16349 +# True iff FILE is a libtool wrapper script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16350 +# This function is only a basic sanity check; it will hardly flush out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16351 +# determined imposters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16352 +func_ltwrapper_script_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16353 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16354 + func_lalib_p "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16355 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16356 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16357 +# func_ltwrapper_executable_p file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16358 +# True iff FILE is a libtool wrapper executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16359 +# This function is only a basic sanity check; it will hardly flush out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16360 +# determined imposters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16361 +func_ltwrapper_executable_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16362 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16363 + func_ltwrapper_exec_suffix=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16364 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16365 + *.exe) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16366 + *) func_ltwrapper_exec_suffix=.exe ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16367 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16368 + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16369 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16370 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16371 +# func_ltwrapper_scriptname file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16372 +# Assumes file is an ltwrapper_executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16373 +# uses $file to determine the appropriate filename for a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16374 +# temporary ltwrapper_script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16375 +func_ltwrapper_scriptname ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16376 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16377 + func_dirname_and_basename "$1" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16378 + func_stripname '' '.exe' "$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16379 + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16380 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16381 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16382 +# func_ltwrapper_p file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16383 +# True iff FILE is a libtool wrapper script or wrapper executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16384 +# This function is only a basic sanity check; it will hardly flush out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16385 +# determined imposters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16386 +func_ltwrapper_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16387 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16388 + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16389 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16390 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16391 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16392 +# func_execute_cmds commands fail_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16393 +# Execute tilde-delimited COMMANDS.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16394 +# If FAIL_CMD is given, eval that upon failure.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16395 +# FAIL_CMD may read-access the current command in variable CMD!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16396 +func_execute_cmds ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16397 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16398 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16399 + save_ifs=$IFS; IFS='~'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16400 + for cmd in $1; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16401 + IFS=$save_ifs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16402 + eval cmd=\"$cmd\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16403 + func_show_eval "$cmd" "${2-:}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16404 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16405 + IFS=$save_ifs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16406 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16407 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16408 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16409 +# func_source file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16410 +# Source FILE, adding directory component if necessary.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16411 +# Note that it is not necessary on cygwin/mingw to append a dot to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16412 +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16413 +# behavior happens only for exec(3), not for open(2)! Also, sourcing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16414 +# `FILE.' does not work on cygwin managed mounts.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16415 +func_source ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16416 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16417 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16418 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16419 + */* | *\\*) . "$1" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16420 + *) . "./$1" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16421 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16422 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16424 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16425 +# func_resolve_sysroot PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16426 +# Replace a leading = in PATH with a sysroot. Store the result into
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16427 +# func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16428 +func_resolve_sysroot ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16429 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16430 + func_resolve_sysroot_result=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16431 + case $func_resolve_sysroot_result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16432 + =*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16433 + func_stripname '=' '' "$func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16434 + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16435 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16436 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16437 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16438 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16439 +# func_replace_sysroot PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16440 +# If PATH begins with the sysroot, replace it with = and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16441 +# store the result into func_replace_sysroot_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16442 +func_replace_sysroot ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16443 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16444 + case "$lt_sysroot:$1" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16445 + ?*:"$lt_sysroot"*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16446 + func_stripname "$lt_sysroot" '' "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16447 + func_replace_sysroot_result="=$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16448 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16449 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16450 + # Including no sysroot.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16451 + func_replace_sysroot_result=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16452 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16453 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16454 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16455 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16456 +# func_infer_tag arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16457 +# Infer tagged configuration to use if any are available and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16458 +# if one wasn't chosen via the "--tag" command line option.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16459 +# Only attempt this if the compiler in the base compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16460 +# command doesn't match the default compiler.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16461 +# arg is usually of the form 'gcc ...'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16462 +func_infer_tag ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16463 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16464 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16465 + if test -n "$available_tags" && test -z "$tagname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16466 + CC_quoted=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16467 + for arg in $CC; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16468 + func_append_quoted CC_quoted "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16469 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16470 + CC_expanded=`func_echo_all $CC`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16471 + CC_quoted_expanded=`func_echo_all $CC_quoted`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16472 + case $@ in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16473 + # Blanks in the command may have been stripped by the calling shell,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16474 + # but not from the CC environment variable when configure was run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16475 + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16476 + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16477 + # Blanks at the start of $base_compile will cause this to fail
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16478 + # if we don't check for them as well.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16479 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16480 + for z in $available_tags; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16481 + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16482 + # Evaluate the configuration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16483 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16484 + CC_quoted=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16485 + for arg in $CC; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16486 + # Double-quote args containing other shell metacharacters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16487 + func_append_quoted CC_quoted "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16488 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16489 + CC_expanded=`func_echo_all $CC`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16490 + CC_quoted_expanded=`func_echo_all $CC_quoted`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16491 + case "$@ " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16492 + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16493 + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16494 + # The compiler in the base compile command matches
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16495 + # the one in the tagged configuration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16496 + # Assume this is the tagged configuration we want.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16497 + tagname=$z
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16498 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16499 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16500 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16501 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16502 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16503 + # If $tagname still isn't set, then no tagged configuration
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16504 + # was found and let the user know that the "--tag" command
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16505 + # line option must be used.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16506 + if test -z "$tagname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16507 + func_echo "unable to infer tagged configuration"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16508 + func_fatal_error "specify a tag with \`--tag'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16509 +# else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16510 +# func_verbose "using $tagname tagged configuration"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16511 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16512 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16513 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16514 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16515 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16516 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16517 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16518 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16519 +# func_write_libtool_object output_name pic_name nonpic_name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16520 +# Create a libtool object file (analogous to a ".la" file),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16521 +# but don't create it if we're doing a dry run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16522 +func_write_libtool_object ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16523 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16524 + write_libobj=${1}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16525 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16526 + write_lobj=\'${2}\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16527 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16528 + write_lobj=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16529 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16530 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16531 + if test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16532 + write_oldobj=\'${3}\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16533 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16534 + write_oldobj=none
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16535 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16537 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16538 + cat >${write_libobj}T <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16539 +# $write_libobj - a libtool object file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16540 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16541 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16542 +# Please DO NOT delete this file!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16543 +# It is necessary for linking the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16544 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16545 +# Name of the PIC object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16546 +pic_object=$write_lobj
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16547 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16548 +# Name of the non-PIC object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16549 +non_pic_object=$write_oldobj
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16550 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16551 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16552 + $MV "${write_libobj}T" "${write_libobj}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16553 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16554 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16555 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16556 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16557 +##################################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16558 +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16559 +##################################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16560 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16561 +# func_convert_core_file_wine_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16562 +# Helper function used by file name conversion functions when $build is *nix,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16563 +# and $host is mingw, cygwin, or some other w32 environment. Relies on a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16564 +# correctly configured wine environment available, with the winepath program
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16565 +# in $build's $PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16566 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16567 +# ARG is the $build file name to be converted to w32 format.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16568 +# Result is available in $func_convert_core_file_wine_to_w32_result, and will
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16569 +# be empty on error (or when ARG is empty)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16570 +func_convert_core_file_wine_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16571 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16572 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16573 + func_convert_core_file_wine_to_w32_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16574 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16575 + # Unfortunately, winepath does not exit with a non-zero error code, so we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16576 + # are forced to check the contents of stdout. On the other hand, if the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16577 + # command is not found, the shell will set an exit code of 127 and print
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16578 + # *an error message* to stdout. So we must check for both error code of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16579 + # zero AND non-empty stdout, which explains the odd construction:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16580 + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16581 + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16582 + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16583 + $SED -e "$lt_sed_naive_backslashify"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16584 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16585 + func_convert_core_file_wine_to_w32_result=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16586 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16587 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16588 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16589 +# end: func_convert_core_file_wine_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16590 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16591 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16592 +# func_convert_core_path_wine_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16593 +# Helper function used by path conversion functions when $build is *nix, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16594 +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16595 +# configured wine environment available, with the winepath program in $build's
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16596 +# $PATH. Assumes ARG has no leading or trailing path separator characters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16597 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16598 +# ARG is path to be converted from $build format to win32.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16599 +# Result is available in $func_convert_core_path_wine_to_w32_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16600 +# Unconvertible file (directory) names in ARG are skipped; if no directory names
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16601 +# are convertible, then the result may be empty.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16602 +func_convert_core_path_wine_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16603 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16604 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16605 + # unfortunately, winepath doesn't convert paths, only file names
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16606 + func_convert_core_path_wine_to_w32_result=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16607 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16608 + oldIFS=$IFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16609 + IFS=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16610 + for func_convert_core_path_wine_to_w32_f in $1; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16611 + IFS=$oldIFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16612 + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16613 + if test -n "$func_convert_core_file_wine_to_w32_result" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16614 + if test -z "$func_convert_core_path_wine_to_w32_result"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16615 + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16616 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16617 + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16618 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16619 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16620 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16621 + IFS=$oldIFS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16622 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16623 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16624 +# end: func_convert_core_path_wine_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16625 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16626 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16627 +# func_cygpath ARGS...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16628 +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16629 +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16630 +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16631 +# (2), returns the Cygwin file name or path in func_cygpath_result (input
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16632 +# file name or path is assumed to be in w32 format, as previously converted
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16633 +# from $build's *nix or MSYS format). In case (3), returns the w32 file name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16634 +# or path in func_cygpath_result (input file name or path is assumed to be in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16635 +# Cygwin format). Returns an empty string on error.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16636 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16637 +# ARGS are passed to cygpath, with the last one being the file name or path to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16638 +# be converted.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16639 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16640 +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16641 +# environment variable; do not put it in $PATH.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16642 +func_cygpath ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16643 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16644 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16645 + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16646 + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16647 + if test "$?" -ne 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16648 + # on failure, ensure result is empty
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16649 + func_cygpath_result=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16650 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16651 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16652 + func_cygpath_result=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16653 + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16654 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16655 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16656 +#end: func_cygpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16657 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16658 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16659 +# func_convert_core_msys_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16660 +# Convert file name or path ARG from MSYS format to w32 format. Return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16661 +# result in func_convert_core_msys_to_w32_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16662 +func_convert_core_msys_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16663 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16664 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16665 + # awkward: cmd appends spaces to result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16666 + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16667 + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16668 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16669 +#end: func_convert_core_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16670 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16671 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16672 +# func_convert_file_check ARG1 ARG2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16673 +# Verify that ARG1 (a file name in $build format) was converted to $host
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16674 +# format in ARG2. Otherwise, emit an error message, but continue (resetting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16675 +# func_to_host_file_result to ARG1).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16676 +func_convert_file_check ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16677 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16678 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16679 + if test -z "$2" && test -n "$1" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16680 + func_error "Could not determine host file name corresponding to"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16681 + func_error " \`$1'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16682 + func_error "Continuing, but uninstalled executables may not work."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16683 + # Fallback:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16684 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16685 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16686 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16687 +# end func_convert_file_check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16688 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16689 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16690 +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16691 +# Verify that FROM_PATH (a path in $build format) was converted to $host
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16692 +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16693 +# func_to_host_file_result to a simplistic fallback value (see below).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16694 +func_convert_path_check ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16695 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16696 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16697 + if test -z "$4" && test -n "$3"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16698 + func_error "Could not determine the host path corresponding to"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16699 + func_error " \`$3'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16700 + func_error "Continuing, but uninstalled executables may not work."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16701 + # Fallback. This is a deliberately simplistic "conversion" and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16702 + # should not be "improved". See libtool.info.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16703 + if test "x$1" != "x$2"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16704 + lt_replace_pathsep_chars="s|$1|$2|g"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16705 + func_to_host_path_result=`echo "$3" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16706 + $SED -e "$lt_replace_pathsep_chars"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16707 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16708 + func_to_host_path_result="$3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16709 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16710 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16711 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16712 +# end func_convert_path_check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16713 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16714 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16715 +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16716 +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16717 +# and appending REPL if ORIG matches BACKPAT.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16718 +func_convert_path_front_back_pathsep ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16719 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16720 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16721 + case $4 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16722 + $1 ) func_to_host_path_result="$3$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16723 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16724 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16725 + case $4 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16726 + $2 ) func_append func_to_host_path_result "$3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16727 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16728 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16729 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16730 +# end func_convert_path_front_back_pathsep
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16731 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16732 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16733 +##################################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16734 +# $build to $host FILE NAME CONVERSION FUNCTIONS #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16735 +##################################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16736 +# invoked via `$to_host_file_cmd ARG'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16737 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16738 +# In each case, ARG is the path to be converted from $build to $host format.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16739 +# Result will be available in $func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16740 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16741 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16742 +# func_to_host_file ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16743 +# Converts the file name ARG from $build format to $host format. Return result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16744 +# in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16745 +func_to_host_file ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16746 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16747 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16748 + $to_host_file_cmd "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16749 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16750 +# end func_to_host_file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16751 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16752 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16753 +# func_to_tool_file ARG LAZY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16754 +# converts the file name ARG from $build format to toolchain format. Return
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16755 +# result in func_to_tool_file_result. If the conversion in use is listed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16756 +# in (the comma separated) LAZY, no conversion takes place.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16757 +func_to_tool_file ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16758 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16759 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16760 + case ,$2, in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16761 + *,"$to_tool_file_cmd",*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16762 + func_to_tool_file_result=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16763 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16764 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16765 + $to_tool_file_cmd "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16766 + func_to_tool_file_result=$func_to_host_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16767 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16768 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16769 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16770 +# end func_to_tool_file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16771 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16772 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16773 +# func_convert_file_noop ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16774 +# Copy ARG to func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16775 +func_convert_file_noop ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16776 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16777 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16778 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16779 +# end func_convert_file_noop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16781 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16782 +# func_convert_file_msys_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16783 +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16784 +# conversion to w32 is not available inside the cwrapper. Returns result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16785 +# func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16786 +func_convert_file_msys_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16787 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16788 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16789 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16790 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16791 + func_convert_core_msys_to_w32 "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16792 + func_to_host_file_result="$func_convert_core_msys_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16793 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16794 + func_convert_file_check "$1" "$func_to_host_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16795 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16796 +# end func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16797 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16798 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16799 +# func_convert_file_cygwin_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16800 +# Convert file name ARG from Cygwin to w32 format. Returns result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16801 +# func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16802 +func_convert_file_cygwin_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16803 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16804 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16805 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16806 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16807 + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16808 + # LT_CYGPATH in this case.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16809 + func_to_host_file_result=`cygpath -m "$1"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16810 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16811 + func_convert_file_check "$1" "$func_to_host_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16812 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16813 +# end func_convert_file_cygwin_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16814 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16815 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16816 +# func_convert_file_nix_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16817 +# Convert file name ARG from *nix to w32 format. Requires a wine environment
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16818 +# and a working winepath. Returns result in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16819 +func_convert_file_nix_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16820 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16821 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16822 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16823 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16824 + func_convert_core_file_wine_to_w32 "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16825 + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16826 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16827 + func_convert_file_check "$1" "$func_to_host_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16828 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16829 +# end func_convert_file_nix_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16830 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16831 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16832 +# func_convert_file_msys_to_cygwin ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16833 +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16834 +# Returns result in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16835 +func_convert_file_msys_to_cygwin ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16836 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16837 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16838 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16839 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16840 + func_convert_core_msys_to_w32 "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16841 + func_cygpath -u "$func_convert_core_msys_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16842 + func_to_host_file_result="$func_cygpath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16843 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16844 + func_convert_file_check "$1" "$func_to_host_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16845 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16846 +# end func_convert_file_msys_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16847 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16848 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16849 +# func_convert_file_nix_to_cygwin ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16850 +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16851 +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16852 +# in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16853 +func_convert_file_nix_to_cygwin ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16854 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16855 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16856 + func_to_host_file_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16857 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16858 + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16859 + func_convert_core_file_wine_to_w32 "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16860 + func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16861 + func_to_host_file_result="$func_cygpath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16862 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16863 + func_convert_file_check "$1" "$func_to_host_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16864 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16865 +# end func_convert_file_nix_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16866 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16867 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16868 +#############################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16869 +# $build to $host PATH CONVERSION FUNCTIONS #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16870 +#############################################
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16871 +# invoked via `$to_host_path_cmd ARG'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16872 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16873 +# In each case, ARG is the path to be converted from $build to $host format.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16874 +# The result will be available in $func_to_host_path_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16875 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16876 +# Path separators are also converted from $build format to $host format. If
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16877 +# ARG begins or ends with a path separator character, it is preserved (but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16878 +# converted to $host format) on output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16879 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16880 +# All path conversion functions are named using the following convention:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16881 +# file name conversion function : func_convert_file_X_to_Y ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16882 +# path conversion function : func_convert_path_X_to_Y ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16883 +# where, for any given $build/$host combination the 'X_to_Y' value is the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16884 +# same. If conversion functions are added for new $build/$host combinations,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16885 +# the two new functions must follow this pattern, or func_init_to_host_path_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16886 +# will break.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16887 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16888 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16889 +# func_init_to_host_path_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16890 +# Ensures that function "pointer" variable $to_host_path_cmd is set to the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16891 +# appropriate value, based on the value of $to_host_file_cmd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16892 +to_host_path_cmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16893 +func_init_to_host_path_cmd ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16894 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16895 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16896 + if test -z "$to_host_path_cmd"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16897 + func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16898 + to_host_path_cmd="func_convert_path_${func_stripname_result}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16899 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16900 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16901 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16902 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16903 +# func_to_host_path ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16904 +# Converts the path ARG from $build format to $host format. Return result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16905 +# in func_to_host_path_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16906 +func_to_host_path ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16907 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16908 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16909 + func_init_to_host_path_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16910 + $to_host_path_cmd "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16911 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16912 +# end func_to_host_path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16913 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16914 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16915 +# func_convert_path_noop ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16916 +# Copy ARG to func_to_host_path_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16917 +func_convert_path_noop ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16918 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16919 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16920 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16921 +# end func_convert_path_noop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16922 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16923 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16924 +# func_convert_path_msys_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16925 +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16926 +# conversion to w32 is not available inside the cwrapper. Returns result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16927 +# func_to_host_path_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16928 +func_convert_path_msys_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16929 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16930 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16931 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16932 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16933 + # Remove leading and trailing path separator characters from ARG. MSYS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16934 + # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16935 + # and winepath ignores them completely.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16936 + func_stripname : : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16937 + func_to_host_path_tmp1=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16938 + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16939 + func_to_host_path_result="$func_convert_core_msys_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16940 + func_convert_path_check : ";" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16941 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16942 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16943 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16944 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16945 +# end func_convert_path_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16946 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16947 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16948 +# func_convert_path_cygwin_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16949 +# Convert path ARG from Cygwin to w32 format. Returns result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16950 +# func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16951 +func_convert_path_cygwin_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16952 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16953 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16954 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16955 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16956 + # See func_convert_path_msys_to_w32:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16957 + func_stripname : : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16958 + func_to_host_path_tmp1=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16959 + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16960 + func_convert_path_check : ";" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16961 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16962 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16963 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16964 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16965 +# end func_convert_path_cygwin_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16966 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16967 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16968 +# func_convert_path_nix_to_w32 ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16969 +# Convert path ARG from *nix to w32 format. Requires a wine environment and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16970 +# a working winepath. Returns result in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16971 +func_convert_path_nix_to_w32 ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16972 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16973 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16974 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16975 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16976 + # See func_convert_path_msys_to_w32:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16977 + func_stripname : : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16978 + func_to_host_path_tmp1=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16979 + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16980 + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16981 + func_convert_path_check : ";" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16982 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16983 + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16984 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16985 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16986 +# end func_convert_path_nix_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16987 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16988 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16989 +# func_convert_path_msys_to_cygwin ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16990 +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16991 +# Returns result in func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16992 +func_convert_path_msys_to_cygwin ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16993 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16994 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16995 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16996 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16997 + # See func_convert_path_msys_to_w32:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16998 + func_stripname : : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16999 + func_to_host_path_tmp1=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17000 + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17001 + func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17002 + func_to_host_path_result="$func_cygpath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17003 + func_convert_path_check : : \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17004 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17005 + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17006 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17007 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17008 +# end func_convert_path_msys_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17009 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17010 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17011 +# func_convert_path_nix_to_cygwin ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17012 +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17013 +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17014 +# func_to_host_file_result.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17015 +func_convert_path_nix_to_cygwin ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17016 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17017 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17018 + func_to_host_path_result="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17019 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17020 + # Remove leading and trailing path separator characters from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17021 + # ARG. msys behavior is inconsistent here, cygpath turns them
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17022 + # into '.;' and ';.', and winepath ignores them completely.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17023 + func_stripname : : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17024 + func_to_host_path_tmp1=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17025 + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17026 + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17027 + func_to_host_path_result="$func_cygpath_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17028 + func_convert_path_check : : \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17029 + "$func_to_host_path_tmp1" "$func_to_host_path_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17030 + func_convert_path_front_back_pathsep ":*" "*:" : "$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17031 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17032 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17033 +# end func_convert_path_nix_to_cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17034 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17035 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17036 +# func_mode_compile arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17037 +func_mode_compile ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17038 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17039 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17040 + # Get the compilation command and the source file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17041 + base_compile=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17042 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17043 + suppress_opt=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17044 + suppress_output=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17045 + arg_mode=normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17046 + libobj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17047 + later=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17048 + pie_flag=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17049 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17050 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17051 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17052 + case $arg_mode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17053 + arg )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17054 + # do not "continue". Instead, add this to base_compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17055 + lastarg="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17056 + arg_mode=normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17057 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17058 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17059 + target )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17060 + libobj="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17061 + arg_mode=normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17062 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17063 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17064 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17065 + normal )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17066 + # Accept any command-line options.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17067 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17068 + -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17069 + test -n "$libobj" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17070 + func_fatal_error "you cannot specify \`-o' more than once"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17071 + arg_mode=target
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17072 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17073 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17074 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17075 + -pie | -fpie | -fPIE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17076 + func_append pie_flag " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17077 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17078 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17079 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17080 + -shared | -static | -prefer-pic | -prefer-non-pic)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17081 + func_append later " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17082 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17083 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17084 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17085 + -no-suppress)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17086 + suppress_opt=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17087 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17088 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17089 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17090 + -Xcompiler)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17091 + arg_mode=arg # the next one goes into the "base_compile" arg list
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17092 + continue # The current "srcfile" will either be retained or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17093 + ;; # replaced later. I would guess that would be a bug.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17094 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17095 + -Wc,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17096 + func_stripname '-Wc,' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17097 + args=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17098 + lastarg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17099 + save_ifs="$IFS"; IFS=','
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17100 + for arg in $args; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17101 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17102 + func_append_quoted lastarg "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17103 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17104 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17105 + func_stripname ' ' '' "$lastarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17106 + lastarg=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17107 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17108 + # Add the arguments to base_compile.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17109 + func_append base_compile " $lastarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17110 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17111 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17112 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17113 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17114 + # Accept the current argument as the source file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17115 + # The previous "srcfile" becomes the current argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17116 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17117 + lastarg="$srcfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17118 + srcfile="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17119 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17120 + esac # case $arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17121 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17122 + esac # case $arg_mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17123 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17124 + # Aesthetically quote the previous argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17125 + func_append_quoted base_compile "$lastarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17126 + done # for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17127 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17128 + case $arg_mode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17129 + arg)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17130 + func_fatal_error "you must specify an argument for -Xcompile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17131 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17132 + target)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17133 + func_fatal_error "you must specify a target with \`-o'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17134 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17135 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17136 + # Get the name of the library object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17137 + test -z "$libobj" && {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17138 + func_basename "$srcfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17139 + libobj="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17140 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17141 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17142 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17143 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17144 + # Recognize several different file suffixes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17145 + # If the user specifies -o file.o, it is replaced with file.lo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17146 + case $libobj in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17147 + *.[cCFSifmso] | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17148 + *.ada | *.adb | *.ads | *.asm | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17149 + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17150 + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17151 + func_xform "$libobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17152 + libobj=$func_xform_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17153 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17154 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17155 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17156 + case $libobj in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17157 + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17158 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17159 + func_fatal_error "cannot determine name of library object from \`$libobj'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17160 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17161 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17162 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17163 + func_infer_tag $base_compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17164 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17165 + for arg in $later; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17166 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17167 + -shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17168 + test "$build_libtool_libs" != yes && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17169 + func_fatal_configuration "can not build a shared library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17170 + build_old_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17171 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17172 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17173 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17174 + -static)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17175 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17176 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17177 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17178 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17179 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17180 + -prefer-pic)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17181 + pic_mode=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17182 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17183 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17184 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17185 + -prefer-non-pic)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17186 + pic_mode=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17187 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17188 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17189 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17190 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17191 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17192 + func_quote_for_eval "$libobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17193 + test "X$libobj" != "X$func_quote_for_eval_result" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17194 + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17195 + && func_warning "libobj name \`$libobj' may not contain shell special characters."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17196 + func_dirname_and_basename "$obj" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17197 + objname="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17198 + xdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17199 + lobj=${xdir}$objdir/$objname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17200 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17201 + test -z "$base_compile" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17202 + func_fatal_help "you must specify a compilation command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17203 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17204 + # Delete any leftover library objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17205 + if test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17206 + removelist="$obj $lobj $libobj ${libobj}T"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17207 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17208 + removelist="$lobj $libobj ${libobj}T"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17209 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17210 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17211 + # On Cygwin there's no "real" PIC flag so we must build both object types
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17212 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17213 + cygwin* | mingw* | pw32* | os2* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17214 + pic_mode=default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17215 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17216 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17217 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17218 + # non-PIC code in shared libraries is not supported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17219 + pic_mode=default
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17220 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17221 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17222 + # Calculate the filename of the output object if compiler does
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17223 + # not support -o with -c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17224 + if test "$compiler_c_o" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17225 + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17226 + lockfile="$output_obj.lock"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17227 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17228 + output_obj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17229 + need_locks=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17230 + lockfile=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17231 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17232 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17233 + # Lock this critical section if it is needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17234 + # We use this script file to make the link, it avoids creating a new file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17235 + if test "$need_locks" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17236 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17237 + func_echo "Waiting for $lockfile to be removed"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17238 + sleep 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17239 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17240 + elif test "$need_locks" = warn; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17241 + if test -f "$lockfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17242 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17243 +*** ERROR, $lockfile exists and contains:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17244 +`cat $lockfile 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17245 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17246 +This indicates that another process is trying to use the same
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17247 +temporary object file, and libtool could not work around it because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17248 +your compiler does not support \`-c' and \`-o' together. If you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17249 +repeat this compilation, it may succeed, by chance, but you had better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17250 +avoid parallel builds (make -j) in this platform, or get a better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17251 +compiler."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17252 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17253 + $opt_dry_run || $RM $removelist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17254 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17255 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17256 + func_append removelist " $output_obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17257 + $ECHO "$srcfile" > "$lockfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17258 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17259 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17260 + $opt_dry_run || $RM $removelist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17261 + func_append removelist " $lockfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17262 + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17263 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17264 + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17265 + srcfile=$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17266 + func_quote_for_eval "$srcfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17267 + qsrcfile=$func_quote_for_eval_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17268 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17269 + # Only build a PIC object if we are building libtool libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17270 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17271 + # Without this assignment, base_compile gets emptied.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17272 + fbsd_hideous_sh_bug=$base_compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17273 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17274 + if test "$pic_mode" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17275 + command="$base_compile $qsrcfile $pic_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17276 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17277 + # Don't build PIC code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17278 + command="$base_compile $qsrcfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17279 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17280 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17281 + func_mkdir_p "$xdir$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17282 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17283 + if test -z "$output_obj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17284 + # Place PIC objects in $objdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17285 + func_append command " -o $lobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17286 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17287 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17288 + func_show_eval_locale "$command" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17289 + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17290 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17291 + if test "$need_locks" = warn &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17292 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17293 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17294 +*** ERROR, $lockfile contains:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17295 +`cat $lockfile 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17296 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17297 +but it should contain:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17298 +$srcfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17299 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17300 +This indicates that another process is trying to use the same
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17301 +temporary object file, and libtool could not work around it because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17302 +your compiler does not support \`-c' and \`-o' together. If you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17303 +repeat this compilation, it may succeed, by chance, but you had better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17304 +avoid parallel builds (make -j) in this platform, or get a better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17305 +compiler."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17306 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17307 + $opt_dry_run || $RM $removelist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17308 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17309 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17310 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17311 + # Just move the object if needed, then go on to compile the next one
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17312 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17313 + func_show_eval '$MV "$output_obj" "$lobj"' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17314 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17315 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17316 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17317 + # Allow error messages only from the first compilation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17318 + if test "$suppress_opt" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17319 + suppress_output=' >/dev/null 2>&1'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17320 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17321 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17322 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17323 + # Only build a position-dependent object if we build old libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17324 + if test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17325 + if test "$pic_mode" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17326 + # Don't build PIC code
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17327 + command="$base_compile $qsrcfile$pie_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17328 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17329 + command="$base_compile $qsrcfile $pic_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17330 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17331 + if test "$compiler_c_o" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17332 + func_append command " -o $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17333 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17334 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17335 + # Suppress compiler output if we already did a PIC compilation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17336 + func_append command "$suppress_output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17337 + func_show_eval_locale "$command" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17338 + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17339 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17340 + if test "$need_locks" = warn &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17341 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17342 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17343 +*** ERROR, $lockfile contains:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17344 +`cat $lockfile 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17345 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17346 +but it should contain:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17347 +$srcfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17348 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17349 +This indicates that another process is trying to use the same
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17350 +temporary object file, and libtool could not work around it because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17351 +your compiler does not support \`-c' and \`-o' together. If you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17352 +repeat this compilation, it may succeed, by chance, but you had better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17353 +avoid parallel builds (make -j) in this platform, or get a better
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17354 +compiler."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17355 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17356 + $opt_dry_run || $RM $removelist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17357 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17358 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17360 + # Just move the object if needed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17361 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17362 + func_show_eval '$MV "$output_obj" "$obj"' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17363 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17364 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17365 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17366 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17367 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17368 + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17369 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17370 + # Unlock the critical section if it was locked
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17371 + if test "$need_locks" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17372 + removelist=$lockfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17373 + $RM "$lockfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17374 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17375 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17376 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17377 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17378 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17379 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17380 +$opt_help || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17381 + test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17382 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17383 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17384 +func_mode_help ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17385 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17386 + # We need to display help for each of the modes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17387 + case $opt_mode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17388 + "")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17389 + # Generic help is extracted from the usage comments
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17390 + # at the start of this file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17391 + func_help
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17392 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17393 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17394 + clean)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17395 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17396 +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17397 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17398 +Remove files from the build directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17399 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17400 +RM is the name of the program to use to delete files associated with each FILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17401 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17402 +to RM.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17403 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17404 +If FILE is a libtool library, object or program, all the files associated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17405 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17406 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17407 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17408 + compile)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17409 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17410 +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17411 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17412 +Compile a source file into a libtool library object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17413 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17414 +This mode accepts the following additional options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17415 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17416 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17417 + -no-suppress do not suppress compiler output for multiple passes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17418 + -prefer-pic try to build PIC objects only
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17419 + -prefer-non-pic try to build non-PIC objects only
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17420 + -shared do not build a \`.o' file suitable for static linking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17421 + -static only build a \`.o' file suitable for static linking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17422 + -Wc,FLAG pass FLAG directly to the compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17424 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17425 +from the given SOURCEFILE.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17426 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17427 +The output file name is determined by removing the directory component from
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17428 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17429 +library object suffix, \`.lo'."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17430 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17431 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17432 + execute)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17433 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17434 +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17435 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17436 +Automatically set library path, then run a program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17437 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17438 +This mode accepts the following additional options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17439 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17440 + -dlopen FILE add the directory containing FILE to the library path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17442 +This mode sets the library path environment variable according to \`-dlopen'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17443 +flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17444 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17445 +If any of the ARGS are libtool executable wrappers, then they are translated
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17446 +into their corresponding uninstalled binary, and any of their required library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17447 +directories are added to the library path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17448 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17449 +Then, COMMAND is executed, with ARGS as arguments."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17450 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17451 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17452 + finish)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17453 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17454 +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17455 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17456 +Complete the installation of libtool libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17457 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17458 +Each LIBDIR is a directory that contains libtool libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17459 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17460 +The commands that this mode executes may require superuser privileges. Use
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17461 +the \`--dry-run' option if you just want to see what would be executed."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17462 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17463 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17464 + install)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17465 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17466 +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17467 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17468 +Install executables or libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17469 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17470 +INSTALL-COMMAND is the installation command. The first component should be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17471 +either the \`install' or \`cp' program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17472 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17473 +The following components of INSTALL-COMMAND are treated specially:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17474 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17475 + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17476 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17477 +The rest of the components are interpreted as arguments to that command (only
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17478 +BSD-compatible install options are recognized)."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17479 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17480 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17481 + link)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17482 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17483 +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17484 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17485 +Link object files or libraries together to form another library, or to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17486 +create an executable program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17487 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17488 +LINK-COMMAND is a command using the C compiler that you would use to create
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17489 +a program from several object files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17490 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17491 +The following components of LINK-COMMAND are treated specially:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17492 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17493 + -all-static do not do any dynamic linking at all
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17494 + -avoid-version do not add a version suffix if possible
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17495 + -bindir BINDIR specify path to binaries directory (for systems where
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17496 + libraries must be found in the PATH setting at runtime)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17497 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17498 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17499 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17500 + -export-symbols SYMFILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17501 + try to export only the symbols listed in SYMFILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17502 + -export-symbols-regex REGEX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17503 + try to export only the symbols matching REGEX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17504 + -LLIBDIR search LIBDIR for required installed libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17505 + -lNAME OUTPUT-FILE requires the installed library libNAME
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17506 + -module build a library that can dlopened
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17507 + -no-fast-install disable the fast-install mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17508 + -no-install link a not-installable executable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17509 + -no-undefined declare that a library does not refer to external symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17510 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17511 + -objectlist FILE Use a list of object files found in FILE to specify objects
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17512 + -precious-files-regex REGEX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17513 + don't remove output files matching REGEX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17514 + -release RELEASE specify package release information
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17515 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17516 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17517 + -shared only do dynamic linking of libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17518 + -shrext SUFFIX override the standard shared library file extension
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17519 + -static do not do any dynamic linking of uninstalled libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17520 + -static-libtool-libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17521 + do not do any dynamic linking of libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17522 + -version-info CURRENT[:REVISION[:AGE]]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17523 + specify library version info [each variable defaults to 0]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17524 + -weak LIBNAME declare that the target provides the LIBNAME interface
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17525 + -Wc,FLAG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17526 + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17527 + -Wl,FLAG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17528 + -Xlinker FLAG pass linker-specific FLAG directly to the linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17529 + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17530 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17531 +All other options (arguments beginning with \`-') are ignored.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17532 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17533 +Every other argument is treated as a filename. Files ending in \`.la' are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17534 +treated as uninstalled libtool libraries, other files are standard or library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17535 +object files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17536 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17537 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17538 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17539 +required, except when creating a convenience library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17540 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17541 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17542 +using \`ar' and \`ranlib', or on Windows using \`lib'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17543 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17544 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17545 +is created, otherwise an executable program is created."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17546 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17547 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17548 + uninstall)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17549 + $ECHO \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17550 +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17551 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17552 +Remove libraries from an installation directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17553 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17554 +RM is the name of the program to use to delete files associated with each FILE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17555 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17556 +to RM.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17557 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17558 +If FILE is a libtool library, all the files associated with it are deleted.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17559 +Otherwise, only FILE itself is deleted using RM."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17560 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17561 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17562 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17563 + func_fatal_help "invalid operation mode \`$opt_mode'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17564 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17565 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17566 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17567 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17568 + $ECHO "Try \`$progname --help' for more information about other modes."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17569 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17570 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17571 +# Now that we've collected a possible --mode arg, show help if necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17572 +if $opt_help; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17573 + if test "$opt_help" = :; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17574 + func_mode_help
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17575 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17576 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17577 + func_help noexit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17578 + for opt_mode in compile link execute install finish uninstall clean; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17579 + func_mode_help
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17580 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17581 + } | sed -n '1p; 2,$s/^Usage:/ or: /p'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17582 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17583 + func_help noexit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17584 + for opt_mode in compile link execute install finish uninstall clean; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17585 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17586 + func_mode_help
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17587 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17588 + } |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17589 + sed '1d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17590 + /^When reporting/,/^Report/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17591 + H
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17592 + d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17593 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17594 + $x
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17595 + /information about other modes/d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17596 + /more detailed .*MODE/d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17597 + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17598 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17599 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17600 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17601 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17602 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17603 +# func_mode_execute arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17604 +func_mode_execute ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17605 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17606 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17607 + # The first argument is the command name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17608 + cmd="$nonopt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17609 + test -z "$cmd" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17610 + func_fatal_help "you must specify a COMMAND"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17611 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17612 + # Handle -dlopen flags immediately.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17613 + for file in $opt_dlopen; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17614 + test -f "$file" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17615 + || func_fatal_help "\`$file' is not a file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17616 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17617 + dir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17618 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17619 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17620 + func_resolve_sysroot "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17621 + file=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17622 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17623 + # Check to see that this really is a libtool archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17624 + func_lalib_unsafe_p "$file" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17625 + || func_fatal_help "\`$lib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17626 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17627 + # Read the libtool library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17628 + dlname=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17629 + library_names=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17630 + func_source "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17631 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17632 + # Skip this library if it cannot be dlopened.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17633 + if test -z "$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17634 + # Warn if it was a shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17635 + test -n "$library_names" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17636 + func_warning "\`$file' was not linked with \`-export-dynamic'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17637 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17638 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17639 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17640 + func_dirname "$file" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17641 + dir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17642 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17643 + if test -f "$dir/$objdir/$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17644 + func_append dir "/$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17645 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17646 + if test ! -f "$dir/$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17647 + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17648 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17649 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17650 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17651 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17652 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17653 + # Just add the directory containing the .lo file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17654 + func_dirname "$file" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17655 + dir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17656 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17657 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17658 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17659 + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17660 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17661 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17662 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17663 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17664 + # Get the absolute pathname.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17665 + absdir=`cd "$dir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17666 + test -n "$absdir" && dir="$absdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17667 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17668 + # Now add the directory to shlibpath_var.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17669 + if eval "test -z \"\$$shlibpath_var\""; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17670 + eval "$shlibpath_var=\"\$dir\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17671 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17672 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17673 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17674 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17675 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17676 + # This variable tells wrapper scripts just to set shlibpath_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17677 + # rather than running their programs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17678 + libtool_execute_magic="$magic"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17679 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17680 + # Check if any of the arguments is a wrapper script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17681 + args=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17682 + for file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17683 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17684 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17685 + -* | *.la | *.lo ) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17686 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17687 + # Do a test to see if this is really a libtool program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17688 + if func_ltwrapper_script_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17689 + func_source "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17690 + # Transform arg to wrapped name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17691 + file="$progdir/$program"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17692 + elif func_ltwrapper_executable_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17693 + func_ltwrapper_scriptname "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17694 + func_source "$func_ltwrapper_scriptname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17695 + # Transform arg to wrapped name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17696 + file="$progdir/$program"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17697 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17698 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17699 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17700 + # Quote arguments (to preserve shell metacharacters).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17701 + func_append_quoted args "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17702 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17703 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17704 + if test "X$opt_dry_run" = Xfalse; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17705 + if test -n "$shlibpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17706 + # Export the shlibpath_var.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17707 + eval "export $shlibpath_var"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17708 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17709 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17710 + # Restore saved environment variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17711 + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17712 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17713 + eval "if test \"\${save_$lt_var+set}\" = set; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17714 + $lt_var=\$save_$lt_var; export $lt_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17715 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17716 + $lt_unset $lt_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17717 + fi"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17718 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17719 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17720 + # Now prepare to actually exec the command.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17721 + exec_cmd="\$cmd$args"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17722 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17723 + # Display what would be done.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17724 + if test -n "$shlibpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17725 + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17726 + echo "export $shlibpath_var"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17727 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17728 + $ECHO "$cmd$args"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17729 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17730 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17731 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17732 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17733 +test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17734 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17735 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17736 +# func_mode_finish arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17737 +func_mode_finish ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17738 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17739 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17740 + libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17741 + libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17742 + admincmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17743 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17744 + for opt in "$nonopt" ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17745 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17746 + if test -d "$opt"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17747 + func_append libdirs " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17748 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17749 + elif test -f "$opt"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17750 + if func_lalib_unsafe_p "$opt"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17751 + func_append libs " $opt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17752 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17753 + func_warning "\`$opt' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17754 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17755 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17756 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17757 + func_fatal_error "invalid argument \`$opt'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17758 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17759 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17760 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17761 + if test -n "$libs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17762 + if test -n "$lt_sysroot"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17763 + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17764 + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17765 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17766 + sysroot_cmd=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17767 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17768 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17769 + # Remove sysroot references
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17770 + if $opt_dry_run; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17771 + for lib in $libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17772 + echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17773 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17774 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17775 + tmpdir=`func_mktempdir`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17776 + for lib in $libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17777 + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17778 + > $tmpdir/tmp-la
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17779 + mv -f $tmpdir/tmp-la $lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17780 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17781 + ${RM}r "$tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17782 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17783 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17784 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17785 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17786 + for libdir in $libdirs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17787 + if test -n "$finish_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17788 + # Do each command in the finish commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17789 + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17790 +'"$cmd"'"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17791 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17792 + if test -n "$finish_eval"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17793 + # Do the single finish_eval.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17794 + eval cmds=\"$finish_eval\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17795 + $opt_dry_run || eval "$cmds" || func_append admincmds "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17796 + $cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17797 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17798 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17799 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17800 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17801 + # Exit here if they wanted silent mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17802 + $opt_silent && exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17803 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17804 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17805 + echo "----------------------------------------------------------------------"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17806 + echo "Libraries have been installed in:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17807 + for libdir in $libdirs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17808 + $ECHO " $libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17809 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17810 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17811 + echo "If you ever happen to want to link against installed libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17812 + echo "in a given directory, LIBDIR, you must either use libtool, and"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17813 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17814 + echo "flag during linking and do at least one of the following:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17815 + if test -n "$shlibpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17816 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17817 + echo " during execution"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17818 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17819 + if test -n "$runpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17820 + echo " - add LIBDIR to the \`$runpath_var' environment variable"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17821 + echo " during linking"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17822 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17823 + if test -n "$hardcode_libdir_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17824 + libdir=LIBDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17825 + eval flag=\"$hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17826 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17827 + $ECHO " - use the \`$flag' linker flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17828 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17829 + if test -n "$admincmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17830 + $ECHO " - have your system administrator run these commands:$admincmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17831 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17832 + if test -f /etc/ld.so.conf; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17833 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17834 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17835 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17836 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17837 + echo "See any operating system documentation about shared libraries for"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17838 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17839 + solaris2.[6789]|solaris2.1[0-9])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17840 + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17841 + echo "pages."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17842 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17843 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17844 + echo "more information, such as the ld(1) and ld.so(8) manual pages."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17845 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17846 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17847 + echo "----------------------------------------------------------------------"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17848 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17849 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17850 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17851 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17852 +test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17853 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17854 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17855 +# func_mode_install arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17856 +func_mode_install ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17857 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17858 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17859 + # There may be an optional sh(1) argument at the beginning of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17860 + # install_prog (especially on Windows NT).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17861 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17862 + # Allow the use of GNU shtool's install command.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17863 + case $nonopt in *shtool*) :;; *) false;; esac; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17864 + # Aesthetically quote it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17865 + func_quote_for_eval "$nonopt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17866 + install_prog="$func_quote_for_eval_result "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17867 + arg=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17868 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17869 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17870 + install_prog=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17871 + arg=$nonopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17872 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17873 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17874 + # The real first argument should be the name of the installation program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17875 + # Aesthetically quote it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17876 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17877 + func_append install_prog "$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17878 + install_shared_prog=$install_prog
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17879 + case " $install_prog " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17880 + *[\\\ /]cp\ *) install_cp=: ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17881 + *) install_cp=false ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17882 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17883 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17884 + # We need to accept at least all the BSD install flags.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17885 + dest=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17886 + files=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17887 + opts=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17888 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17889 + install_type=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17890 + isdir=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17891 + stripme=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17892 + no_mode=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17893 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17894 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17895 + arg2=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17896 + if test -n "$dest"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17897 + func_append files " $dest"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17898 + dest=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17899 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17900 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17901 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17902 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17903 + -d) isdir=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17904 + -f)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17905 + if $install_cp; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17906 + prev=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17907 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17908 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17909 + -g | -m | -o)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17910 + prev=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17911 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17912 + -s)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17913 + stripme=" -s"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17914 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17915 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17916 + -*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17917 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17918 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17919 + # If the previous option needed an argument, then skip it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17920 + if test -n "$prev"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17921 + if test "x$prev" = x-m && test -n "$install_override_mode"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17922 + arg2=$install_override_mode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17923 + no_mode=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17924 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17925 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17926 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17927 + dest=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17928 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17929 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17930 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17931 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17932 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17933 + # Aesthetically quote the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17934 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17935 + func_append install_prog " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17936 + if test -n "$arg2"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17937 + func_quote_for_eval "$arg2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17938 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17939 + func_append install_shared_prog " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17940 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17941 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17942 + test -z "$install_prog" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17943 + func_fatal_help "you must specify an install program"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17944 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17945 + test -n "$prev" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17946 + func_fatal_help "the \`$prev' option requires an argument"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17947 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17948 + if test -n "$install_override_mode" && $no_mode; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17949 + if $install_cp; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17950 + func_quote_for_eval "$install_override_mode"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17951 + func_append install_shared_prog " -m $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17952 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17953 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17954 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17955 + if test -z "$files"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17956 + if test -z "$dest"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17957 + func_fatal_help "no file or destination specified"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17958 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17959 + func_fatal_help "you must specify a destination"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17960 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17961 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17962 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17963 + # Strip any trailing slash from the destination.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17964 + func_stripname '' '/' "$dest"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17965 + dest=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17966 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17967 + # Check to see that the destination is a directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17968 + test -d "$dest" && isdir=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17969 + if test "$isdir" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17970 + destdir="$dest"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17971 + destname=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17972 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17973 + func_dirname_and_basename "$dest" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17974 + destdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17975 + destname="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17976 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17977 + # Not a directory, so check to see that there is only one file specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17978 + set dummy $files; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17979 + test "$#" -gt 1 && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17980 + func_fatal_help "\`$dest' is not a directory"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17981 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17982 + case $destdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17983 + [\\/]* | [A-Za-z]:[\\/]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17984 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17985 + for file in $files; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17986 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17987 + *.lo) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17988 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17989 + func_fatal_help "\`$destdir' must be an absolute directory name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17990 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17991 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17992 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17993 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17994 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17995 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17996 + # This variable tells wrapper scripts just to set variables rather
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17997 + # than running their programs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17998 + libtool_install_magic="$magic"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17999 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18000 + staticlibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18001 + future_libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18002 + current_libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18003 + for file in $files; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18004 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18005 + # Do each installation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18006 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18007 + *.$libext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18008 + # Do the static libraries later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18009 + func_append staticlibs " $file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18010 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18011 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18012 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18013 + func_resolve_sysroot "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18014 + file=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18015 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18016 + # Check to see that this really is a libtool archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18017 + func_lalib_unsafe_p "$file" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18018 + || func_fatal_help "\`$file' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18019 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18020 + library_names=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18021 + old_library=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18022 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18023 + func_source "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18024 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18025 + # Add the libdir to current_libdirs if it is the destination.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18026 + if test "X$destdir" = "X$libdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18027 + case "$current_libdirs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18028 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18029 + *) func_append current_libdirs " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18030 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18031 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18032 + # Note the libdir as a future libdir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18033 + case "$future_libdirs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18034 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18035 + *) func_append future_libdirs " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18036 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18037 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18038 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18039 + func_dirname "$file" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18040 + dir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18041 + func_append dir "$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18042 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18043 + if test -n "$relink_command"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18044 + # Determine the prefix the user has applied to our future dir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18045 + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18046 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18047 + # Don't allow the user to place us outside of our expected
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18048 + # location b/c this prevents finding dependent libraries that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18049 + # are installed to the same prefix.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18050 + # At present, this check doesn't affect windows .dll's that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18051 + # are installed into $libdir/../bin (currently, that works fine)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18052 + # but it's something to keep an eye on.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18053 + test "$inst_prefix_dir" = "$destdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18054 + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18055 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18056 + if test -n "$inst_prefix_dir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18057 + # Stick the inst_prefix_dir data into the link command.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18058 + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18059 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18060 + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18061 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18062 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18063 + func_warning "relinking \`$file'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18064 + func_show_eval "$relink_command" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18065 + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18066 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18067 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18068 + # See the names of the shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18069 + set dummy $library_names; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18070 + if test -n "$1"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18071 + realname="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18072 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18073 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18074 + srcname="$realname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18075 + test -n "$relink_command" && srcname="$realname"T
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18076 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18077 + # Install the shared library and build the symlinks.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18078 + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18079 + 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18080 + tstripme="$stripme"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18081 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18082 + cygwin* | mingw* | pw32* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18083 + case $realname in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18084 + *.dll.a)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18085 + tstripme=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18086 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18087 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18088 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18089 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18090 + if test -n "$tstripme" && test -n "$striplib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18091 + func_show_eval "$striplib $destdir/$realname" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18092 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18093 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18094 + if test "$#" -gt 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18095 + # Delete the old symlinks, and create new ones.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18096 + # Try `ln -sf' first, because the `ln' binary might depend on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18097 + # the symlink we replace! Solaris /bin/ln does not understand -f,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18098 + # so we also need to try rm && ln -s.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18099 + for linkname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18100 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18101 + test "$linkname" != "$realname" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18102 + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18103 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18104 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18105 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18106 + # Do each command in the postinstall commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18107 + lib="$destdir/$realname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18108 + func_execute_cmds "$postinstall_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18109 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18110 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18111 + # Install the pseudo-library for information purposes.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18112 + func_basename "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18113 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18114 + instname="$dir/$name"i
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18115 + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18116 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18117 + # Maybe install the static library, too.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18118 + test -n "$old_library" && func_append staticlibs " $dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18119 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18120 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18121 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18122 + # Install (i.e. copy) a libtool object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18123 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18124 + # Figure out destination file name, if it wasn't already specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18125 + if test -n "$destname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18126 + destfile="$destdir/$destname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18127 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18128 + func_basename "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18129 + destfile="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18130 + destfile="$destdir/$destfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18131 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18132 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18133 + # Deduce the name of the destination old-style object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18134 + case $destfile in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18135 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18136 + func_lo2o "$destfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18137 + staticdest=$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18138 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18139 + *.$objext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18140 + staticdest="$destfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18141 + destfile=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18142 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18143 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18144 + func_fatal_help "cannot copy a libtool object to \`$destfile'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18145 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18146 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18147 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18148 + # Install the libtool object if requested.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18149 + test -n "$destfile" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18150 + func_show_eval "$install_prog $file $destfile" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18151 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18152 + # Install the old object if enabled.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18153 + if test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18154 + # Deduce the name of the old-style object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18155 + func_lo2o "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18156 + staticobj=$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18157 + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18158 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18159 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18160 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18161 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18162 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18163 + # Figure out destination file name, if it wasn't already specified.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18164 + if test -n "$destname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18165 + destfile="$destdir/$destname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18166 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18167 + func_basename "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18168 + destfile="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18169 + destfile="$destdir/$destfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18170 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18171 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18172 + # If the file is missing, and there is a .exe on the end, strip it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18173 + # because it is most likely a libtool script we actually want to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18174 + # install
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18175 + stripped_ext=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18176 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18177 + *.exe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18178 + if test ! -f "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18179 + func_stripname '' '.exe' "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18180 + file=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18181 + stripped_ext=".exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18182 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18183 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18184 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18185 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18186 + # Do a test to see if this is really a libtool program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18187 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18188 + *cygwin* | *mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18189 + if func_ltwrapper_executable_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18190 + func_ltwrapper_scriptname "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18191 + wrapper=$func_ltwrapper_scriptname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18192 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18193 + func_stripname '' '.exe' "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18194 + wrapper=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18195 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18196 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18197 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18198 + wrapper=$file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18199 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18200 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18201 + if func_ltwrapper_script_p "$wrapper"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18202 + notinst_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18203 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18204 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18205 + func_source "$wrapper"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18206 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18207 + # Check the variables that should have been set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18208 + test -z "$generated_by_libtool_version" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18209 + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18210 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18211 + finalize=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18212 + for lib in $notinst_deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18213 + # Check to see that each library is installed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18214 + libdir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18215 + if test -f "$lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18216 + func_source "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18217 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18218 + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18219 + if test -n "$libdir" && test ! -f "$libfile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18220 + func_warning "\`$lib' has not been installed in \`$libdir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18221 + finalize=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18222 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18223 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18224 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18225 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18226 + func_source "$wrapper"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18227 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18228 + outputname=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18229 + if test "$fast_install" = no && test -n "$relink_command"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18230 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18231 + if test "$finalize" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18232 + tmpdir=`func_mktempdir`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18233 + func_basename "$file$stripped_ext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18234 + file="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18235 + outputname="$tmpdir/$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18236 + # Replace the output file specification.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18237 + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18238 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18239 + $opt_silent || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18240 + func_quote_for_expand "$relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18241 + eval "func_echo $func_quote_for_expand_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18242 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18243 + if eval "$relink_command"; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18244 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18245 + func_error "error: relink \`$file' with the above command before installing it"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18246 + $opt_dry_run || ${RM}r "$tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18247 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18248 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18249 + file="$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18250 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18251 + func_warning "cannot relink \`$file'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18252 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18253 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18254 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18255 + # Install the binary that we compiled earlier.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18256 + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18257 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18258 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18259 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18260 + # remove .exe since cygwin /usr/bin/install will append another
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18261 + # one anyway
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18262 + case $install_prog,$host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18263 + */usr/bin/install*,*cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18264 + case $file:$destfile in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18265 + *.exe:*.exe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18266 + # this is ok
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18267 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18268 + *.exe:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18269 + destfile=$destfile.exe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18270 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18271 + *:*.exe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18272 + func_stripname '' '.exe' "$destfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18273 + destfile=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18274 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18275 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18276 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18277 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18278 + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18279 + $opt_dry_run || if test -n "$outputname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18280 + ${RM}r "$tmpdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18281 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18282 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18283 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18284 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18285 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18286 + for file in $staticlibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18287 + func_basename "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18288 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18289 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18290 + # Set up the ranlib parameters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18291 + oldlib="$destdir/$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18292 + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18293 + tool_oldlib=$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18294 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18295 + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18296 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18297 + if test -n "$stripme" && test -n "$old_striplib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18298 + func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18299 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18300 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18301 + # Do each command in the postinstall commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18302 + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18303 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18304 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18305 + test -n "$future_libdirs" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18306 + func_warning "remember to run \`$progname --finish$future_libdirs'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18307 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18308 + if test -n "$current_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18309 + # Maybe just do a dry run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18310 + $opt_dry_run && current_libdirs=" -n$current_libdirs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18311 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18312 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18313 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18314 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18315 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18316 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18317 +test "$opt_mode" = install && func_mode_install ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18318 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18319 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18320 +# func_generate_dlsyms outputname originator pic_p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18321 +# Extract symbols from dlprefiles and create ${outputname}S.o with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18322 +# a dlpreopen symbol table.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18323 +func_generate_dlsyms ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18324 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18325 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18326 + my_outputname="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18327 + my_originator="$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18328 + my_pic_p="${3-no}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18329 + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18330 + my_dlsyms=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18331 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18332 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18333 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18334 + my_dlsyms="${my_outputname}S.c"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18335 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18336 + func_error "not configured to extract global symbols from dlpreopened files"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18337 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18338 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18339 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18340 + if test -n "$my_dlsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18341 + case $my_dlsyms in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18342 + "") ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18343 + *.c)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18344 + # Discover the nlist of each of the dlfiles.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18345 + nlist="$output_objdir/${my_outputname}.nm"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18346 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18347 + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18348 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18349 + # Parse the name list into a source file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18350 + func_verbose "creating $output_objdir/$my_dlsyms"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18351 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18352 + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18353 +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18354 +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18355 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18356 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18357 +extern \"C\" {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18358 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18360 +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18361 +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18362 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18363 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18364 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18365 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18366 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18367 + relocations are performed -- see ld's documentation on pseudo-relocs. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18368 +# define LT_DLSYM_CONST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18369 +#elif defined(__osf__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18370 +/* This system does not cope well with relocations in const data. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18371 +# define LT_DLSYM_CONST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18372 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18373 +# define LT_DLSYM_CONST const
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18374 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18376 +/* External symbol declarations for the compiler. */\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18377 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18378 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18379 + if test "$dlself" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18380 + func_verbose "generating symbol list for \`$output'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18381 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18382 + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18383 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18384 + # Add our own program objects to the symbol list.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18385 + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18386 + for progfile in $progfiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18387 + func_to_tool_file "$progfile" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18388 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18389 + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18390 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18391 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18392 + if test -n "$exclude_expsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18393 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18394 + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18395 + eval '$MV "$nlist"T "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18396 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18397 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18398 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18399 + if test -n "$export_symbols_regex"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18400 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18401 + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18402 + eval '$MV "$nlist"T "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18403 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18404 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18405 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18406 + # Prepare the list of exported symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18407 + if test -z "$export_symbols"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18408 + export_symbols="$output_objdir/$outputname.exp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18409 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18410 + $RM $export_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18411 + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18412 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18413 + *cygwin* | *mingw* | *cegcc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18414 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18415 + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18416 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18417 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18418 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18419 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18420 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18421 + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18422 + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18423 + eval '$MV "$nlist"T "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18424 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18425 + *cygwin* | *mingw* | *cegcc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18426 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18427 + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18428 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18429 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18430 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18431 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18432 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18433 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18434 + for dlprefile in $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18435 + func_verbose "extracting global C symbols from \`$dlprefile'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18436 + func_basename "$dlprefile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18437 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18438 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18439 + *cygwin* | *mingw* | *cegcc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18440 + # if an import library, we need to obtain dlname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18441 + if func_win32_import_lib_p "$dlprefile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18442 + func_tr_sh "$dlprefile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18443 + eval "curr_lafile=\$libfile_$func_tr_sh_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18444 + dlprefile_dlbasename=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18445 + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18446 + # Use subshell, to avoid clobbering current variable values
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18447 + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18448 + if test -n "$dlprefile_dlname" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18449 + func_basename "$dlprefile_dlname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18450 + dlprefile_dlbasename="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18451 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18452 + # no lafile. user explicitly requested -dlpreopen <import library>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18453 + $sharedlib_from_linklib_cmd "$dlprefile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18454 + dlprefile_dlbasename=$sharedlib_from_linklib_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18455 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18456 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18457 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18458 + if test -n "$dlprefile_dlbasename" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18459 + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18460 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18461 + func_warning "Could not compute DLL name from $name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18462 + eval '$ECHO ": $name " >> "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18463 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18464 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18465 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18466 + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18467 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18468 + else # not an import lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18469 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18470 + eval '$ECHO ": $name " >> "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18471 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18472 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18473 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18474 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18475 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18476 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18477 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18478 + eval '$ECHO ": $name " >> "$nlist"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18479 + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18480 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18481 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18482 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18483 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18484 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18485 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18486 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18487 + # Make sure we have at least an empty file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18488 + test -f "$nlist" || : > "$nlist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18489 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18490 + if test -n "$exclude_expsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18491 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18492 + $MV "$nlist"T "$nlist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18493 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18494 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18495 + # Try sorting and uniquifying the output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18496 + if $GREP -v "^: " < "$nlist" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18497 + if sort -k 3 </dev/null >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18498 + sort -k 3
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18499 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18500 + sort +2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18501 + fi |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18502 + uniq > "$nlist"S; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18503 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18504 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18505 + $GREP -v "^: " < "$nlist" > "$nlist"S
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18506 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18507 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18508 + if test -f "$nlist"S; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18509 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18510 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18511 + echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18512 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18513 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18514 + echo >> "$output_objdir/$my_dlsyms" "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18515 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18516 +/* The mapping between symbol names and symbols. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18517 +typedef struct {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18518 + const char *name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18519 + void *address;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18520 +} lt_dlsymlist;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18521 +extern LT_DLSYM_CONST lt_dlsymlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18522 +lt_${my_prefix}_LTX_preloaded_symbols[];
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18523 +LT_DLSYM_CONST lt_dlsymlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18524 +lt_${my_prefix}_LTX_preloaded_symbols[] =
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18525 +{\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18526 + { \"$my_originator\", (void *) 0 },"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18527 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18528 + case $need_lib_prefix in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18529 + no)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18530 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18531 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18532 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18533 + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18534 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18535 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18536 + echo >> "$output_objdir/$my_dlsyms" "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18537 + {0, (void *) 0}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18538 +};
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18539 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18540 +/* This works around a problem in FreeBSD linker */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18541 +#ifdef FREEBSD_WORKAROUND
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18542 +static const void *lt_preloaded_setup() {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18543 + return lt_${my_prefix}_LTX_preloaded_symbols;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18544 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18545 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18546 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18547 +#ifdef __cplusplus
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18548 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18549 +#endif\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18550 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18551 + } # !$opt_dry_run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18552 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18553 + pic_flag_for_symtable=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18554 + case "$compile_command " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18555 + *" -static "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18556 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18557 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18558 + # compiling the symbol table file with pic_flag works around
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18559 + # a FreeBSD bug that causes programs to crash when -lm is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18560 + # linked before any other PIC object. But we must not use
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18561 + # pic_flag when linking with -static. The problem exists in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18562 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18563 + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18564 + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18565 + *-*-hpux*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18566 + pic_flag_for_symtable=" $pic_flag" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18567 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18568 + if test "X$my_pic_p" != Xno; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18569 + pic_flag_for_symtable=" $pic_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18570 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18571 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18572 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18573 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18574 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18575 + symtab_cflags=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18576 + for arg in $LTCFLAGS; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18577 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18578 + -pie | -fpie | -fPIE) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18579 + *) func_append symtab_cflags " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18580 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18581 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18582 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18583 + # Now compile the dynamic symbol file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18584 + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18585 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18586 + # Clean up the generated files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18587 + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18588 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18589 + # Transform the symbol file into the correct name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18590 + symfileobj="$output_objdir/${my_outputname}S.$objext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18591 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18592 + *cygwin* | *mingw* | *cegcc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18593 + if test -f "$output_objdir/$my_outputname.def"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18594 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18595 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18596 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18597 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18598 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18599 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18600 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18601 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18602 + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18603 + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18604 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18605 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18606 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18607 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18608 + func_fatal_error "unknown suffix for \`$my_dlsyms'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18609 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18610 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18611 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18612 + # We keep going just in case the user didn't refer to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18613 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18614 + # really was required.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18615 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18616 + # Nullify the symbol file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18617 + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18618 + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18619 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18620 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18621 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18622 +# func_win32_libid arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18623 +# return the library type of file 'arg'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18624 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18625 +# Need a lot of goo to handle *both* DLLs and import libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18626 +# Has to be a shell function in order to 'eat' the argument
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18627 +# that is supplied when $file_magic_command is called.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18628 +# Despite the name, also deal with 64 bit binaries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18629 +func_win32_libid ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18630 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18631 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18632 + win32_libid_type="unknown"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18633 + win32_fileres=`file -L $1 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18634 + case $win32_fileres in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18635 + *ar\ archive\ import\ library*) # definitely import
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18636 + win32_libid_type="x86 archive import"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18637 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18638 + *ar\ archive*) # could be an import, or static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18639 + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18640 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18641 + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18642 + func_to_tool_file "$1" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18643 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18644 + $SED -n -e '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18645 + 1,100{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18646 + / I /{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18647 + s,.*,import,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18648 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18649 + q
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18650 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18651 + }'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18652 + case $win32_nmres in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18653 + import*) win32_libid_type="x86 archive import";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18654 + *) win32_libid_type="x86 archive static";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18655 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18656 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18657 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18658 + *DLL*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18659 + win32_libid_type="x86 DLL"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18660 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18661 + *executable*) # but shell scripts are "executable" too...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18662 + case $win32_fileres in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18663 + *MS\ Windows\ PE\ Intel*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18664 + win32_libid_type="x86 DLL"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18665 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18666 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18667 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18668 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18669 + $ECHO "$win32_libid_type"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18670 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18671 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18672 +# func_cygming_dll_for_implib ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18673 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18674 +# Platform-specific function to extract the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18675 +# name of the DLL associated with the specified
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18676 +# import library ARG.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18677 +# Invoked by eval'ing the libtool variable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18678 +# $sharedlib_from_linklib_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18679 +# Result is available in the variable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18680 +# $sharedlib_from_linklib_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18681 +func_cygming_dll_for_implib ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18682 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18683 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18684 + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18685 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18686 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18687 +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18688 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18689 +# The is the core of a fallback implementation of a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18690 +# platform-specific function to extract the name of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18691 +# DLL associated with the specified import library LIBNAME.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18692 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18693 +# SECTION_NAME is either .idata$6 or .idata$7, depending
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18694 +# on the platform and compiler that created the implib.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18695 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18696 +# Echos the name of the DLL associated with the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18697 +# specified import library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18698 +func_cygming_dll_for_implib_fallback_core ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18699 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18700 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18701 + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18702 + $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18703 + $SED '/^Contents of section '"$match_literal"':/{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18704 + # Place marker at beginning of archive member dllname section
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18705 + s/.*/====MARK====/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18706 + p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18707 + d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18708 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18709 + # These lines can sometimes be longer than 43 characters, but
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18710 + # are always uninteresting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18711 + /:[ ]*file format pe[i]\{,1\}-/d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18712 + /^In archive [^:]*:/d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18713 + # Ensure marker is printed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18714 + /^====MARK====/p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18715 + # Remove all lines with less than 43 characters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18716 + /^.\{43\}/!d
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18717 + # From remaining lines, remove first 43 characters
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18718 + s/^.\{43\}//' |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18719 + $SED -n '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18720 + # Join marker and all lines until next marker into a single line
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18721 + /^====MARK====/ b para
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18722 + H
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18723 + $ b para
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18724 + b
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18725 + :para
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18726 + x
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18727 + s/\n//g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18728 + # Remove the marker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18729 + s/^====MARK====//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18730 + # Remove trailing dots and whitespace
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18731 + s/[\. \t]*$//
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18732 + # Print
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18733 + /./p' |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18734 + # we now have a list, one entry per line, of the stringified
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18735 + # contents of the appropriate section of all members of the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18736 + # archive which possess that section. Heuristic: eliminate
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18737 + # all those which have a first or second character that is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18738 + # a '.' (that is, objdump's representation of an unprintable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18739 + # character.) This should work for all archives with less than
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18740 + # 0x302f exports -- but will fail for DLLs whose name actually
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18741 + # begins with a literal '.' or a single character followed by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18742 + # a '.'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18743 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18744 + # Of those that remain, print the first one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18745 + $SED -e '/^\./d;/^.\./d;q'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18746 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18747 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18748 +# func_cygming_gnu_implib_p ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18749 +# This predicate returns with zero status (TRUE) if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18750 +# ARG is a GNU/binutils-style import library. Returns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18751 +# with nonzero status (FALSE) otherwise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18752 +func_cygming_gnu_implib_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18753 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18754 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18755 + func_to_tool_file "$1" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18756 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18757 + test -n "$func_cygming_gnu_implib_tmp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18758 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18759 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18760 +# func_cygming_ms_implib_p ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18761 +# This predicate returns with zero status (TRUE) if
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18762 +# ARG is an MS-style import library. Returns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18763 +# with nonzero status (FALSE) otherwise.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18764 +func_cygming_ms_implib_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18765 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18766 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18767 + func_to_tool_file "$1" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18768 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18769 + test -n "$func_cygming_ms_implib_tmp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18770 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18771 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18772 +# func_cygming_dll_for_implib_fallback ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18773 +# Platform-specific function to extract the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18774 +# name of the DLL associated with the specified
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18775 +# import library ARG.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18776 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18777 +# This fallback implementation is for use when $DLLTOOL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18778 +# does not support the --identify-strict option.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18779 +# Invoked by eval'ing the libtool variable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18780 +# $sharedlib_from_linklib_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18781 +# Result is available in the variable
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18782 +# $sharedlib_from_linklib_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18783 +func_cygming_dll_for_implib_fallback ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18784 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18785 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18786 + if func_cygming_gnu_implib_p "$1" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18787 + # binutils import library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18788 + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18789 + elif func_cygming_ms_implib_p "$1" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18790 + # ms-generated import library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18791 + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18792 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18793 + # unknown
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18794 + sharedlib_from_linklib_result=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18795 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18796 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18797 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18798 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18799 +# func_extract_an_archive dir oldlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18800 +func_extract_an_archive ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18801 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18802 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18803 + f_ex_an_ar_dir="$1"; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18804 + f_ex_an_ar_oldlib="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18805 + if test "$lock_old_archive_extraction" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18806 + lockfile=$f_ex_an_ar_oldlib.lock
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18807 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18808 + func_echo "Waiting for $lockfile to be removed"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18809 + sleep 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18810 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18811 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18812 + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18813 + 'stat=$?; rm -f "$lockfile"; exit $stat'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18814 + if test "$lock_old_archive_extraction" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18815 + $opt_dry_run || rm -f "$lockfile"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18816 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18817 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18818 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18819 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18820 + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18821 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18822 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18823 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18824 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18825 +# func_extract_archives gentop oldlib ...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18826 +func_extract_archives ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18827 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18828 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18829 + my_gentop="$1"; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18830 + my_oldlibs=${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18831 + my_oldobjs=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18832 + my_xlib=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18833 + my_xabs=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18834 + my_xdir=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18835 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18836 + for my_xlib in $my_oldlibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18837 + # Extract the objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18838 + case $my_xlib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18839 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18840 + *) my_xabs=`pwd`"/$my_xlib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18841 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18842 + func_basename "$my_xlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18843 + my_xlib="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18844 + my_xlib_u=$my_xlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18845 + while :; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18846 + case " $extracted_archives " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18847 + *" $my_xlib_u "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18848 + func_arith $extracted_serial + 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18849 + extracted_serial=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18850 + my_xlib_u=lt$extracted_serial-$my_xlib ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18851 + *) break ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18852 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18853 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18854 + extracted_archives="$extracted_archives $my_xlib_u"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18855 + my_xdir="$my_gentop/$my_xlib_u"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18856 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18857 + func_mkdir_p "$my_xdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18858 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18859 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18860 + *-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18861 + func_verbose "Extracting $my_xabs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18862 + # Do not bother doing anything if just a dry run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18863 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18864 + darwin_orig_dir=`pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18865 + cd $my_xdir || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18866 + darwin_archive=$my_xabs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18867 + darwin_curdir=`pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18868 + darwin_base_archive=`basename "$darwin_archive"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18869 + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18870 + if test -n "$darwin_arches"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18871 + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18872 + darwin_arch=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18873 + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18874 + for darwin_arch in $darwin_arches ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18875 + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18876 + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18877 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18878 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18879 + cd "$darwin_curdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18880 + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18881 + done # $darwin_arches
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18882 + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18883 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18884 + darwin_file=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18885 + darwin_files=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18886 + for darwin_file in $darwin_filelist; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18887 + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18888 + $LIPO -create -output "$darwin_file" $darwin_files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18889 + done # $darwin_filelist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18890 + $RM -rf unfat-$$
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18891 + cd "$darwin_orig_dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18892 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18893 + cd $darwin_orig_dir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18894 + func_extract_an_archive "$my_xdir" "$my_xabs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18895 + fi # $darwin_arches
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18896 + } # !$opt_dry_run
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18897 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18898 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18899 + func_extract_an_archive "$my_xdir" "$my_xabs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18900 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18901 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18902 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18903 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18904 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18905 + func_extract_archives_result="$my_oldobjs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18906 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18907 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18908 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18909 +# func_emit_wrapper [arg=no]
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18910 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18911 +# Emit a libtool wrapper script on stdout.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18912 +# Don't directly open a file because we may want to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18913 +# incorporate the script contents within a cygwin/mingw
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18914 +# wrapper executable. Must ONLY be called from within
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18915 +# func_mode_link because it depends on a number of variables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18916 +# set therein.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18917 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18918 +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18919 +# variable will take. If 'yes', then the emitted script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18920 +# will assume that the directory in which it is stored is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18921 +# the $objdir directory. This is a cygwin/mingw-specific
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18922 +# behavior.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18923 +func_emit_wrapper ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18924 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18925 + func_emit_wrapper_arg1=${1-no}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18926 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18927 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18928 +#! $SHELL
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18929 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18930 +# $output - temporary wrapper script for $objdir/$outputname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18931 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18932 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18933 +# The $output program cannot be directly executed until all the libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18934 +# libraries that it depends on are installed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18935 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18936 +# This wrapper script should never be moved out of the build directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18937 +# If it is, it will not operate correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18938 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18939 +# Sed substitution that helps us do robust quoting. It backslashifies
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18940 +# metacharacters that are still active within double-quoted strings.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18941 +sed_quote_subst='$sed_quote_subst'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18942 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18943 +# Be Bourne compatible
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18944 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18945 + emulate sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18946 + NULLCMD=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18947 + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18948 + # is contrary to our usage. Disable this feature.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18949 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18950 + setopt NO_GLOB_SUBST
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18951 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18952 + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18953 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18954 +BIN_SH=xpg4; export BIN_SH # for Tru64
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18955 +DUALCASE=1; export DUALCASE # for MKS sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18956 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18957 +# The HP-UX ksh and POSIX shell print the target directory to stdout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18958 +# if CDPATH is set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18959 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18960 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18961 +relink_command=\"$relink_command\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18962 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18963 +# This environment variable determines our operation mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18964 +if test \"\$libtool_install_magic\" = \"$magic\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18965 + # install mode needs the following variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18966 + generated_by_libtool_version='$macro_version'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18967 + notinst_deplibs='$notinst_deplibs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18968 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18969 + # When we are sourced in execute mode, \$file and \$ECHO are already set.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18970 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18971 + file=\"\$0\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18972 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18973 + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18974 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18975 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18976 +# A function that is used when there is no print builtin or printf.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18977 +func_fallback_echo ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18978 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18979 + eval 'cat <<_LTECHO_EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18980 +\$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18981 +_LTECHO_EOF'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18982 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18983 + ECHO=\"$qECHO\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18984 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18985 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18986 +# Very basic option parsing. These options are (a) specific to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18987 +# the libtool wrapper, (b) are identical between the wrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18988 +# /script/ and the wrapper /executable/ which is used only on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18989 +# windows platforms, and (c) all begin with the string "--lt-"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18990 +# (application programs are unlikely to have options which match
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18991 +# this pattern).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18992 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18993 +# There are only two supported options: --lt-debug and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18994 +# --lt-dump-script. There is, deliberately, no --lt-help.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18995 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18996 +# The first argument to this parsing function should be the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18997 +# script's $0 value, followed by "$@".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18998 +lt_option_debug=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18999 +func_parse_lt_options ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19000 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19001 + lt_script_arg0=\$0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19002 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19003 + for lt_opt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19004 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19005 + case \"\$lt_opt\" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19006 + --lt-debug) lt_option_debug=1 ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19007 + --lt-dump-script)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19008 + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19009 + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19010 + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19011 + cat \"\$lt_dump_D/\$lt_dump_F\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19012 + exit 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19013 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19014 + --lt-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19015 + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19016 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19017 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19018 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19019 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19020 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19021 + # Print the debug banner immediately:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19022 + if test -n \"\$lt_option_debug\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19023 + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19024 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19025 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19026 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19027 +# Used when --lt-debug. Prints its arguments to stdout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19028 +# (redirection is the responsibility of the caller)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19029 +func_lt_dump_args ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19030 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19031 + lt_dump_args_N=1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19032 + for lt_arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19033 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19034 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19035 + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19036 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19037 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19038 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19039 +# Core function for launching the target application
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19040 +func_exec_program_core ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19041 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19042 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19043 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19044 + # Backslashes separate directories on plain windows
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19045 + *-*-mingw | *-*-os2* | *-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19046 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19047 + if test -n \"\$lt_option_debug\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19048 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19049 + func_lt_dump_args \${1+\"\$@\"} 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19050 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19051 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19052 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19053 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19054 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19055 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19056 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19057 + if test -n \"\$lt_option_debug\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19058 + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19059 + func_lt_dump_args \${1+\"\$@\"} 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19060 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19061 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19062 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19063 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19064 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19065 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19066 + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19067 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19068 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19069 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19070 +# A function to encapsulate launching the target application
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19071 +# Strips options in the --lt-* namespace from \$@ and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19072 +# launches target application with the remaining arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19073 +func_exec_program ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19074 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19075 + case \" \$* \" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19076 + *\\ --lt-*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19077 + for lt_wr_arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19078 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19079 + case \$lt_wr_arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19080 + --lt-*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19081 + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19082 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19083 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19084 + done ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19085 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19086 + func_exec_program_core \${1+\"\$@\"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19087 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19088 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19089 + # Parse options
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19090 + func_parse_lt_options \"\$0\" \${1+\"\$@\"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19091 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19092 + # Find the directory that this script lives in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19093 + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19094 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19095 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19096 + # Follow symbolic links until we get to the real thisdir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19097 + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19098 + while test -n \"\$file\"; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19099 + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19100 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19101 + # If there was a directory component, then change thisdir.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19102 + if test \"x\$destdir\" != \"x\$file\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19103 + case \"\$destdir\" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19104 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19105 + *) thisdir=\"\$thisdir/\$destdir\" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19106 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19107 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19108 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19109 + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19110 + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19111 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19112 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19113 + # Usually 'no', except on cygwin/mingw when embedded into
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19114 + # the cwrapper.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19115 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19116 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19117 + # special case for '.'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19118 + if test \"\$thisdir\" = \".\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19119 + thisdir=\`pwd\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19120 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19121 + # remove .libs from thisdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19122 + case \"\$thisdir\" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19123 + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19124 + $objdir ) thisdir=. ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19125 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19126 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19127 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19128 + # Try to get the absolute directory name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19129 + absdir=\`cd \"\$thisdir\" && pwd\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19130 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19131 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19132 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19133 + if test "$fast_install" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19134 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19135 + program=lt-'$outputname'$exeext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19136 + progdir=\"\$thisdir/$objdir\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19137 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19138 + if test ! -f \"\$progdir/\$program\" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19139 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19140 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19141 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19142 + file=\"\$\$-\$program\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19143 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19144 + if test ! -d \"\$progdir\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19145 + $MKDIR \"\$progdir\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19146 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19147 + $RM \"\$progdir/\$file\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19148 + fi"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19149 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19150 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19151 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19152 + # relink executable if necessary
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19153 + if test -n \"\$relink_command\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19154 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19155 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19156 + $ECHO \"\$relink_command_output\" >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19157 + $RM \"\$progdir/\$file\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19158 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19159 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19160 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19161 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19162 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19163 + { $RM \"\$progdir/\$program\";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19164 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19165 + $RM \"\$progdir/\$file\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19166 + fi"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19167 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19168 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19169 + program='$outputname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19170 + progdir=\"\$thisdir/$objdir\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19171 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19172 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19173 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19174 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19175 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19176 + if test -f \"\$progdir/\$program\"; then"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19177 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19178 + # fixup the dll searchpath if we need to.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19179 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19180 + # Fix the DLL searchpath if we need to. Do this before prepending
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19181 + # to shlibpath, because on Windows, both are PATH and uninstalled
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19182 + # libraries must come first.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19183 + if test -n "$dllsearchpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19184 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19185 + # Add the dll search path components to the executable PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19186 + PATH=$dllsearchpath:\$PATH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19187 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19188 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19189 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19190 + # Export our shlibpath_var if we have one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19191 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19192 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19193 + # Add our own library path to $shlibpath_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19194 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19195 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19196 + # Some systems cannot cope with colon-terminated $shlibpath_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19197 + # The second colon is a workaround for a bug in BeOS R4 sed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19198 + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19199 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19200 + export $shlibpath_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19201 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19202 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19203 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19204 + $ECHO "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19205 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19206 + # Run the actual program with our arguments.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19207 + func_exec_program \${1+\"\$@\"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19208 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19209 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19210 + # The program doesn't exist.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19211 + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19212 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19213 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19214 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19215 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19216 +fi\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19217 +"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19218 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19219 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19220 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19221 +# func_emit_cwrapperexe_src
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19222 +# emit the source code for a wrapper executable on stdout
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19223 +# Must ONLY be called from within func_mode_link because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19224 +# it depends on a number of variable set therein.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19225 +func_emit_cwrapperexe_src ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19226 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19227 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19228 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19229 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19230 + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19231 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19232 + The $output program cannot be directly executed until all the libtool
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19233 + libraries that it depends on are installed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19234 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19235 + This wrapper executable should never be moved out of the build directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19236 + If it is, it will not operate correctly.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19237 +*/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19238 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19239 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19240 +#ifdef _MSC_VER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19241 +# define _CRT_SECURE_NO_DEPRECATE 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19242 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19243 +#include <stdio.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19244 +#include <stdlib.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19245 +#ifdef _MSC_VER
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19246 +# include <direct.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19247 +# include <process.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19248 +# include <io.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19249 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19250 +# include <unistd.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19251 +# include <stdint.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19252 +# ifdef __CYGWIN__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19253 +# include <io.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19254 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19255 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19256 +#include <malloc.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19257 +#include <stdarg.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19258 +#include <assert.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19259 +#include <string.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19260 +#include <ctype.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19261 +#include <errno.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19262 +#include <fcntl.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19263 +#include <sys/stat.h>
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19264 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19265 +/* declarations of non-ANSI functions */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19266 +#if defined(__MINGW32__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19267 +# ifdef __STRICT_ANSI__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19268 +int _putenv (const char *);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19269 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19270 +#elif defined(__CYGWIN__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19271 +# ifdef __STRICT_ANSI__
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19272 +char *realpath (const char *, char *);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19273 +int putenv (char *);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19274 +int setenv (const char *, const char *, int);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19275 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19276 +/* #elif defined (other platforms) ... */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19277 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19278 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19279 +/* portability defines, excluding path handling macros */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19280 +#if defined(_MSC_VER)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19281 +# define setmode _setmode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19282 +# define stat _stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19283 +# define chmod _chmod
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19284 +# define getcwd _getcwd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19285 +# define putenv _putenv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19286 +# define S_IXUSR _S_IEXEC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19287 +# ifndef _INTPTR_T_DEFINED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19288 +# define _INTPTR_T_DEFINED
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19289 +# define intptr_t int
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19290 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19291 +#elif defined(__MINGW32__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19292 +# define setmode _setmode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19293 +# define stat _stat
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19294 +# define chmod _chmod
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19295 +# define getcwd _getcwd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19296 +# define putenv _putenv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19297 +#elif defined(__CYGWIN__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19298 +# define HAVE_SETENV
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19299 +# define FOPEN_WB "wb"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19300 +/* #elif defined (other platforms) ... */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19301 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19302 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19303 +#if defined(PATH_MAX)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19304 +# define LT_PATHMAX PATH_MAX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19305 +#elif defined(MAXPATHLEN)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19306 +# define LT_PATHMAX MAXPATHLEN
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19307 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19308 +# define LT_PATHMAX 1024
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19309 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19310 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19311 +#ifndef S_IXOTH
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19312 +# define S_IXOTH 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19313 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19314 +#ifndef S_IXGRP
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19315 +# define S_IXGRP 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19316 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19317 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19318 +/* path handling portability macros */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19319 +#ifndef DIR_SEPARATOR
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19320 +# define DIR_SEPARATOR '/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19321 +# define PATH_SEPARATOR ':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19322 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19323 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19324 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19325 + defined (__OS2__)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19326 +# define HAVE_DOS_BASED_FILE_SYSTEM
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19327 +# define FOPEN_WB "wb"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19328 +# ifndef DIR_SEPARATOR_2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19329 +# define DIR_SEPARATOR_2 '\\'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19330 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19331 +# ifndef PATH_SEPARATOR_2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19332 +# define PATH_SEPARATOR_2 ';'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19333 +# endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19334 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19335 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19336 +#ifndef DIR_SEPARATOR_2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19337 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19338 +#else /* DIR_SEPARATOR_2 */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19339 +# define IS_DIR_SEPARATOR(ch) \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19340 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19341 +#endif /* DIR_SEPARATOR_2 */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19342 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19343 +#ifndef PATH_SEPARATOR_2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19344 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19345 +#else /* PATH_SEPARATOR_2 */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19346 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19347 +#endif /* PATH_SEPARATOR_2 */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19348 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19349 +#ifndef FOPEN_WB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19350 +# define FOPEN_WB "w"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19351 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19352 +#ifndef _O_BINARY
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19353 +# define _O_BINARY 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19354 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19355 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19356 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19357 +#define XFREE(stale) do { \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19358 + if (stale) { free ((void *) stale); stale = 0; } \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19359 +} while (0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19360 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19361 +#if defined(LT_DEBUGWRAPPER)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19362 +static int lt_debug = 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19363 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19364 +static int lt_debug = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19365 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19366 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19367 +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19368 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19369 +void *xmalloc (size_t num);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19370 +char *xstrdup (const char *string);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19371 +const char *base_name (const char *name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19372 +char *find_executable (const char *wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19373 +char *chase_symlinks (const char *pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19374 +int make_executable (const char *path);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19375 +int check_executable (const char *path);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19376 +char *strendzap (char *str, const char *pat);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19377 +void lt_debugprintf (const char *file, int line, const char *fmt, ...);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19378 +void lt_fatal (const char *file, int line, const char *message, ...);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19379 +static const char *nonnull (const char *s);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19380 +static const char *nonempty (const char *s);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19381 +void lt_setenv (const char *name, const char *value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19382 +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19383 +void lt_update_exe_path (const char *name, const char *value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19384 +void lt_update_lib_path (const char *name, const char *value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19385 +char **prepare_spawn (char **argv);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19386 +void lt_dump_script (FILE *f);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19387 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19388 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19389 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19390 +volatile const char * MAGIC_EXE = "$magic_exe";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19391 +const char * LIB_PATH_VARNAME = "$shlibpath_var";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19392 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19393 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19394 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19395 + func_to_host_path "$temp_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19396 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19397 +const char * LIB_PATH_VALUE = "$func_to_host_path_result";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19398 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19399 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19400 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19401 +const char * LIB_PATH_VALUE = "";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19402 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19403 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19404 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19405 + if test -n "$dllsearchpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19406 + func_to_host_path "$dllsearchpath:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19407 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19408 +const char * EXE_PATH_VARNAME = "PATH";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19409 +const char * EXE_PATH_VALUE = "$func_to_host_path_result";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19410 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19411 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19412 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19413 +const char * EXE_PATH_VARNAME = "";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19414 +const char * EXE_PATH_VALUE = "";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19415 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19416 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19417 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19418 + if test "$fast_install" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19419 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19420 +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19421 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19422 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19423 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19424 +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19425 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19426 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19427 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19428 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19429 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19430 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19431 +#define LTWRAPPER_OPTION_PREFIX "--lt-"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19432 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19433 +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19434 +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19435 +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19436 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19437 +int
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19438 +main (int argc, char *argv[])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19439 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19440 + char **newargz;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19441 + int newargc;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19442 + char *tmp_pathspec;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19443 + char *actual_cwrapper_path;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19444 + char *actual_cwrapper_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19445 + char *target_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19446 + char *lt_argv_zero;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19447 + intptr_t rval = 127;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19448 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19449 + int i;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19450 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19451 + program_name = (char *) xstrdup (base_name (argv[0]));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19452 + newargz = XMALLOC (char *, argc + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19453 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19454 + /* very simple arg parsing; don't want to rely on getopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19455 + * also, copy all non cwrapper options to newargz, except
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19456 + * argz[0], which is handled differently
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19457 + */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19458 + newargc=0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19459 + for (i = 1; i < argc; i++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19460 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19461 + if (strcmp (argv[i], dumpscript_opt) == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19462 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19463 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19464 + case "$host" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19465 + *mingw* | *cygwin* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19466 + # make stdout use "unix" line endings
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19467 + echo " setmode(1,_O_BINARY);"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19468 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19469 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19470 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19471 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19472 + lt_dump_script (stdout);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19473 + return 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19474 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19475 + if (strcmp (argv[i], debug_opt) == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19476 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19477 + lt_debug = 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19478 + continue;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19479 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19480 + if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19481 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19482 + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19483 + namespace, but it is not one of the ones we know about and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19484 + have already dealt with, above (inluding dump-script), then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19485 + report an error. Otherwise, targets might begin to believe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19486 + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19487 + namespace. The first time any user complains about this, we'll
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19488 + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19489 + or a configure.ac-settable value.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19490 + */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19491 + lt_fatal (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19492 + "unrecognized %s option: '%s'",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19493 + ltwrapper_option_prefix, argv[i]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19494 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19495 + /* otherwise ... */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19496 + newargz[++newargc] = xstrdup (argv[i]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19497 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19498 + newargz[++newargc] = NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19499 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19500 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19501 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19502 + /* The GNU banner must be the first non-error debug message */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19503 + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19504 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19505 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19506 + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19507 + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19509 + tmp_pathspec = find_executable (argv[0]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19510 + if (tmp_pathspec == NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19511 + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19512 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19513 + "(main) found exe (before symlink chase) at: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19514 + tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19515 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19516 + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19517 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19518 + "(main) found exe (after symlink chase) at: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19519 + actual_cwrapper_path);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19520 + XFREE (tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19521 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19522 + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19523 + strendzap (actual_cwrapper_path, actual_cwrapper_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19524 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19525 + /* wrapper name transforms */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19526 + strendzap (actual_cwrapper_name, ".exe");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19527 + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19528 + XFREE (actual_cwrapper_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19529 + actual_cwrapper_name = tmp_pathspec;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19530 + tmp_pathspec = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19531 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19532 + /* target_name transforms -- use actual target program name; might have lt- prefix */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19533 + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19534 + strendzap (target_name, ".exe");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19535 + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19536 + XFREE (target_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19537 + target_name = tmp_pathspec;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19538 + tmp_pathspec = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19539 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19540 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19541 + "(main) libtool target name: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19542 + target_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19543 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19544 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19545 + cat <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19546 + newargz[0] =
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19547 + XMALLOC (char, (strlen (actual_cwrapper_path) +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19548 + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19549 + strcpy (newargz[0], actual_cwrapper_path);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19550 + strcat (newargz[0], "$objdir");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19551 + strcat (newargz[0], "/");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19552 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19553 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19554 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19555 + /* stop here, and copy so we don't have to do this twice */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19556 + tmp_pathspec = xstrdup (newargz[0]);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19557 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19558 + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19559 + strcat (newargz[0], actual_cwrapper_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19560 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19561 + /* DO want the lt- prefix here if it exists, so use target_name */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19562 + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19563 + XFREE (tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19564 + tmp_pathspec = NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19565 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19566 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19567 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19568 + mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19569 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19570 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19571 + char* p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19572 + while ((p = strchr (newargz[0], '\\')) != NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19573 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19574 + *p = '/';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19575 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19576 + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19577 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19578 + *p = '/';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19579 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19580 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19581 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19582 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19583 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19584 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19585 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19586 + XFREE (target_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19587 + XFREE (actual_cwrapper_path);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19588 + XFREE (actual_cwrapper_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19589 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19590 + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19591 + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19592 + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19593 + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19594 + because on Windows, both *_VARNAMEs are PATH but uninstalled
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19595 + libraries must come first. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19596 + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19597 + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19598 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19599 + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19600 + nonnull (lt_argv_zero));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19601 + for (i = 0; i < newargc; i++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19602 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19603 + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19604 + i, nonnull (newargz[i]));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19605 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19606 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19607 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19608 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19609 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19610 + mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19611 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19612 + /* execv doesn't actually work on mingw as expected on unix */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19613 + newargz = prepare_spawn (newargz);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19614 + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19615 + if (rval == -1)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19616 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19617 + /* failed to start process */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19618 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19619 + "(main) failed to launch target \"%s\": %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19620 + lt_argv_zero, nonnull (strerror (errno)));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19621 + return 127;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19622 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19623 + return rval;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19624 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19625 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19626 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19627 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19628 + execv (lt_argv_zero, newargz);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19629 + return rval; /* =127, but avoids unused variable warning */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19630 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19631 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19632 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19633 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19634 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19635 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19636 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19637 +void *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19638 +xmalloc (size_t num)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19639 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19640 + void *p = (void *) malloc (num);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19641 + if (!p)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19642 + lt_fatal (__FILE__, __LINE__, "memory exhausted");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19643 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19644 + return p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19645 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19646 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19647 +char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19648 +xstrdup (const char *string)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19649 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19650 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19651 + string) : NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19652 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19653 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19654 +const char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19655 +base_name (const char *name)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19656 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19657 + const char *base;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19658 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19659 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19660 + /* Skip over the disk name in MSDOS pathnames. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19661 + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19662 + name += 2;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19663 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19664 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19665 + for (base = name; *name; name++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19666 + if (IS_DIR_SEPARATOR (*name))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19667 + base = name + 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19668 + return base;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19669 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19670 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19671 +int
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19672 +check_executable (const char *path)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19673 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19674 + struct stat st;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19675 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19676 + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19677 + nonempty (path));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19678 + if ((!path) || (!*path))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19679 + return 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19680 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19681 + if ((stat (path, &st) >= 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19682 + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19683 + return 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19684 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19685 + return 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19686 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19687 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19688 +int
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19689 +make_executable (const char *path)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19690 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19691 + int rval = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19692 + struct stat st;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19693 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19694 + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19695 + nonempty (path));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19696 + if ((!path) || (!*path))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19697 + return 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19698 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19699 + if (stat (path, &st) >= 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19700 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19701 + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19702 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19703 + return rval;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19704 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19705 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19706 +/* Searches for the full path of the wrapper. Returns
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19707 + newly allocated full path name if found, NULL otherwise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19708 + Does not chase symlinks, even on platforms that support them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19709 +*/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19710 +char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19711 +find_executable (const char *wrapper)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19712 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19713 + int has_slash = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19714 + const char *p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19715 + const char *p_next;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19716 + /* static buffer for getcwd */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19717 + char tmp[LT_PATHMAX + 1];
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19718 + int tmp_len;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19719 + char *concat_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19720 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19721 + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19722 + nonempty (wrapper));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19723 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19724 + if ((wrapper == NULL) || (*wrapper == '\0'))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19725 + return NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19726 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19727 + /* Absolute path? */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19728 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19729 + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19730 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19731 + concat_name = xstrdup (wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19732 + if (check_executable (concat_name))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19733 + return concat_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19734 + XFREE (concat_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19735 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19736 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19737 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19738 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19739 + if (IS_DIR_SEPARATOR (wrapper[0]))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19740 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19741 + concat_name = xstrdup (wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19742 + if (check_executable (concat_name))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19743 + return concat_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19744 + XFREE (concat_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19745 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19746 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19747 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19748 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19749 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19750 + for (p = wrapper; *p; p++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19751 + if (*p == '/')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19752 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19753 + has_slash = 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19754 + break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19755 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19756 + if (!has_slash)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19757 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19758 + /* no slashes; search PATH */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19759 + const char *path = getenv ("PATH");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19760 + if (path != NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19761 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19762 + for (p = path; *p; p = p_next)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19763 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19764 + const char *q;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19765 + size_t p_len;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19766 + for (q = p; *q; q++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19767 + if (IS_PATH_SEPARATOR (*q))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19768 + break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19769 + p_len = q - p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19770 + p_next = (*q == '\0' ? q : q + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19771 + if (p_len == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19772 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19773 + /* empty path: current directory */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19774 + if (getcwd (tmp, LT_PATHMAX) == NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19775 + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19776 + nonnull (strerror (errno)));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19777 + tmp_len = strlen (tmp);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19778 + concat_name =
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19779 + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19780 + memcpy (concat_name, tmp, tmp_len);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19781 + concat_name[tmp_len] = '/';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19782 + strcpy (concat_name + tmp_len + 1, wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19783 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19784 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19785 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19786 + concat_name =
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19787 + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19788 + memcpy (concat_name, p, p_len);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19789 + concat_name[p_len] = '/';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19790 + strcpy (concat_name + p_len + 1, wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19791 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19792 + if (check_executable (concat_name))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19793 + return concat_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19794 + XFREE (concat_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19795 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19796 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19797 + /* not found in PATH; assume curdir */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19798 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19799 + /* Relative path | not found in path: prepend cwd */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19800 + if (getcwd (tmp, LT_PATHMAX) == NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19801 + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19802 + nonnull (strerror (errno)));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19803 + tmp_len = strlen (tmp);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19804 + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19805 + memcpy (concat_name, tmp, tmp_len);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19806 + concat_name[tmp_len] = '/';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19807 + strcpy (concat_name + tmp_len + 1, wrapper);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19808 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19809 + if (check_executable (concat_name))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19810 + return concat_name;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19811 + XFREE (concat_name);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19812 + return NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19813 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19814 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19815 +char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19816 +chase_symlinks (const char *pathspec)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19817 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19818 +#ifndef S_ISLNK
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19819 + return xstrdup (pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19820 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19821 + char buf[LT_PATHMAX];
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19822 + struct stat s;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19823 + char *tmp_pathspec = xstrdup (pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19824 + char *p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19825 + int has_symlinks = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19826 + while (strlen (tmp_pathspec) && !has_symlinks)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19827 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19828 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19829 + "checking path component for symlinks: %s\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19830 + tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19831 + if (lstat (tmp_pathspec, &s) == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19832 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19833 + if (S_ISLNK (s.st_mode) != 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19834 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19835 + has_symlinks = 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19836 + break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19837 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19838 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19839 + /* search backwards for last DIR_SEPARATOR */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19840 + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19841 + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19842 + p--;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19843 + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19844 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19845 + /* no more DIR_SEPARATORS left */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19846 + break;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19847 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19848 + *p = '\0';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19849 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19850 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19851 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19852 + lt_fatal (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19853 + "error accessing file \"%s\": %s",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19854 + tmp_pathspec, nonnull (strerror (errno)));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19855 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19856 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19857 + XFREE (tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19858 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19859 + if (!has_symlinks)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19860 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19861 + return xstrdup (pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19862 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19863 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19864 + tmp_pathspec = realpath (pathspec, buf);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19865 + if (tmp_pathspec == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19866 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19867 + lt_fatal (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19868 + "could not follow symlinks for %s", pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19869 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19870 + return xstrdup (tmp_pathspec);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19871 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19872 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19873 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19874 +char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19875 +strendzap (char *str, const char *pat)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19876 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19877 + size_t len, patlen;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19878 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19879 + assert (str != NULL);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19880 + assert (pat != NULL);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19881 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19882 + len = strlen (str);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19883 + patlen = strlen (pat);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19884 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19885 + if (patlen <= len)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19886 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19887 + str += len - patlen;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19888 + if (strcmp (str, pat) == 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19889 + *str = '\0';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19890 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19891 + return str;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19892 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19893 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19894 +void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19895 +lt_debugprintf (const char *file, int line, const char *fmt, ...)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19896 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19897 + va_list args;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19898 + if (lt_debug)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19899 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19900 + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19901 + va_start (args, fmt);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19902 + (void) vfprintf (stderr, fmt, args);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19903 + va_end (args);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19904 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19905 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19907 +static void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19908 +lt_error_core (int exit_status, const char *file,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19909 + int line, const char *mode,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19910 + const char *message, va_list ap)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19911 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19912 + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19913 + vfprintf (stderr, message, ap);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19914 + fprintf (stderr, ".\n");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19915 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19916 + if (exit_status >= 0)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19917 + exit (exit_status);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19918 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19919 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19920 +void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19921 +lt_fatal (const char *file, int line, const char *message, ...)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19922 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19923 + va_list ap;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19924 + va_start (ap, message);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19925 + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19926 + va_end (ap);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19927 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19928 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19929 +static const char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19930 +nonnull (const char *s)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19931 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19932 + return s ? s : "(null)";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19933 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19934 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19935 +static const char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19936 +nonempty (const char *s)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19937 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19938 + return (s && !*s) ? "(empty)" : nonnull (s);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19939 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19940 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19941 +void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19942 +lt_setenv (const char *name, const char *value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19943 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19944 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19945 + "(lt_setenv) setting '%s' to '%s'\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19946 + nonnull (name), nonnull (value));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19947 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19948 +#ifdef HAVE_SETENV
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19949 + /* always make a copy, for consistency with !HAVE_SETENV */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19950 + char *str = xstrdup (value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19951 + setenv (name, str, 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19952 +#else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19953 + int len = strlen (name) + 1 + strlen (value) + 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19954 + char *str = XMALLOC (char, len);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19955 + sprintf (str, "%s=%s", name, value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19956 + if (putenv (str) != EXIT_SUCCESS)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19957 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19958 + XFREE (str);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19959 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19960 +#endif
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19961 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19962 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19963 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19964 +char *
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19965 +lt_extend_str (const char *orig_value, const char *add, int to_end)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19966 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19967 + char *new_value;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19968 + if (orig_value && *orig_value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19969 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19970 + int orig_value_len = strlen (orig_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19971 + int add_len = strlen (add);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19972 + new_value = XMALLOC (char, add_len + orig_value_len + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19973 + if (to_end)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19974 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19975 + strcpy (new_value, orig_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19976 + strcpy (new_value + orig_value_len, add);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19977 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19978 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19979 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19980 + strcpy (new_value, add);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19981 + strcpy (new_value + add_len, orig_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19982 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19983 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19984 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19985 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19986 + new_value = xstrdup (add);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19987 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19988 + return new_value;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19989 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19990 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19991 +void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19992 +lt_update_exe_path (const char *name, const char *value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19993 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19994 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19995 + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19996 + nonnull (name), nonnull (value));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19997 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19998 + if (name && *name && value && *value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19999 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20000 + char *new_value = lt_extend_str (getenv (name), value, 0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20001 + /* some systems can't cope with a ':'-terminated path #' */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20002 + int len = strlen (new_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20003 + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20004 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20005 + new_value[len-1] = '\0';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20006 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20007 + lt_setenv (name, new_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20008 + XFREE (new_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20009 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20010 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20011 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20012 +void
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20013 +lt_update_lib_path (const char *name, const char *value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20014 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20015 + lt_debugprintf (__FILE__, __LINE__,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20016 + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20017 + nonnull (name), nonnull (value));
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20018 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20019 + if (name && *name && value && *value)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20020 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20021 + char *new_value = lt_extend_str (getenv (name), value, 0);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20022 + lt_setenv (name, new_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20023 + XFREE (new_value);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20024 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20025 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20026 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20027 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20028 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20029 + mingw*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20030 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20031 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20032 +/* Prepares an argument vector before calling spawn().
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20033 + Note that spawn() does not by itself call the command interpreter
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20034 + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20035 + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20036 + GetVersionEx(&v);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20037 + v.dwPlatformId == VER_PLATFORM_WIN32_NT;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20038 + }) ? "cmd.exe" : "command.com").
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20039 + Instead it simply concatenates the arguments, separated by ' ', and calls
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20040 + CreateProcess(). We must quote the arguments since Win32 CreateProcess()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20041 + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20042 + special way:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20043 + - Space and tab are interpreted as delimiters. They are not treated as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20044 + delimiters if they are surrounded by double quotes: "...".
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20045 + - Unescaped double quotes are removed from the input. Their only effect is
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20046 + that within double quotes, space and tab are treated like normal
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20047 + characters.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20048 + - Backslashes not followed by double quotes are not special.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20049 + - But 2*n+1 backslashes followed by a double quote become
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20050 + n backslashes followed by a double quote (n >= 0):
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20051 + \" -> "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20052 + \\\" -> \"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20053 + \\\\\" -> \\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20054 + */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20055 +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20056 +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20057 +char **
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20058 +prepare_spawn (char **argv)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20059 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20060 + size_t argc;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20061 + char **new_argv;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20062 + size_t i;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20063 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20064 + /* Count number of arguments. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20065 + for (argc = 0; argv[argc] != NULL; argc++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20066 + ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20067 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20068 + /* Allocate new argument vector. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20069 + new_argv = XMALLOC (char *, argc + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20070 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20071 + /* Put quoted arguments into the new argument vector. */
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20072 + for (i = 0; i < argc; i++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20073 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20074 + const char *string = argv[i];
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20075 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20076 + if (string[0] == '\0')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20077 + new_argv[i] = xstrdup ("\"\"");
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20078 + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20079 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20080 + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20081 + size_t length;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20082 + unsigned int backslashes;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20083 + const char *s;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20084 + char *quoted_string;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20085 + char *p;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20086 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20087 + length = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20088 + backslashes = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20089 + if (quote_around)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20090 + length++;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20091 + for (s = string; *s != '\0'; s++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20092 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20093 + char c = *s;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20094 + if (c == '"')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20095 + length += backslashes + 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20096 + length++;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20097 + if (c == '\\')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20098 + backslashes++;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20099 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20100 + backslashes = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20101 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20102 + if (quote_around)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20103 + length += backslashes + 1;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20104 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20105 + quoted_string = XMALLOC (char, length + 1);
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20106 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20107 + p = quoted_string;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20108 + backslashes = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20109 + if (quote_around)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20110 + *p++ = '"';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20111 + for (s = string; *s != '\0'; s++)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20112 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20113 + char c = *s;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20114 + if (c == '"')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20115 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20116 + unsigned int j;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20117 + for (j = backslashes + 1; j > 0; j--)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20118 + *p++ = '\\';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20119 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20120 + *p++ = c;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20121 + if (c == '\\')
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20122 + backslashes++;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20123 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20124 + backslashes = 0;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20125 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20126 + if (quote_around)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20127 + {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20128 + unsigned int j;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20129 + for (j = backslashes; j > 0; j--)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20130 + *p++ = '\\';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20131 + *p++ = '"';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20132 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20133 + *p = '\0';
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20134 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20135 + new_argv[i] = quoted_string;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20136 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20137 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20138 + new_argv[i] = (char *) string;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20139 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20140 + new_argv[argc] = NULL;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20141 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20142 + return new_argv;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20143 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20144 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20145 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20146 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20147 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20148 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20149 +void lt_dump_script (FILE* f)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20150 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20151 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20152 + func_emit_wrapper yes |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20153 + $SED -n -e '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20154 +s/^\(.\{79\}\)\(..*\)/\1\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20155 +\2/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20156 +h
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20157 +s/\([\\"]\)/\\\1/g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20158 +s/$/\\n/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20159 +s/\([^\n]*\).*/ fputs ("\1", f);/p
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20160 +g
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20161 +D'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20162 + cat <<"EOF"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20163 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20164 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20165 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20166 +# end: func_emit_cwrapperexe_src
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20167 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20168 +# func_win32_import_lib_p ARG
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20169 +# True if ARG is an import lib, as indicated by $file_magic_cmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20170 +func_win32_import_lib_p ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20171 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20172 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20173 + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20174 + *import*) : ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20175 + *) false ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20176 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20177 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20178 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20179 +# func_mode_link arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20180 +func_mode_link ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20181 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20182 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20183 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20184 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20185 + # It is impossible to link a dll without this setting, and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20186 + # we shouldn't force the makefile maintainer to figure out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20187 + # which system we are compiling for in order to pass an extra
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20188 + # flag for every libtool invocation.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20189 + # allow_undefined=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20190 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20191 + # FIXME: Unfortunately, there are problems with the above when trying
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20192 + # to make a dll which has undefined symbols, in which case not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20193 + # even a static library is built. For now, we need to specify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20194 + # -no-undefined on the libtool link line when we can be certain
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20195 + # that all symbols are satisfied, otherwise we get a static library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20196 + allow_undefined=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20197 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20198 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20199 + allow_undefined=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20200 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20201 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20202 + libtool_args=$nonopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20203 + base_compile="$nonopt $@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20204 + compile_command=$nonopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20205 + finalize_command=$nonopt
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20206 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20207 + compile_rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20208 + finalize_rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20209 + compile_shlibpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20210 + finalize_shlibpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20211 + convenience=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20212 + old_convenience=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20213 + deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20214 + old_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20215 + compiler_flags=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20216 + linker_flags=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20217 + dllsearchpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20218 + lib_search_path=`pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20219 + inst_prefix_dir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20220 + new_inherited_linker_flags=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20221 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20222 + avoid_version=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20223 + bindir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20224 + dlfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20225 + dlprefiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20226 + dlself=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20227 + export_dynamic=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20228 + export_symbols=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20229 + export_symbols_regex=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20230 + generated=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20231 + libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20232 + ltlibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20233 + module=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20234 + no_install=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20235 + objs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20236 + non_pic_objects=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20237 + precious_files_regex=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20238 + prefer_static_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20239 + preload=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20240 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20241 + prevarg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20242 + release=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20243 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20244 + xrpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20245 + perm_rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20246 + temp_rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20247 + thread_safe=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20248 + vinfo=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20249 + vinfo_number=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20250 + weak_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20251 + single_module="${wl}-single_module"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20252 + func_infer_tag $base_compile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20253 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20254 + # We need to know -static, to get the right output filenames.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20255 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20256 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20257 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20258 + -shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20259 + test "$build_libtool_libs" != yes && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20260 + func_fatal_configuration "can not build a shared library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20261 + build_old_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20262 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20263 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20264 + -all-static | -static | -static-libtool-libs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20265 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20266 + -all-static)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20267 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20268 + func_warning "complete static linking is impossible in this configuration"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20269 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20270 + if test -n "$link_static_flag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20271 + dlopen_self=$dlopen_self_static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20272 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20273 + prefer_static_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20274 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20275 + -static)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20276 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20277 + dlopen_self=$dlopen_self_static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20278 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20279 + prefer_static_libs=built
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20280 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20281 + -static-libtool-libs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20282 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20283 + dlopen_self=$dlopen_self_static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20284 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20285 + prefer_static_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20286 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20287 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20288 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20289 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20290 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20291 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20292 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20293 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20294 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20295 + # See if our shared archives depend on static archives.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20296 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20297 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20298 + # Go through the arguments, transforming them on the way.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20299 + while test "$#" -gt 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20300 + arg="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20301 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20302 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20303 + qarg=$func_quote_for_eval_unquoted_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20304 + func_append libtool_args " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20305 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20306 + # If the previous option needs an argument, assign it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20307 + if test -n "$prev"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20308 + case $prev in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20309 + output)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20310 + func_append compile_command " @OUTPUT@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20311 + func_append finalize_command " @OUTPUT@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20312 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20313 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20314 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20315 + case $prev in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20316 + bindir)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20317 + bindir="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20318 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20319 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20320 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20321 + dlfiles|dlprefiles)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20322 + if test "$preload" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20323 + # Add the symbol object into the linking commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20324 + func_append compile_command " @SYMFILE@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20325 + func_append finalize_command " @SYMFILE@"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20326 + preload=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20327 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20328 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20329 + *.la | *.lo) ;; # We handle these cases below.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20330 + force)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20331 + if test "$dlself" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20332 + dlself=needless
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20333 + export_dynamic=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20334 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20335 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20336 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20337 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20338 + self)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20339 + if test "$prev" = dlprefiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20340 + dlself=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20341 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20342 + dlself=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20343 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20344 + dlself=needless
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20345 + export_dynamic=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20346 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20347 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20348 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20349 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20350 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20351 + if test "$prev" = dlfiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20352 + func_append dlfiles " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20353 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20354 + func_append dlprefiles " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20355 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20356 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20357 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20358 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20359 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20360 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20361 + expsyms)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20362 + export_symbols="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20363 + test -f "$arg" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20364 + || func_fatal_error "symbol file \`$arg' does not exist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20365 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20366 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20367 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20368 + expsyms_regex)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20369 + export_symbols_regex="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20370 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20371 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20372 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20373 + framework)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20374 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20375 + *-*-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20376 + case "$deplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20377 + *" $qarg.ltframework "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20378 + *) func_append deplibs " $qarg.ltframework" # this is fixed later
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20379 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20380 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20381 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20382 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20383 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20384 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20385 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20386 + inst_prefix)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20387 + inst_prefix_dir="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20388 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20389 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20390 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20391 + objectlist)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20392 + if test -f "$arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20393 + save_arg=$arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20394 + moreargs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20395 + for fil in `cat "$save_arg"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20396 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20397 +# func_append moreargs " $fil"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20398 + arg=$fil
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20399 + # A libtool-controlled object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20400 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20401 + # Check to see that this really is a libtool object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20402 + if func_lalib_unsafe_p "$arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20403 + pic_object=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20404 + non_pic_object=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20405 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20406 + # Read the .lo file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20407 + func_source "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20408 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20409 + if test -z "$pic_object" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20410 + test -z "$non_pic_object" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20411 + test "$pic_object" = none &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20412 + test "$non_pic_object" = none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20413 + func_fatal_error "cannot find name of object for \`$arg'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20414 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20415 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20416 + # Extract subdirectory from the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20417 + func_dirname "$arg" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20418 + xdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20419 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20420 + if test "$pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20421 + # Prepend the subdirectory the object is found in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20422 + pic_object="$xdir$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20423 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20424 + if test "$prev" = dlfiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20425 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20426 + func_append dlfiles " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20427 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20428 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20429 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20430 + # If libtool objects are unsupported, then we need to preload.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20431 + prev=dlprefiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20432 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20433 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20434 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20435 + # CHECK ME: I think I busted this. -Ossama
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20436 + if test "$prev" = dlprefiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20437 + # Preload the old-style object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20438 + func_append dlprefiles " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20439 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20440 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20441 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20442 + # A PIC object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20443 + func_append libobjs " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20444 + arg="$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20445 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20446 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20447 + # Non-PIC object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20448 + if test "$non_pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20449 + # Prepend the subdirectory the object is found in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20450 + non_pic_object="$xdir$non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20451 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20452 + # A standard non-PIC object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20453 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20454 + if test -z "$pic_object" || test "$pic_object" = none ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20455 + arg="$non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20456 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20457 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20458 + # If the PIC object exists, use it instead.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20459 + # $xdir was prepended to $pic_object above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20460 + non_pic_object="$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20461 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20462 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20463 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20464 + # Only an error if not doing a dry-run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20465 + if $opt_dry_run; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20466 + # Extract subdirectory from the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20467 + func_dirname "$arg" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20468 + xdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20469 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20470 + func_lo2o "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20471 + pic_object=$xdir$objdir/$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20472 + non_pic_object=$xdir$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20473 + func_append libobjs " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20474 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20475 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20476 + func_fatal_error "\`$arg' is not a valid libtool object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20477 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20478 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20479 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20480 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20481 + func_fatal_error "link input file \`$arg' does not exist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20482 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20483 + arg=$save_arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20484 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20485 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20486 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20487 + precious_regex)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20488 + precious_files_regex="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20489 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20490 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20491 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20492 + release)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20493 + release="-$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20494 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20495 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20496 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20497 + rpath | xrpath)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20498 + # We need an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20499 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20500 + [\\/]* | [A-Za-z]:[\\/]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20501 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20502 + func_fatal_error "only absolute run-paths are allowed"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20503 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20504 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20505 + if test "$prev" = rpath; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20506 + case "$rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20507 + *" $arg "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20508 + *) func_append rpath " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20509 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20510 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20511 + case "$xrpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20512 + *" $arg "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20513 + *) func_append xrpath " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20514 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20515 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20516 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20517 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20518 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20519 + shrext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20520 + shrext_cmds="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20521 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20522 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20523 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20524 + weak)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20525 + func_append weak_libs " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20526 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20527 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20528 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20529 + xcclinker)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20530 + func_append linker_flags " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20531 + func_append compiler_flags " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20532 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20533 + func_append compile_command " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20534 + func_append finalize_command " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20535 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20536 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20537 + xcompiler)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20538 + func_append compiler_flags " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20539 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20540 + func_append compile_command " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20541 + func_append finalize_command " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20542 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20543 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20544 + xlinker)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20545 + func_append linker_flags " $qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20546 + func_append compiler_flags " $wl$qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20547 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20548 + func_append compile_command " $wl$qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20549 + func_append finalize_command " $wl$qarg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20550 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20551 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20552 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20553 + eval "$prev=\"\$arg\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20554 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20555 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20556 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20557 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20558 + fi # test -n "$prev"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20559 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20560 + prevarg="$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20561 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20562 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20563 + -all-static)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20564 + if test -n "$link_static_flag"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20565 + # See comment for -static flag below, for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20566 + func_append compile_command " $link_static_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20567 + func_append finalize_command " $link_static_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20568 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20569 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20570 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20571 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20572 + -allow-undefined)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20573 + # FIXME: remove this flag sometime in the future.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20574 + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20575 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20576 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20577 + -avoid-version)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20578 + avoid_version=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20579 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20580 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20581 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20582 + -bindir)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20583 + prev=bindir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20584 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20585 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20587 + -dlopen)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20588 + prev=dlfiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20589 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20590 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20591 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20592 + -dlpreopen)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20593 + prev=dlprefiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20594 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20595 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20596 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20597 + -export-dynamic)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20598 + export_dynamic=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20599 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20600 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20601 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20602 + -export-symbols | -export-symbols-regex)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20603 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20604 + func_fatal_error "more than one -exported-symbols argument is not allowed"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20605 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20606 + if test "X$arg" = "X-export-symbols"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20607 + prev=expsyms
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20608 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20609 + prev=expsyms_regex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20610 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20611 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20612 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20613 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20614 + -framework)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20615 + prev=framework
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20616 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20617 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20618 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20619 + -inst-prefix-dir)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20620 + prev=inst_prefix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20621 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20622 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20623 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20624 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20625 + # so, if we see these flags be careful not to treat them like -L
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20626 + -L[A-Z][A-Z]*:*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20627 + case $with_gcc/$host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20628 + no/*-*-irix* | /*-*-irix*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20629 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20630 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20631 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20632 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20633 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20634 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20635 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20636 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20637 + func_stripname "-L" '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20638 + if test -z "$func_stripname_result"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20639 + if test "$#" -gt 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20640 + func_fatal_error "require no space between \`-L' and \`$1'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20641 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20642 + func_fatal_error "need path for \`-L' option"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20643 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20644 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20645 + func_resolve_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20646 + dir=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20647 + # We need an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20648 + case $dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20649 + [\\/]* | [A-Za-z]:[\\/]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20650 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20651 + absdir=`cd "$dir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20652 + test -z "$absdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20653 + func_fatal_error "cannot determine absolute directory name of \`$dir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20654 + dir="$absdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20655 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20656 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20657 + case "$deplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20658 + *" -L$dir "* | *" $arg "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20659 + # Will only happen for absolute or sysroot arguments
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20660 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20661 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20662 + # Preserve sysroot, but never include relative directories
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20663 + case $dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20664 + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20665 + *) func_append deplibs " -L$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20666 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20667 + func_append lib_search_path " $dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20668 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20669 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20670 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20671 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20672 + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20673 + case :$dllsearchpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20674 + *":$dir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20675 + ::) dllsearchpath=$dir;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20676 + *) func_append dllsearchpath ":$dir";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20677 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20678 + case :$dllsearchpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20679 + *":$testbindir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20680 + ::) dllsearchpath=$testbindir;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20681 + *) func_append dllsearchpath ":$testbindir";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20682 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20683 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20684 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20685 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20686 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20687 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20688 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20689 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20690 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20691 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20692 + # These systems don't actually have a C or math library (as such)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20693 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20694 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20695 + *-*-os2*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20696 + # These systems don't actually have a C library (as such)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20697 + test "X$arg" = "X-lc" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20698 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20699 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20700 + # Do not include libc due to us having libc/libc_r.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20701 + test "X$arg" = "X-lc" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20702 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20703 + *-*-rhapsody* | *-*-darwin1.[012])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20704 + # Rhapsody C and math libraries are in the System framework
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20705 + func_append deplibs " System.ltframework"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20706 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20707 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20708 + *-*-sco3.2v5* | *-*-sco5v6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20709 + # Causes problems with __ctype
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20710 + test "X$arg" = "X-lc" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20711 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20712 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20713 + # Compiler inserts libc in the correct place for threads to work
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20714 + test "X$arg" = "X-lc" && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20715 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20716 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20717 + elif test "X$arg" = "X-lc_r"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20718 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20719 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20720 + # Do not include libc_r directly, use -pthread flag.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20721 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20722 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20723 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20724 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20725 + func_append deplibs " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20726 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20727 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20728 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20729 + -module)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20730 + module=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20731 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20732 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20733 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20734 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20735 + # classes, name mangling, and exception handling.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20736 + # Darwin uses the -arch flag to determine output architecture.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20737 + -model|-arch|-isysroot|--sysroot)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20738 + func_append compiler_flags " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20739 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20740 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20741 + prev=xcompiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20742 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20743 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20744 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20745 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20746 + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20747 + func_append compiler_flags " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20748 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20749 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20750 + case "$new_inherited_linker_flags " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20751 + *" $arg "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20752 + * ) func_append new_inherited_linker_flags " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20753 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20754 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20755 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20756 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20757 + -multi_module)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20758 + single_module="${wl}-multi_module"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20759 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20760 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20761 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20762 + -no-fast-install)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20763 + fast_install=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20764 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20765 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20766 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20767 + -no-install)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20768 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20769 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20770 + # The PATH hackery in wrapper scripts is required on Windows
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20771 + # and Darwin in order for the loader to find any dlls it needs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20772 + func_warning "\`-no-install' is ignored for $host"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20773 + func_warning "assuming \`-no-fast-install' instead"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20774 + fast_install=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20775 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20776 + *) no_install=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20777 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20778 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20779 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20781 + -no-undefined)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20782 + allow_undefined=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20783 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20784 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20785 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20786 + -objectlist)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20787 + prev=objectlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20788 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20789 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20790 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20791 + -o) prev=output ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20792 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20793 + -precious-files-regex)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20794 + prev=precious_regex
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20795 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20796 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20797 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20798 + -release)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20799 + prev=release
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20800 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20801 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20802 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20803 + -rpath)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20804 + prev=rpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20805 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20806 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20807 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20808 + -R)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20809 + prev=xrpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20810 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20811 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20812 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20813 + -R*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20814 + func_stripname '-R' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20815 + dir=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20816 + # We need an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20817 + case $dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20818 + [\\/]* | [A-Za-z]:[\\/]*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20819 + =*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20820 + func_stripname '=' '' "$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20821 + dir=$lt_sysroot$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20822 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20823 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20824 + func_fatal_error "only absolute run-paths are allowed"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20825 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20826 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20827 + case "$xrpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20828 + *" $dir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20829 + *) func_append xrpath " $dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20830 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20831 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20832 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20833 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20834 + -shared)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20835 + # The effects of -shared are defined in a previous loop.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20836 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20837 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20838 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20839 + -shrext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20840 + prev=shrext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20841 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20842 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20843 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20844 + -static | -static-libtool-libs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20845 + # The effects of -static are defined in a previous loop.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20846 + # We used to do the same as -all-static on platforms that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20847 + # didn't have a PIC flag, but the assumption that the effects
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20848 + # would be equivalent was wrong. It would break on at least
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20849 + # Digital Unix and AIX.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20850 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20851 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20852 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20853 + -thread-safe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20854 + thread_safe=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20855 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20856 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20857 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20858 + -version-info)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20859 + prev=vinfo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20860 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20861 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20862 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20863 + -version-number)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20864 + prev=vinfo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20865 + vinfo_number=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20866 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20867 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20868 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20869 + -weak)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20870 + prev=weak
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20871 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20872 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20873 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20874 + -Wc,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20875 + func_stripname '-Wc,' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20876 + args=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20877 + arg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20878 + save_ifs="$IFS"; IFS=','
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20879 + for flag in $args; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20880 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20881 + func_quote_for_eval "$flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20882 + func_append arg " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20883 + func_append compiler_flags " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20884 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20885 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20886 + func_stripname ' ' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20887 + arg=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20888 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20889 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20890 + -Wl,*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20891 + func_stripname '-Wl,' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20892 + args=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20893 + arg=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20894 + save_ifs="$IFS"; IFS=','
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20895 + for flag in $args; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20896 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20897 + func_quote_for_eval "$flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20898 + func_append arg " $wl$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20899 + func_append compiler_flags " $wl$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20900 + func_append linker_flags " $func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20901 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20902 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20903 + func_stripname ' ' '' "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20904 + arg=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20905 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20906 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20907 + -Xcompiler)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20908 + prev=xcompiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20909 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20910 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20911 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20912 + -Xlinker)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20913 + prev=xlinker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20914 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20915 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20916 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20917 + -XCClinker)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20918 + prev=xcclinker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20919 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20920 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20921 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20922 + # -msg_* for osf cc
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20923 + -msg_*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20924 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20925 + arg="$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20926 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20927 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20928 + # Flags to be passed through unchanged, with rationale:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20929 + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20930 + # -r[0-9][0-9]* specify processor for the SGI compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20931 + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20932 + # +DA*, +DD* enable 64-bit mode for the HP compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20933 + # -q* compiler args for the IBM compiler
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20934 + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20935 + # -F/path path to uninstalled frameworks, gcc on darwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20936 + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20937 + # @file GCC response files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20938 + # -tp=* Portland pgcc target processor selection
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20939 + # --sysroot=* for sysroot support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20940 + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20941 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20942 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20943 + -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20944 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20945 + arg="$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20946 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20947 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20948 + func_append compiler_flags " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20949 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20950 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20951 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20952 + # Some other compiler flag.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20953 + -* | +*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20954 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20955 + arg="$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20956 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20957 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20958 + *.$objext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20959 + # A standard object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20960 + func_append objs " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20961 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20962 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20963 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20964 + # A libtool-controlled object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20965 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20966 + # Check to see that this really is a libtool object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20967 + if func_lalib_unsafe_p "$arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20968 + pic_object=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20969 + non_pic_object=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20970 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20971 + # Read the .lo file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20972 + func_source "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20973 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20974 + if test -z "$pic_object" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20975 + test -z "$non_pic_object" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20976 + test "$pic_object" = none &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20977 + test "$non_pic_object" = none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20978 + func_fatal_error "cannot find name of object for \`$arg'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20979 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20980 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20981 + # Extract subdirectory from the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20982 + func_dirname "$arg" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20983 + xdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20984 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20985 + if test "$pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20986 + # Prepend the subdirectory the object is found in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20987 + pic_object="$xdir$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20988 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20989 + if test "$prev" = dlfiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20990 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20991 + func_append dlfiles " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20992 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20993 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20994 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20995 + # If libtool objects are unsupported, then we need to preload.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20996 + prev=dlprefiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20997 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20998 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20999 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21000 + # CHECK ME: I think I busted this. -Ossama
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21001 + if test "$prev" = dlprefiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21002 + # Preload the old-style object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21003 + func_append dlprefiles " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21004 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21005 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21006 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21007 + # A PIC object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21008 + func_append libobjs " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21009 + arg="$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21010 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21011 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21012 + # Non-PIC object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21013 + if test "$non_pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21014 + # Prepend the subdirectory the object is found in.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21015 + non_pic_object="$xdir$non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21016 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21017 + # A standard non-PIC object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21018 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21019 + if test -z "$pic_object" || test "$pic_object" = none ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21020 + arg="$non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21021 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21022 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21023 + # If the PIC object exists, use it instead.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21024 + # $xdir was prepended to $pic_object above.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21025 + non_pic_object="$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21026 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21027 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21028 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21029 + # Only an error if not doing a dry-run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21030 + if $opt_dry_run; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21031 + # Extract subdirectory from the argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21032 + func_dirname "$arg" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21033 + xdir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21034 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21035 + func_lo2o "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21036 + pic_object=$xdir$objdir/$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21037 + non_pic_object=$xdir$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21038 + func_append libobjs " $pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21039 + func_append non_pic_objects " $non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21040 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21041 + func_fatal_error "\`$arg' is not a valid libtool object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21042 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21043 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21044 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21045 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21046 + *.$libext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21047 + # An archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21048 + func_append deplibs " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21049 + func_append old_deplibs " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21050 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21051 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21052 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21053 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21054 + # A libtool-controlled library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21055 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21056 + func_resolve_sysroot "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21057 + if test "$prev" = dlfiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21058 + # This library was specified with -dlopen.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21059 + func_append dlfiles " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21060 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21061 + elif test "$prev" = dlprefiles; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21062 + # The library was specified with -dlpreopen.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21063 + func_append dlprefiles " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21064 + prev=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21065 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21066 + func_append deplibs " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21067 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21068 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21069 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21070 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21071 + # Some other compiler argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21072 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21073 + # Unknown arguments in both finalize_command and compile_command need
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21074 + # to be aesthetically quoted because they are evaled later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21075 + func_quote_for_eval "$arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21076 + arg="$func_quote_for_eval_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21077 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21078 + esac # arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21079 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21080 + # Now actually substitute the argument into the commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21081 + if test -n "$arg"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21082 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21083 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21084 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21085 + done # argument parsing loop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21086 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21087 + test -n "$prev" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21088 + func_fatal_help "the \`$prevarg' option requires an argument"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21089 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21090 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21091 + eval arg=\"$export_dynamic_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21092 + func_append compile_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21093 + func_append finalize_command " $arg"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21094 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21095 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21096 + oldlibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21097 + # calculate the name of the file, without its directory
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21098 + func_basename "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21099 + outputname="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21100 + libobjs_save="$libobjs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21101 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21102 + if test -n "$shlibpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21103 + # get the directories listed in $shlibpath_var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21104 + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21105 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21106 + shlib_search_path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21107 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21108 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21109 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21110 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21111 + func_dirname "$output" "/" ""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21112 + output_objdir="$func_dirname_result$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21113 + func_to_tool_file "$output_objdir/"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21114 + tool_output_objdir=$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21115 + # Create the object directory.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21116 + func_mkdir_p "$output_objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21117 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21118 + # Determine the type of output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21119 + case $output in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21120 + "")
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21121 + func_fatal_help "you must specify an output file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21122 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21123 + *.$libext) linkmode=oldlib ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21124 + *.lo | *.$objext) linkmode=obj ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21125 + *.la) linkmode=lib ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21126 + *) linkmode=prog ;; # Anything else should be a program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21127 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21128 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21129 + specialdeplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21130 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21131 + libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21132 + # Find all interdependent deplibs by searching for libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21133 + # that are linked more than once (e.g. -la -lb -la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21134 + for deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21135 + if $opt_preserve_dup_deps ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21136 + case "$libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21137 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21138 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21139 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21140 + func_append libs " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21141 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21142 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21143 + if test "$linkmode" = lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21144 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21145 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21146 + # Compute libraries that are listed more than once in $predeps
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21147 + # $postdeps and mark them as special (i.e., whose duplicates are
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21148 + # not to be eliminated).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21149 + pre_post_deps=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21150 + if $opt_duplicate_compiler_generated_deps; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21151 + for pre_post_dep in $predeps $postdeps; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21152 + case "$pre_post_deps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21153 + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21154 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21155 + func_append pre_post_deps " $pre_post_dep"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21156 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21157 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21158 + pre_post_deps=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21159 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21160 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21161 + deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21162 + newdependency_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21163 + newlib_search_path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21164 + need_relink=no # whether we're linking any uninstalled libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21165 + notinst_deplibs= # not-installed libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21166 + notinst_path= # paths that contain not-installed libtool libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21167 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21168 + case $linkmode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21169 + lib)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21170 + passes="conv dlpreopen link"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21171 + for file in $dlfiles $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21172 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21173 + *.la) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21174 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21175 + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21176 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21177 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21178 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21179 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21180 + prog)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21181 + compile_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21182 + finalize_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21183 + alldeplibs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21184 + newdlfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21185 + newdlprefiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21186 + passes="conv scan dlopen dlpreopen link"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21187 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21188 + *) passes="conv"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21189 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21190 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21191 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21192 + for pass in $passes; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21193 + # The preopen pass in lib mode reverses $deplibs; put it back here
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21194 + # so that -L comes before libs that need it for instance...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21195 + if test "$linkmode,$pass" = "lib,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21196 + ## FIXME: Find the place where the list is rebuilt in the wrong
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21197 + ## order, and fix it there properly
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21198 + tmp_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21199 + for deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21200 + tmp_deplibs="$deplib $tmp_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21201 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21202 + deplibs="$tmp_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21203 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21204 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21205 + if test "$linkmode,$pass" = "lib,link" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21206 + test "$linkmode,$pass" = "prog,scan"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21207 + libs="$deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21208 + deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21209 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21210 + if test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21211 + case $pass in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21212 + dlopen) libs="$dlfiles" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21213 + dlpreopen) libs="$dlprefiles" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21214 + link)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21215 + libs="$deplibs %DEPLIBS%"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21216 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21217 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21218 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21219 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21220 + if test "$linkmode,$pass" = "lib,dlpreopen"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21221 + # Collect and forward deplibs of preopened libtool libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21222 + for lib in $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21223 + # Ignore non-libtool-libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21224 + dependency_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21225 + func_resolve_sysroot "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21226 + case $lib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21227 + *.la) func_source "$func_resolve_sysroot_result" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21228 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21229 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21230 + # Collect preopened libtool deplibs, except any this library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21231 + # has declared as weak libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21232 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21233 + func_basename "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21234 + deplib_base=$func_basename_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21235 + case " $weak_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21236 + *" $deplib_base "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21237 + *) func_append deplibs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21238 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21239 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21240 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21241 + libs="$dlprefiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21242 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21243 + if test "$pass" = dlopen; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21244 + # Collect dlpreopened libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21245 + save_deplibs="$deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21246 + deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21247 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21248 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21249 + for deplib in $libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21250 + lib=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21251 + found=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21252 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21253 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21254 + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21255 + if test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21256 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21257 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21258 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21259 + func_append compiler_flags " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21260 + if test "$linkmode" = lib ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21261 + case "$new_inherited_linker_flags " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21262 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21263 + * ) func_append new_inherited_linker_flags " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21264 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21265 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21266 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21267 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21268 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21269 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21270 + if test "$linkmode" != lib && test "$linkmode" != prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21271 + func_warning "\`-l' is ignored for archives/objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21272 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21273 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21274 + func_stripname '-l' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21275 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21276 + if test "$linkmode" = lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21277 + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21278 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21279 + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21280 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21281 + for searchdir in $searchdirs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21282 + for search_ext in .la $std_shrext .so .a; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21283 + # Search the libtool library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21284 + lib="$searchdir/lib${name}${search_ext}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21285 + if test -f "$lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21286 + if test "$search_ext" = ".la"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21287 + found=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21288 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21289 + found=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21290 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21291 + break 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21292 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21293 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21294 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21295 + if test "$found" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21296 + # deplib doesn't seem to be a libtool library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21297 + if test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21298 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21299 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21300 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21301 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21302 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21303 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21304 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21305 + else # deplib is a libtool library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21306 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21307 + # We need to do some special things here, and not later.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21308 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21309 + case " $predeps $postdeps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21310 + *" $deplib "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21311 + if func_lalib_p "$lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21312 + library_names=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21313 + old_library=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21314 + func_source "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21315 + for l in $old_library $library_names; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21316 + ll="$l"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21317 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21318 + if test "X$ll" = "X$old_library" ; then # only static version available
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21319 + found=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21320 + func_dirname "$lib" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21321 + ladir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21322 + lib=$ladir/$old_library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21323 + if test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21324 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21325 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21326 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21327 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21328 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21329 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21330 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21331 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21332 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21333 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21334 + *) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21335 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21336 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21337 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21338 + ;; # -l
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21339 + *.ltframework)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21340 + if test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21341 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21342 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21343 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21344 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21345 + if test "$linkmode" = lib ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21346 + case "$new_inherited_linker_flags " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21347 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21348 + * ) func_append new_inherited_linker_flags " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21349 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21350 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21351 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21352 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21353 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21354 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21355 + case $linkmode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21356 + lib)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21357 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21358 + test "$pass" = conv && continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21359 + newdependency_libs="$deplib $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21360 + func_stripname '-L' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21361 + func_resolve_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21362 + func_append newlib_search_path " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21363 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21364 + prog)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21365 + if test "$pass" = conv; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21366 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21367 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21368 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21369 + if test "$pass" = scan; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21370 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21371 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21372 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21373 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21374 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21375 + func_stripname '-L' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21376 + func_resolve_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21377 + func_append newlib_search_path " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21378 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21379 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21380 + func_warning "\`-L' is ignored for archives/objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21381 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21382 + esac # linkmode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21383 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21384 + ;; # -L
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21385 + -R*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21386 + if test "$pass" = link; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21387 + func_stripname '-R' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21388 + func_resolve_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21389 + dir=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21390 + # Make sure the xrpath contains only unique directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21391 + case "$xrpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21392 + *" $dir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21393 + *) func_append xrpath " $dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21394 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21395 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21396 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21397 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21398 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21399 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21400 + func_resolve_sysroot "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21401 + lib=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21402 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21403 + *.$libext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21404 + if test "$pass" = conv; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21405 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21406 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21407 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21408 + case $linkmode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21409 + lib)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21410 + # Linking convenience modules into shared libraries is allowed,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21411 + # but linking other static libraries is non-portable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21412 + case " $dlpreconveniencelibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21413 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21414 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21415 + valid_a_lib=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21416 + case $deplibs_check_method in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21417 + match_pattern*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21418 + set dummy $deplibs_check_method; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21419 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21420 + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21421 + | $EGREP "$match_pattern_regex" > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21422 + valid_a_lib=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21423 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21424 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21425 + pass_all)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21426 + valid_a_lib=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21427 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21428 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21429 + if test "$valid_a_lib" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21430 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21431 + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21432 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21433 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21434 + echo "*** shared version of the library, which you do not appear to have"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21435 + echo "*** because the file extensions .$libext of this argument makes me believe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21436 + echo "*** that it is just a static archive that I should not use here."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21437 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21438 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21439 + $ECHO "*** Warning: Linking the shared library $output against the"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21440 + $ECHO "*** static library $deplib is not portable!"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21441 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21442 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21443 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21444 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21445 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21446 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21447 + prog)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21448 + if test "$pass" != link; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21449 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21450 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21451 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21452 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21453 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21454 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21455 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21456 + esac # linkmode
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21457 + ;; # *.$libext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21458 + *.lo | *.$objext)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21459 + if test "$pass" = conv; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21460 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21461 + elif test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21462 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21463 + # If there is no dlopen support or we're linking statically,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21464 + # we need to preload.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21465 + func_append newdlprefiles " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21466 + compile_deplibs="$deplib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21467 + finalize_deplibs="$deplib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21468 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21469 + func_append newdlfiles " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21470 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21471 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21472 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21473 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21474 + %DEPLIBS%)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21475 + alldeplibs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21476 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21477 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21478 + esac # case $deplib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21479 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21480 + if test "$found" = yes || test -f "$lib"; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21481 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21482 + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21483 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21484 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21485 + # Check to see that this really is a libtool archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21486 + func_lalib_unsafe_p "$lib" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21487 + || func_fatal_error "\`$lib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21488 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21489 + func_dirname "$lib" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21490 + ladir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21491 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21492 + dlname=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21493 + dlopen=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21494 + dlpreopen=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21495 + libdir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21496 + library_names=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21497 + old_library=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21498 + inherited_linker_flags=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21499 + # If the library was installed with an old release of libtool,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21500 + # it will not redefine variables installed, or shouldnotlink
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21501 + installed=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21502 + shouldnotlink=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21503 + avoidtemprpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21504 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21505 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21506 + # Read the .la file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21507 + func_source "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21509 + # Convert "-framework foo" to "foo.ltframework"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21510 + if test -n "$inherited_linker_flags"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21511 + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21512 + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21513 + case " $new_inherited_linker_flags " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21514 + *" $tmp_inherited_linker_flag "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21515 + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21516 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21517 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21518 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21519 + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21520 + if test "$linkmode,$pass" = "lib,link" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21521 + test "$linkmode,$pass" = "prog,scan" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21522 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21523 + test -n "$dlopen" && func_append dlfiles " $dlopen"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21524 + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21525 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21526 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21527 + if test "$pass" = conv; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21528 + # Only check for convenience libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21529 + deplibs="$lib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21530 + if test -z "$libdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21531 + if test -z "$old_library"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21532 + func_fatal_error "cannot find name of link library for \`$lib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21533 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21534 + # It is a libtool convenience library, so add in its objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21535 + func_append convenience " $ladir/$objdir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21536 + func_append old_convenience " $ladir/$objdir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21537 + tmp_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21538 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21539 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21540 + if $opt_preserve_dup_deps ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21541 + case "$tmp_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21542 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21543 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21544 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21545 + func_append tmp_libs " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21546 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21547 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21548 + func_fatal_error "\`$lib' is not a convenience library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21549 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21550 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21551 + fi # $pass = conv
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21552 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21553 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21554 + # Get the name of the library we link against.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21555 + linklib=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21556 + if test -n "$old_library" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21557 + { test "$prefer_static_libs" = yes ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21558 + test "$prefer_static_libs,$installed" = "built,no"; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21559 + linklib=$old_library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21560 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21561 + for l in $old_library $library_names; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21562 + linklib="$l"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21563 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21564 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21565 + if test -z "$linklib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21566 + func_fatal_error "cannot find name of link library for \`$lib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21567 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21568 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21569 + # This library was specified with -dlopen.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21570 + if test "$pass" = dlopen; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21571 + if test -z "$libdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21572 + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21573 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21574 + if test -z "$dlname" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21575 + test "$dlopen_support" != yes ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21576 + test "$build_libtool_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21577 + # If there is no dlname, no dlopen support or we're linking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21578 + # statically, we need to preload. We also need to preload any
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21579 + # dependent libraries so libltdl's deplib preloader doesn't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21580 + # bomb out in the load deplibs phase.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21581 + func_append dlprefiles " $lib $dependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21582 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21583 + func_append newdlfiles " $lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21584 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21585 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21586 + fi # $pass = dlopen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21587 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21588 + # We need an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21589 + case $ladir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21590 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21591 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21592 + abs_ladir=`cd "$ladir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21593 + if test -z "$abs_ladir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21594 + func_warning "cannot determine absolute directory name of \`$ladir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21595 + func_warning "passing it literally to the linker, although it might fail"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21596 + abs_ladir="$ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21597 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21598 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21599 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21600 + func_basename "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21601 + laname="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21602 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21603 + # Find the relevant object directory and library name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21604 + if test "X$installed" = Xyes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21605 + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21606 + func_warning "library \`$lib' was moved."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21607 + dir="$ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21608 + absdir="$abs_ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21609 + libdir="$abs_ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21610 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21611 + dir="$lt_sysroot$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21612 + absdir="$lt_sysroot$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21613 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21614 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21615 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21616 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21617 + dir="$ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21618 + absdir="$abs_ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21619 + # Remove this search path later
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21620 + func_append notinst_path " $abs_ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21621 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21622 + dir="$ladir/$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21623 + absdir="$abs_ladir/$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21624 + # Remove this search path later
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21625 + func_append notinst_path " $abs_ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21626 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21627 + fi # $installed = yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21628 + func_stripname 'lib' '.la' "$laname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21629 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21630 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21631 + # This library was specified with -dlpreopen.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21632 + if test "$pass" = dlpreopen; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21633 + if test -z "$libdir" && test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21634 + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21635 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21636 + case "$host" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21637 + # special handling for platforms with PE-DLLs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21638 + *cygwin* | *mingw* | *cegcc* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21639 + # Linker will automatically link against shared library if both
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21640 + # static and shared are present. Therefore, ensure we extract
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21641 + # symbols from the import library if a shared library is present
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21642 + # (otherwise, the dlopen module name will be incorrect). We do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21643 + # this by putting the import library name into $newdlprefiles.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21644 + # We recover the dlopen module name by 'saving' the la file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21645 + # name in a special purpose variable, and (later) extracting the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21646 + # dlname from the la file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21647 + if test -n "$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21648 + func_tr_sh "$dir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21649 + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21650 + func_append newdlprefiles " $dir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21651 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21652 + func_append newdlprefiles " $dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21653 + # Keep a list of preopened convenience libraries to check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21654 + # that they are being used correctly in the link pass.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21655 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21656 + func_append dlpreconveniencelibs " $dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21657 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21658 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21659 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21660 + # Prefer using a static library (so that no silly _DYNAMIC symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21661 + # are required to link).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21662 + if test -n "$old_library"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21663 + func_append newdlprefiles " $dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21664 + # Keep a list of preopened convenience libraries to check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21665 + # that they are being used correctly in the link pass.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21666 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21667 + func_append dlpreconveniencelibs " $dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21668 + # Otherwise, use the dlname, so that lt_dlopen finds it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21669 + elif test -n "$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21670 + func_append newdlprefiles " $dir/$dlname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21671 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21672 + func_append newdlprefiles " $dir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21673 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21674 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21675 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21676 + fi # $pass = dlpreopen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21677 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21678 + if test -z "$libdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21679 + # Link the convenience library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21680 + if test "$linkmode" = lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21681 + deplibs="$dir/$old_library $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21682 + elif test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21683 + compile_deplibs="$dir/$old_library $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21684 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21685 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21686 + deplibs="$lib $deplibs" # used for prog,scan pass
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21687 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21688 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21689 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21690 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21692 + if test "$linkmode" = prog && test "$pass" != link; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21693 + func_append newlib_search_path " $ladir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21694 + deplibs="$lib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21695 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21696 + linkalldeplibs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21697 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21698 + test "$build_libtool_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21699 + linkalldeplibs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21700 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21701 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21702 + tmp_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21703 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21704 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21705 + -L*) func_stripname '-L' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21706 + func_resolve_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21707 + func_append newlib_search_path " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21708 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21709 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21710 + # Need to link against all dependency_libs?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21711 + if test "$linkalldeplibs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21712 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21713 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21714 + # Need to hardcode shared library paths
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21715 + # or/and link against static libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21716 + newdependency_libs="$deplib $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21717 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21718 + if $opt_preserve_dup_deps ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21719 + case "$tmp_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21720 + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21721 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21722 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21723 + func_append tmp_libs " $deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21724 + done # for deplib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21725 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21726 + fi # $linkmode = prog...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21727 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21728 + if test "$linkmode,$pass" = "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21729 + if test -n "$library_names" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21730 + { { test "$prefer_static_libs" = no ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21731 + test "$prefer_static_libs,$installed" = "built,yes"; } ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21732 + test -z "$old_library"; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21733 + # We need to hardcode the library path
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21734 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21735 + # Make sure the rpath contains only unique directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21736 + case "$temp_rpath:" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21737 + *"$absdir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21738 + *) func_append temp_rpath "$absdir:" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21739 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21740 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21741 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21742 + # Hardcode the library path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21743 + # Skip directories that are in the system default run-time
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21744 + # search path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21745 + case " $sys_lib_dlsearch_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21746 + *" $absdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21747 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21748 + case "$compile_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21749 + *" $absdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21750 + *) func_append compile_rpath " $absdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21751 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21752 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21753 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21754 + case " $sys_lib_dlsearch_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21755 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21756 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21757 + case "$finalize_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21758 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21759 + *) func_append finalize_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21760 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21761 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21762 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21763 + fi # $linkmode,$pass = prog,link...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21764 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21765 + if test "$alldeplibs" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21766 + { test "$deplibs_check_method" = pass_all ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21767 + { test "$build_libtool_libs" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21768 + test -n "$library_names"; }; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21769 + # We only need to search for static libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21770 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21771 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21772 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21773 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21774 + link_static=no # Whether the deplib will be linked statically
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21775 + use_static_libs=$prefer_static_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21776 + if test "$use_static_libs" = built && test "$installed" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21777 + use_static_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21778 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21779 + if test -n "$library_names" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21780 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21781 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21782 + *cygwin* | *mingw* | *cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21783 + # No point in relinking DLLs because paths are not encoded
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21784 + func_append notinst_deplibs " $lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21785 + need_relink=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21786 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21787 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21788 + if test "$installed" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21789 + func_append notinst_deplibs " $lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21790 + need_relink=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21791 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21792 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21793 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21794 + # This is a shared library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21795 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21796 + # Warn about portability, can't link against -module's on some
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21797 + # systems (darwin). Don't bleat about dlopened modules though!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21798 + dlopenmodule=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21799 + for dlpremoduletest in $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21800 + if test "X$dlpremoduletest" = "X$lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21801 + dlopenmodule="$dlpremoduletest"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21802 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21803 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21804 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21805 + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21806 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21807 + if test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21808 + $ECHO "*** Warning: Linking the executable $output against the loadable module"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21809 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21810 + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21811 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21812 + $ECHO "*** $linklib is not portable!"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21813 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21814 + if test "$linkmode" = lib &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21815 + test "$hardcode_into_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21816 + # Hardcode the library path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21817 + # Skip directories that are in the system default run-time
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21818 + # search path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21819 + case " $sys_lib_dlsearch_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21820 + *" $absdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21821 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21822 + case "$compile_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21823 + *" $absdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21824 + *) func_append compile_rpath " $absdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21825 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21826 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21827 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21828 + case " $sys_lib_dlsearch_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21829 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21830 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21831 + case "$finalize_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21832 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21833 + *) func_append finalize_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21834 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21835 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21836 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21837 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21838 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21839 + if test -n "$old_archive_from_expsyms_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21840 + # figure out the soname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21841 + set dummy $library_names
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21842 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21843 + realname="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21844 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21845 + libname=`eval "\\$ECHO \"$libname_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21846 + # use dlname if we got it. it's perfectly good, no?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21847 + if test -n "$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21848 + soname="$dlname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21849 + elif test -n "$soname_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21850 + # bleh windows
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21851 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21852 + *cygwin* | mingw* | *cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21853 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21854 + major=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21855 + versuffix="-$major"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21856 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21857 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21858 + eval soname=\"$soname_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21859 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21860 + soname="$realname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21861 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21862 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21863 + # Make a new name for the extract_expsyms_cmds to use
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21864 + soroot="$soname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21865 + func_basename "$soroot"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21866 + soname="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21867 + func_stripname 'lib' '.dll' "$soname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21868 + newlib=libimp-$func_stripname_result.a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21869 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21870 + # If the library has no export list, then create one now
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21871 + if test -f "$output_objdir/$soname-def"; then :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21872 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21873 + func_verbose "extracting exported symbol list from \`$soname'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21874 + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21875 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21876 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21877 + # Create $newlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21878 + if test -f "$output_objdir/$newlib"; then :; else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21879 + func_verbose "generating import library for \`$soname'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21880 + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21881 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21882 + # make sure the library variables are pointing to the new library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21883 + dir=$output_objdir
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21884 + linklib=$newlib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21885 + fi # test -n "$old_archive_from_expsyms_cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21886 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21887 + if test "$linkmode" = prog || test "$opt_mode" != relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21888 + add_shlibpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21889 + add_dir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21890 + add=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21891 + lib_linked=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21892 + case $hardcode_action in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21893 + immediate | unsupported)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21894 + if test "$hardcode_direct" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21895 + add="$dir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21896 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21897 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21898 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21899 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21900 + *-*-unixware7*) add_dir="-L$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21901 + *-*-darwin* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21902 + # if the lib is a (non-dlopened) module then we can not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21903 + # link against it, someone is ignoring the earlier warnings
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21904 + if /usr/bin/file -L $add 2> /dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21905 + $GREP ": [^:]* bundle" >/dev/null ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21906 + if test "X$dlopenmodule" != "X$lib"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21907 + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21908 + if test -z "$old_library" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21909 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21910 + echo "*** And there doesn't seem to be a static archive available"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21911 + echo "*** The link will probably fail, sorry"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21912 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21913 + add="$dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21914 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21915 + elif test -n "$old_library"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21916 + add="$dir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21917 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21918 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21919 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21920 + elif test "$hardcode_minus_L" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21921 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21922 + *-*-sunos*) add_shlibpath="$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21923 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21924 + add_dir="-L$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21925 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21926 + elif test "$hardcode_shlibpath_var" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21927 + add_shlibpath="$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21928 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21929 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21930 + lib_linked=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21931 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21932 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21933 + relink)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21934 + if test "$hardcode_direct" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21935 + test "$hardcode_direct_absolute" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21936 + add="$dir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21937 + elif test "$hardcode_minus_L" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21938 + add_dir="-L$absdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21939 + # Try looking first in the location we're being installed to.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21940 + if test -n "$inst_prefix_dir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21941 + case $libdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21942 + [\\/]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21943 + func_append add_dir " -L$inst_prefix_dir$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21944 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21945 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21946 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21947 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21948 + elif test "$hardcode_shlibpath_var" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21949 + add_shlibpath="$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21950 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21951 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21952 + lib_linked=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21953 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21954 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21955 + *) lib_linked=no ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21956 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21957 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21958 + if test "$lib_linked" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21959 + func_fatal_configuration "unsupported hardcode properties"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21960 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21961 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21962 + if test -n "$add_shlibpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21963 + case :$compile_shlibpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21964 + *":$add_shlibpath:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21965 + *) func_append compile_shlibpath "$add_shlibpath:" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21966 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21967 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21968 + if test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21969 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21970 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21971 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21972 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21973 + test -n "$add" && deplibs="$add $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21974 + if test "$hardcode_direct" != yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21975 + test "$hardcode_minus_L" != yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21976 + test "$hardcode_shlibpath_var" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21977 + case :$finalize_shlibpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21978 + *":$libdir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21979 + *) func_append finalize_shlibpath "$libdir:" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21980 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21981 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21982 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21983 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21984 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21985 + if test "$linkmode" = prog || test "$opt_mode" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21986 + add_shlibpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21987 + add_dir=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21988 + add=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21989 + # Finalize command for both is simple: just hardcode it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21990 + if test "$hardcode_direct" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21991 + test "$hardcode_direct_absolute" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21992 + add="$libdir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21993 + elif test "$hardcode_minus_L" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21994 + add_dir="-L$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21995 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21996 + elif test "$hardcode_shlibpath_var" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21997 + case :$finalize_shlibpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21998 + *":$libdir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21999 + *) func_append finalize_shlibpath "$libdir:" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22000 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22001 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22002 + elif test "$hardcode_automatic" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22003 + if test -n "$inst_prefix_dir" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22004 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22005 + add="$inst_prefix_dir$libdir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22006 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22007 + add="$libdir/$linklib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22008 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22009 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22010 + # We cannot seem to hardcode it, guess we'll fake it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22011 + add_dir="-L$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22012 + # Try looking first in the location we're being installed to.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22013 + if test -n "$inst_prefix_dir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22014 + case $libdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22015 + [\\/]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22016 + func_append add_dir " -L$inst_prefix_dir$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22017 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22018 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22019 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22020 + add="-l$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22021 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22022 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22023 + if test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22024 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22025 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22026 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22027 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22028 + test -n "$add" && deplibs="$add $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22029 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22030 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22031 + elif test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22032 + # Here we assume that one of hardcode_direct or hardcode_minus_L
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22033 + # is not unsupported. This is valid on all known static and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22034 + # shared platforms.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22035 + if test "$hardcode_direct" != unsupported; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22036 + test -n "$old_library" && linklib="$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22037 + compile_deplibs="$dir/$linklib $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22038 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22039 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22040 + compile_deplibs="-l$name -L$dir $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22041 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22042 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22043 + elif test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22044 + # Not a shared library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22045 + if test "$deplibs_check_method" != pass_all; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22046 + # We're trying link a shared library against a static one
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22047 + # but the system doesn't support it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22048 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22049 + # Just print a warning and add the library to dependency_libs so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22050 + # that the program can be linked against the static library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22051 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22052 + $ECHO "*** Warning: This system can not link to static lib archive $lib."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22053 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22054 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22055 + echo "*** shared version of the library, which you do not appear to have."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22056 + if test "$module" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22057 + echo "*** But as you try to build a module library, libtool will still create "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22058 + echo "*** a static module, that should work as long as the dlopening application"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22059 + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22060 + if test -z "$global_symbol_pipe"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22061 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22062 + echo "*** However, this would only work if libtool was able to extract symbol"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22063 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22064 + echo "*** not find such a program. So, this module is probably useless."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22065 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22066 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22067 + if test "$build_old_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22068 + build_libtool_libs=module
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22069 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22070 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22071 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22072 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22073 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22074 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22075 + deplibs="$dir/$old_library $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22076 + link_static=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22077 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22078 + fi # link shared/static library?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22079 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22080 + if test "$linkmode" = lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22081 + if test -n "$dependency_libs" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22082 + { test "$hardcode_into_libs" != yes ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22083 + test "$build_old_libs" = yes ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22084 + test "$link_static" = yes; }; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22085 + # Extract -R from dependency_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22086 + temp_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22087 + for libdir in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22088 + case $libdir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22089 + -R*) func_stripname '-R' '' "$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22090 + temp_xrpath=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22091 + case " $xrpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22092 + *" $temp_xrpath "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22093 + *) func_append xrpath " $temp_xrpath";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22094 + esac;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22095 + *) func_append temp_deplibs " $libdir";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22096 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22097 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22098 + dependency_libs="$temp_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22099 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22100 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22101 + func_append newlib_search_path " $absdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22102 + # Link against this library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22103 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22104 + # ... and its dependency_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22105 + tmp_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22106 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22107 + newdependency_libs="$deplib $newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22108 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22109 + -L*) func_stripname '-L' '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22110 + func_resolve_sysroot "$func_stripname_result";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22111 + *) func_resolve_sysroot "$deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22112 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22113 + if $opt_preserve_dup_deps ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22114 + case "$tmp_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22115 + *" $func_resolve_sysroot_result "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22116 + func_append specialdeplibs " $func_resolve_sysroot_result" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22117 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22118 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22119 + func_append tmp_libs " $func_resolve_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22120 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22121 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22122 + if test "$link_all_deplibs" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22123 + # Add the search paths of all dependency libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22124 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22125 + path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22126 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22127 + -L*) path="$deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22128 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22129 + func_resolve_sysroot "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22130 + deplib=$func_resolve_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22131 + func_dirname "$deplib" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22132 + dir=$func_dirname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22133 + # We need an absolute path.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22134 + case $dir in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22135 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22136 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22137 + absdir=`cd "$dir" && pwd`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22138 + if test -z "$absdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22139 + func_warning "cannot determine absolute directory name of \`$dir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22140 + absdir="$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22141 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22142 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22143 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22144 + if $GREP "^installed=no" $deplib > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22145 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22146 + *-*-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22147 + depdepl=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22148 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22149 + if test -n "$deplibrary_names" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22150 + for tmp in $deplibrary_names ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22151 + depdepl=$tmp
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22152 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22153 + if test -f "$absdir/$objdir/$depdepl" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22154 + depdepl="$absdir/$objdir/$depdepl"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22155 + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22156 + if test -z "$darwin_install_name"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22157 + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22158 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22159 + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22160 + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22161 + path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22162 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22163 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22164 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22165 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22166 + path="-L$absdir/$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22167 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22168 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22169 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22170 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22171 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22172 + func_fatal_error "\`$deplib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22173 + test "$absdir" != "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22174 + func_warning "\`$deplib' seems to be moved"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22175 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22176 + path="-L$absdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22177 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22178 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22179 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22180 + case " $deplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22181 + *" $path "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22182 + *) deplibs="$path $deplibs" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22183 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22184 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22185 + fi # link_all_deplibs != no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22186 + fi # linkmode = lib
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22187 + done # for deplib in $libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22188 + if test "$pass" = link; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22189 + if test "$linkmode" = "prog"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22190 + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22191 + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22192 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22193 + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22194 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22195 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22196 + dependency_libs="$newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22197 + if test "$pass" = dlpreopen; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22198 + # Link the dlpreopened libraries before other libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22199 + for deplib in $save_deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22200 + deplibs="$deplib $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22201 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22202 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22203 + if test "$pass" != dlopen; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22204 + if test "$pass" != conv; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22205 + # Make sure lib_search_path contains only unique directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22206 + lib_search_path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22207 + for dir in $newlib_search_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22208 + case "$lib_search_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22209 + *" $dir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22210 + *) func_append lib_search_path " $dir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22211 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22212 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22213 + newlib_search_path=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22214 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22215 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22216 + if test "$linkmode,$pass" != "prog,link"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22217 + vars="deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22218 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22219 + vars="compile_deplibs finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22220 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22221 + for var in $vars dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22222 + # Add libraries to $var in reverse order
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22223 + eval tmp_libs=\"\$$var\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22224 + new_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22225 + for deplib in $tmp_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22226 + # FIXME: Pedantically, this is the right thing to do, so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22227 + # that some nasty dependency loop isn't accidentally
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22228 + # broken:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22229 + #new_libs="$deplib $new_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22230 + # Pragmatically, this seems to cause very few problems in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22231 + # practice:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22232 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22233 + -L*) new_libs="$deplib $new_libs" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22234 + -R*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22235 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22236 + # And here is the reason: when a library appears more
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22237 + # than once as an explicit dependence of a library, or
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22238 + # is implicitly linked in more than once by the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22239 + # compiler, it is considered special, and multiple
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22240 + # occurrences thereof are not removed. Compare this
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22241 + # with having the same library being listed as a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22242 + # dependency of multiple other libraries: in this case,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22243 + # we know (pedantically, we assume) the library does not
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22244 + # need to be listed more than once, so we keep only the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22245 + # last copy. This is not always right, but it is rare
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22246 + # enough that we require users that really mean to play
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22247 + # such unportable linking tricks to link the library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22248 + # using -Wl,-lname, so that libtool does not consider it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22249 + # for duplicate removal.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22250 + case " $specialdeplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22251 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22252 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22253 + case " $new_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22254 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22255 + *) new_libs="$deplib $new_libs" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22256 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22257 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22258 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22259 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22260 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22261 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22262 + tmp_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22263 + for deplib in $new_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22264 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22265 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22266 + case " $tmp_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22267 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22268 + *) func_append tmp_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22269 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22270 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22271 + *) func_append tmp_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22272 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22273 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22274 + eval $var=\"$tmp_libs\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22275 + done # for var
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22276 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22277 + # Last step: remove runtime libs from dependency_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22278 + # (they stay in deplibs)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22279 + tmp_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22280 + for i in $dependency_libs ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22281 + case " $predeps $postdeps $compiler_lib_search_path " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22282 + *" $i "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22283 + i=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22284 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22285 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22286 + if test -n "$i" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22287 + func_append tmp_libs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22288 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22289 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22290 + dependency_libs=$tmp_libs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22291 + done # for pass
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22292 + if test "$linkmode" = prog; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22293 + dlfiles="$newdlfiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22294 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22295 + if test "$linkmode" = prog || test "$linkmode" = lib; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22296 + dlprefiles="$newdlprefiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22297 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22298 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22299 + case $linkmode in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22300 + oldlib)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22301 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22302 + func_warning "\`-dlopen' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22303 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22304 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22305 + case " $deplibs" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22306 + *\ -l* | *\ -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22307 + func_warning "\`-l' and \`-L' are ignored for archives" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22308 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22309 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22310 + test -n "$rpath" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22311 + func_warning "\`-rpath' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22312 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22313 + test -n "$xrpath" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22314 + func_warning "\`-R' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22315 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22316 + test -n "$vinfo" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22317 + func_warning "\`-version-info/-version-number' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22318 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22319 + test -n "$release" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22320 + func_warning "\`-release' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22321 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22322 + test -n "$export_symbols$export_symbols_regex" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22323 + func_warning "\`-export-symbols' is ignored for archives"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22324 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22325 + # Now set the variables for building old libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22326 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22327 + oldlibs="$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22328 + func_append objs "$old_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22329 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22330 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22331 + lib)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22332 + # Make sure we only generate libraries of the form `libNAME.la'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22333 + case $outputname in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22334 + lib*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22335 + func_stripname 'lib' '.la' "$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22336 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22337 + eval shared_ext=\"$shrext_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22338 + eval libname=\"$libname_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22339 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22340 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22341 + test "$module" = no && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22342 + func_fatal_help "libtool library \`$output' must begin with \`lib'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22343 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22344 + if test "$need_lib_prefix" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22345 + # Add the "lib" prefix for modules if required
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22346 + func_stripname '' '.la' "$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22347 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22348 + eval shared_ext=\"$shrext_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22349 + eval libname=\"$libname_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22350 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22351 + func_stripname '' '.la' "$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22352 + libname=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22353 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22354 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22355 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22356 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22357 + if test -n "$objs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22358 + if test "$deplibs_check_method" != pass_all; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22359 + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22360 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22361 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22362 + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22363 + $ECHO "*** objects $objs is not portable!"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22364 + func_append libobjs " $objs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22365 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22366 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22367 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22368 + test "$dlself" != no && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22369 + func_warning "\`-dlopen self' is ignored for libtool libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22370 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22371 + set dummy $rpath
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22372 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22373 + test "$#" -gt 1 && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22374 + func_warning "ignoring multiple \`-rpath's for a libtool library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22376 + install_libdir="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22377 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22378 + oldlibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22379 + if test -z "$rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22380 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22381 + # Building a libtool convenience library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22382 + # Some compilers have problems with a `.al' extension so
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22383 + # convenience libraries should have the same extension an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22384 + # archive normally would.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22385 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22386 + build_libtool_libs=convenience
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22387 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22388 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22389 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22390 + test -n "$vinfo" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22391 + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22392 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22393 + test -n "$release" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22394 + func_warning "\`-release' is ignored for convenience libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22395 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22396 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22397 + # Parse the version information argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22398 + save_ifs="$IFS"; IFS=':'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22399 + set dummy $vinfo 0 0 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22400 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22401 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22402 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22403 + test -n "$7" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22404 + func_fatal_help "too many parameters to \`-version-info'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22405 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22406 + # convert absolute version numbers to libtool ages
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22407 + # this retains compatibility with .la files and attempts
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22408 + # to make the code below a bit more comprehensible
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22409 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22410 + case $vinfo_number in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22411 + yes)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22412 + number_major="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22413 + number_minor="$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22414 + number_revision="$3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22415 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22416 + # There are really only two kinds -- those that
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22417 + # use the current revision as the major version
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22418 + # and those that subtract age and use age as
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22419 + # a minor version. But, then there is irix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22420 + # which has an extra 1 added just for fun
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22421 + #
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22422 + case $version_type in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22423 + # correct linux to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22424 + darwin|linux|osf|windows|none)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22425 + func_arith $number_major + $number_minor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22426 + current=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22427 + age="$number_minor"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22428 + revision="$number_revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22429 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22430 + freebsd-aout|freebsd-elf|qnx|sunos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22431 + current="$number_major"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22432 + revision="$number_minor"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22433 + age="0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22434 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22435 + irix|nonstopux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22436 + func_arith $number_major + $number_minor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22437 + current=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22438 + age="$number_minor"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22439 + revision="$number_minor"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22440 + lt_irix_increment=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22441 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22442 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22443 + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22444 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22445 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22446 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22447 + no)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22448 + current="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22449 + revision="$2"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22450 + age="$3"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22451 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22452 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22453 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22454 + # Check that each of the things are valid numbers.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22455 + case $current in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22456 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22457 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22458 + func_error "CURRENT \`$current' must be a nonnegative integer"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22459 + func_fatal_error "\`$vinfo' is not valid version information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22460 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22461 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22462 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22463 + case $revision in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22464 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22465 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22466 + func_error "REVISION \`$revision' must be a nonnegative integer"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22467 + func_fatal_error "\`$vinfo' is not valid version information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22468 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22469 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22470 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22471 + case $age in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22472 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22473 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22474 + func_error "AGE \`$age' must be a nonnegative integer"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22475 + func_fatal_error "\`$vinfo' is not valid version information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22476 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22477 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22478 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22479 + if test "$age" -gt "$current"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22480 + func_error "AGE \`$age' is greater than the current interface number \`$current'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22481 + func_fatal_error "\`$vinfo' is not valid version information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22482 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22483 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22484 + # Calculate the version variables.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22485 + major=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22486 + versuffix=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22487 + verstring=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22488 + case $version_type in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22489 + none) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22490 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22491 + darwin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22492 + # Like Linux, but with the current version available in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22493 + # verstring for coding it into the library header
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22494 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22495 + major=.$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22496 + versuffix="$major.$age.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22497 + # Darwin ld doesn't like 0 for these options...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22498 + func_arith $current + 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22499 + minor_current=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22500 + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22501 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22502 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22503 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22504 + freebsd-aout)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22505 + major=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22506 + versuffix=".$current.$revision";
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22507 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22509 + freebsd-elf)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22510 + major=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22511 + versuffix=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22512 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22513 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22514 + irix | nonstopux)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22515 + if test "X$lt_irix_increment" = "Xno"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22516 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22517 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22518 + func_arith $current - $age + 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22519 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22520 + major=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22521 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22522 + case $version_type in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22523 + nonstopux) verstring_prefix=nonstopux ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22524 + *) verstring_prefix=sgi ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22525 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22526 + verstring="$verstring_prefix$major.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22527 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22528 + # Add in all the interfaces that we are compatible with.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22529 + loop=$revision
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22530 + while test "$loop" -ne 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22531 + func_arith $revision - $loop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22532 + iface=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22533 + func_arith $loop - 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22534 + loop=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22535 + verstring="$verstring_prefix$major.$iface:$verstring"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22536 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22537 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22538 + # Before this point, $major must not contain `.'.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22539 + major=.$major
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22540 + versuffix="$major.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22541 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22542 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22543 + linux) # correct to gnu/linux during the next big refactor
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22544 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22545 + major=.$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22546 + versuffix="$major.$age.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22547 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22548 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22549 + osf)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22550 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22551 + major=.$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22552 + versuffix=".$current.$age.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22553 + verstring="$current.$age.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22554 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22555 + # Add in all the interfaces that we are compatible with.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22556 + loop=$age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22557 + while test "$loop" -ne 0; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22558 + func_arith $current - $loop
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22559 + iface=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22560 + func_arith $loop - 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22561 + loop=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22562 + verstring="$verstring:${iface}.0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22563 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22564 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22565 + # Make executables depend on our current version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22566 + func_append verstring ":${current}.0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22567 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22568 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22569 + qnx)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22570 + major=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22571 + versuffix=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22572 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22573 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22574 + sunos)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22575 + major=".$current"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22576 + versuffix=".$current.$revision"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22577 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22578 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22579 + windows)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22580 + # Use '-' rather than '.', since we only want one
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22581 + # extension on DOS 8.3 filesystems.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22582 + func_arith $current - $age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22583 + major=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22584 + versuffix="-$major"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22585 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22587 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22588 + func_fatal_configuration "unknown library version type \`$version_type'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22589 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22590 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22591 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22592 + # Clear the version info if we defaulted, and they specified a release.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22593 + if test -z "$vinfo" && test -n "$release"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22594 + major=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22595 + case $version_type in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22596 + darwin)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22597 + # we can't check for "0.0" in archive_cmds due to quoting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22598 + # problems, so we reset it completely
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22599 + verstring=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22600 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22601 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22602 + verstring="0.0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22603 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22604 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22605 + if test "$need_version" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22606 + versuffix=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22607 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22608 + versuffix=".0.0"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22609 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22610 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22611 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22612 + # Remove version info from name if versioning should be avoided
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22613 + if test "$avoid_version" = yes && test "$need_version" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22614 + major=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22615 + versuffix=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22616 + verstring=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22617 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22618 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22619 + # Check to see if the archive will have undefined symbols.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22620 + if test "$allow_undefined" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22621 + if test "$allow_undefined_flag" = unsupported; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22622 + func_warning "undefined symbols not allowed in $host shared libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22623 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22624 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22625 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22626 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22627 + # Don't allow undefined symbols.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22628 + allow_undefined_flag="$no_undefined_flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22629 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22630 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22631 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22632 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22633 + func_generate_dlsyms "$libname" "$libname" "yes"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22634 + func_append libobjs " $symfileobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22635 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22636 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22637 + if test "$opt_mode" != relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22638 + # Remove our outputs, but don't remove object files since they
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22639 + # may have been created when compiling PIC objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22640 + removelist=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22641 + tempremovelist=`$ECHO "$output_objdir/*"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22642 + for p in $tempremovelist; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22643 + case $p in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22644 + *.$objext | *.gcno)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22645 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22646 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22647 + if test "X$precious_files_regex" != "X"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22648 + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22649 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22650 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22651 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22652 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22653 + func_append removelist " $p"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22654 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22655 + *) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22656 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22657 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22658 + test -n "$removelist" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22659 + func_show_eval "${RM}r \$removelist"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22660 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22661 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22662 + # Now set the variables for building old libraries.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22663 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22664 + func_append oldlibs " $output_objdir/$libname.$libext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22665 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22666 + # Transform .lo files to .o files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22667 + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22668 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22669 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22670 + # Eliminate all temporary directories.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22671 + #for path in $notinst_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22672 + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22673 + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22674 + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22675 + #done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22676 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22677 + if test -n "$xrpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22678 + # If the user specified any rpath flags, then add them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22679 + temp_xrpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22680 + for libdir in $xrpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22681 + func_replace_sysroot "$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22682 + func_append temp_xrpath " -R$func_replace_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22683 + case "$finalize_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22684 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22685 + *) func_append finalize_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22686 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22687 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22688 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22689 + dependency_libs="$temp_xrpath $dependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22690 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22691 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22692 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22693 + # Make sure dlfiles contains only unique files that won't be dlpreopened
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22694 + old_dlfiles="$dlfiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22695 + dlfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22696 + for lib in $old_dlfiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22697 + case " $dlprefiles $dlfiles " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22698 + *" $lib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22699 + *) func_append dlfiles " $lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22700 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22701 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22702 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22703 + # Make sure dlprefiles contains only unique files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22704 + old_dlprefiles="$dlprefiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22705 + dlprefiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22706 + for lib in $old_dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22707 + case "$dlprefiles " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22708 + *" $lib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22709 + *) func_append dlprefiles " $lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22710 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22711 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22712 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22713 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22714 + if test -n "$rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22715 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22716 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22717 + # these systems don't actually have a c library (as such)!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22718 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22719 + *-*-rhapsody* | *-*-darwin1.[012])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22720 + # Rhapsody C library is in the System framework
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22721 + func_append deplibs " System.ltframework"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22722 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22723 + *-*-netbsd*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22724 + # Don't link with libc until the a.out ld.so is fixed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22725 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22726 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22727 + # Do not include libc due to us having libc/libc_r.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22728 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22729 + *-*-sco3.2v5* | *-*-sco5v6*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22730 + # Causes problems with __ctype
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22731 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22732 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22733 + # Compiler inserts libc in the correct place for threads to work
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22734 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22735 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22736 + # Add libc to deplibs on all other systems if necessary.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22737 + if test "$build_libtool_need_lc" = "yes"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22738 + func_append deplibs " -lc"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22739 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22740 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22741 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22742 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22743 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22744 + # Transform deplibs into only deplibs that can be linked in shared.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22745 + name_save=$name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22746 + libname_save=$libname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22747 + release_save=$release
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22748 + versuffix_save=$versuffix
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22749 + major_save=$major
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22750 + # I'm not sure if I'm treating the release correctly. I think
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22751 + # release should show up in the -l (ie -lgmp5) so we don't want to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22752 + # add it in twice. Is that correct?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22753 + release=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22754 + versuffix=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22755 + major=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22756 + newdeplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22757 + droppeddeps=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22758 + case $deplibs_check_method in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22759 + pass_all)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22760 + # Don't check for shared/static. Everything works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22761 + # This might be a little naive. We might want to check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22762 + # whether the library exists or not. But this is on
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22763 + # osf3 & osf4 and I'm not really sure... Just
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22764 + # implementing what was already the behavior.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22765 + newdeplibs=$deplibs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22766 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22767 + test_compile)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22768 + # This code stresses the "libraries are programs" paradigm to its
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22769 + # limits. Maybe even breaks it. We compile a program, linking it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22770 + # against the deplibs as a proxy for the library. Then we can check
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22771 + # whether they linked in statically or dynamically with ldd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22772 + $opt_dry_run || $RM conftest.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22773 + cat > conftest.c <<EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22774 + int main() { return 0; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22775 +EOF
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22776 + $opt_dry_run || $RM conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22777 + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22778 + ldd_output=`ldd conftest`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22779 + for i in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22780 + case $i in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22781 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22782 + func_stripname -l '' "$i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22783 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22784 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22785 + case " $predeps $postdeps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22786 + *" $i "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22787 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22788 + i=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22789 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22790 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22791 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22792 + if test -n "$i" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22793 + libname=`eval "\\$ECHO \"$libname_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22794 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22795 + set dummy $deplib_matches; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22796 + deplib_match=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22797 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22798 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22799 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22800 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22801 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22802 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22803 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22804 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22805 + echo "*** shared version of the library, which I believe you do not have"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22806 + echo "*** because a test_compile did reveal that the linker did not use it for"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22807 + echo "*** its dynamic dependency list that programs get resolved with at runtime."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22808 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22809 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22810 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22811 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22812 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22813 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22814 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22815 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22816 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22817 + # Error occurred in the first compile. Let's try to salvage
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22818 + # the situation: Compile a separate program for each library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22819 + for i in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22820 + case $i in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22821 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22822 + func_stripname -l '' "$i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22823 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22824 + $opt_dry_run || $RM conftest
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22825 + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22826 + ldd_output=`ldd conftest`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22827 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22828 + case " $predeps $postdeps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22829 + *" $i "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22830 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22831 + i=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22832 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22833 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22834 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22835 + if test -n "$i" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22836 + libname=`eval "\\$ECHO \"$libname_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22837 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22838 + set dummy $deplib_matches; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22839 + deplib_match=$1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22840 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22841 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22842 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22843 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22844 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22845 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22846 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22847 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22848 + echo "*** shared version of the library, which you do not appear to have"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22849 + echo "*** because a test_compile did reveal that the linker did not use this one"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22850 + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22851 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22852 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22853 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22854 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22855 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22856 + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22857 + echo "*** make it link in! You will probably need to install it or some"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22858 + echo "*** library that it depends on before this library will be fully"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22859 + echo "*** functional. Installing it before continuing would be even better."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22860 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22861 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22862 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22863 + func_append newdeplibs " $i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22864 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22865 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22866 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22867 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22868 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22869 + file_magic*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22870 + set dummy $deplibs_check_method; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22871 + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22872 + for a_deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22873 + case $a_deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22874 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22875 + func_stripname -l '' "$a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22876 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22877 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22878 + case " $predeps $postdeps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22879 + *" $a_deplib "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22880 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22881 + a_deplib=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22882 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22883 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22884 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22885 + if test -n "$a_deplib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22886 + libname=`eval "\\$ECHO \"$libname_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22887 + if test -n "$file_magic_glob"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22888 + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22889 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22890 + libnameglob=$libname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22891 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22892 + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22893 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22894 + if test "$want_nocaseglob" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22895 + shopt -s nocaseglob
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22896 + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22897 + $nocaseglob
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22898 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22899 + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22900 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22901 + for potent_lib in $potential_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22902 + # Follow soft links.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22903 + if ls -lLd "$potent_lib" 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22904 + $GREP " -> " >/dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22905 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22906 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22907 + # The statement above tries to avoid entering an
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22908 + # endless loop below, in case of cyclic links.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22909 + # We might still enter an endless loop, since a link
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22910 + # loop can be closed while we follow links,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22911 + # but so what?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22912 + potlib="$potent_lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22913 + while test -h "$potlib" 2>/dev/null; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22914 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22915 + case $potliblink in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22916 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22917 + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22918 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22919 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22920 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22921 + $SED -e 10q |
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22922 + $EGREP "$file_magic_regex" > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22923 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22924 + a_deplib=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22925 + break 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22926 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22927 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22928 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22929 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22930 + if test -n "$a_deplib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22931 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22932 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22933 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22934 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22935 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22936 + echo "*** shared version of the library, which you do not appear to have"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22937 + echo "*** because I did check the linker path looking for a file starting"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22938 + if test -z "$potlib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22939 + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22940 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22941 + $ECHO "*** with $libname and none of the candidates passed a file format test"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22942 + $ECHO "*** using a file magic. Last file checked: $potlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22943 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22944 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22945 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22946 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22947 + # Add a -L argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22948 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22949 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22950 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22951 + done # Gone through all deplibs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22952 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22953 + match_pattern*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22954 + set dummy $deplibs_check_method; shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22955 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22956 + for a_deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22957 + case $a_deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22958 + -l*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22959 + func_stripname -l '' "$a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22960 + name=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22961 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22962 + case " $predeps $postdeps " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22963 + *" $a_deplib "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22964 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22965 + a_deplib=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22966 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22967 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22968 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22969 + if test -n "$a_deplib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22970 + libname=`eval "\\$ECHO \"$libname_spec\""`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22971 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22972 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22973 + for potent_lib in $potential_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22974 + potlib="$potent_lib" # see symlink-check above in file_magic test
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22975 + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22976 + $EGREP "$match_pattern_regex" > /dev/null; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22977 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22978 + a_deplib=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22979 + break 2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22980 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22981 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22982 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22983 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22984 + if test -n "$a_deplib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22985 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22986 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22987 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22988 + echo "*** I have the capability to make that library automatically link in when"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22989 + echo "*** you link to this library. But I can only do this if you have a"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22990 + echo "*** shared version of the library, which you do not appear to have"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22991 + echo "*** because I did check the linker path looking for a file starting"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22992 + if test -z "$potlib" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22993 + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22994 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22995 + $ECHO "*** with $libname and none of the candidates passed a file format test"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22996 + $ECHO "*** using a regex pattern. Last file checked: $potlib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22997 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22998 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22999 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23000 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23001 + # Add a -L argument.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23002 + func_append newdeplibs " $a_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23003 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23004 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23005 + done # Gone through all deplibs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23006 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23007 + none | unknown | *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23008 + newdeplibs=""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23009 + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23010 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23011 + for i in $predeps $postdeps ; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23012 + # can't use Xsed below, because $i might contain '/'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23013 + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23014 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23015 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23016 + case $tmp_deplibs in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23017 + *[!\ \ ]*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23018 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23019 + if test "X$deplibs_check_method" = "Xnone"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23020 + echo "*** Warning: inter-library dependencies are not supported in this platform."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23021 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23022 + echo "*** Warning: inter-library dependencies are not known to be supported."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23023 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23024 + echo "*** All declared inter-library dependencies are being dropped."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23025 + droppeddeps=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23026 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23027 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23028 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23029 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23030 + versuffix=$versuffix_save
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23031 + major=$major_save
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23032 + release=$release_save
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23033 + libname=$libname_save
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23034 + name=$name_save
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23035 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23036 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23037 + *-*-rhapsody* | *-*-darwin1.[012])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23038 + # On Rhapsody replace the C library with the System framework
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23039 + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23040 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23041 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23042 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23043 + if test "$droppeddeps" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23044 + if test "$module" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23045 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23046 + echo "*** Warning: libtool could not satisfy all declared inter-library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23047 + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23048 + echo "*** a static module, that should work as long as the dlopening"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23049 + echo "*** application is linked with the -dlopen flag."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23050 + if test -z "$global_symbol_pipe"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23051 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23052 + echo "*** However, this would only work if libtool was able to extract symbol"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23053 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23054 + echo "*** not find such a program. So, this module is probably useless."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23055 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23056 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23057 + if test "$build_old_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23058 + oldlibs="$output_objdir/$libname.$libext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23059 + build_libtool_libs=module
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23060 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23061 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23062 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23063 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23064 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23065 + echo "*** The inter-library dependencies that have been dropped here will be"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23066 + echo "*** automatically added whenever a program is linked with this library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23067 + echo "*** or is declared to -dlopen it."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23068 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23069 + if test "$allow_undefined" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23070 + echo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23071 + echo "*** Since this library must not contain undefined symbols,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23072 + echo "*** because either the platform does not support them or"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23073 + echo "*** it was explicitly requested with -no-undefined,"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23074 + echo "*** libtool will only create a static version of it."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23075 + if test "$build_old_libs" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23076 + oldlibs="$output_objdir/$libname.$libext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23077 + build_libtool_libs=module
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23078 + build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23079 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23080 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23081 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23082 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23083 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23084 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23085 + # Done checking deplibs!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23086 + deplibs=$newdeplibs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23087 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23088 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23089 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23090 + *-*-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23091 + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23092 + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23093 + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23094 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23095 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23097 + # move library search paths that coincide with paths to not yet
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23098 + # installed libraries to the beginning of the library search list
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23099 + new_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23100 + for path in $notinst_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23101 + case " $new_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23102 + *" -L$path/$objdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23103 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23104 + case " $deplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23105 + *" -L$path/$objdir "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23106 + func_append new_libs " -L$path/$objdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23107 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23108 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23109 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23110 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23111 + for deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23112 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23113 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23114 + case " $new_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23115 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23116 + *) func_append new_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23117 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23118 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23119 + *) func_append new_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23120 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23121 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23122 + deplibs="$new_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23123 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23124 + # All the library-specific variables (install_libdir is set above).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23125 + library_names=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23126 + old_library=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23127 + dlname=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23128 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23129 + # Test again, we may have decided not to build it any more
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23130 + if test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23131 + # Remove ${wl} instances when linking with ld.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23132 + # FIXME: should test the right _cmds variable.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23133 + case $archive_cmds in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23134 + *\$LD\ *) wl= ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23135 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23136 + if test "$hardcode_into_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23137 + # Hardcode the library paths
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23138 + hardcode_libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23139 + dep_rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23140 + rpath="$finalize_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23141 + test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23142 + for libdir in $rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23143 + if test -n "$hardcode_libdir_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23144 + if test -n "$hardcode_libdir_separator"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23145 + func_replace_sysroot "$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23146 + libdir=$func_replace_sysroot_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23147 + if test -z "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23148 + hardcode_libdirs="$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23149 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23150 + # Just accumulate the unique libdirs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23151 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23152 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23153 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23154 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23155 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23156 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23157 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23158 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23159 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23160 + eval flag=\"$hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23161 + func_append dep_rpath " $flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23162 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23163 + elif test -n "$runpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23164 + case "$perm_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23165 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23166 + *) func_append perm_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23167 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23168 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23169 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23170 + # Substitute the hardcoded libdirs into the rpath.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23171 + if test -n "$hardcode_libdir_separator" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23172 + test -n "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23173 + libdir="$hardcode_libdirs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23174 + eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23175 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23176 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23177 + # We should set the runpath_var.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23178 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23179 + for dir in $perm_rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23180 + func_append rpath "$dir:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23181 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23182 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23183 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23184 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23185 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23186 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23187 + shlibpath="$finalize_shlibpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23188 + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23189 + if test -n "$shlibpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23190 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23191 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23192 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23193 + # Get the real and link names of the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23194 + eval shared_ext=\"$shrext_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23195 + eval library_names=\"$library_names_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23196 + set dummy $library_names
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23197 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23198 + realname="$1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23199 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23200 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23201 + if test -n "$soname_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23202 + eval soname=\"$soname_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23203 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23204 + soname="$realname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23205 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23206 + if test -z "$dlname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23207 + dlname=$soname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23208 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23209 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23210 + lib="$output_objdir/$realname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23211 + linknames=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23212 + for link
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23213 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23214 + func_append linknames " $link"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23215 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23216 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23217 + # Use standard objects if they are pic
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23218 + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23219 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23220 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23221 + delfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23222 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23223 + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23224 + export_symbols="$output_objdir/$libname.uexp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23225 + func_append delfiles " $export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23226 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23227 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23228 + orig_export_symbols=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23229 + case $host_os in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23230 + cygwin* | mingw* | cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23231 + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23232 + # exporting using user supplied symfile
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23233 + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23234 + # and it's NOT already a .def file. Must figure out
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23235 + # which of the given symbols are data symbols and tag
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23236 + # them as such. So, trigger use of export_symbols_cmds.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23237 + # export_symbols gets reassigned inside the "prepare
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23238 + # the list of exported symbols" if statement, so the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23239 + # include_expsyms logic still works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23240 + orig_export_symbols="$export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23241 + export_symbols=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23242 + always_export_symbols=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23243 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23244 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23245 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23246 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23247 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23248 + # Prepare the list of exported symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23249 + if test -z "$export_symbols"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23250 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23251 + func_verbose "generating symbol list for \`$libname.la'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23252 + export_symbols="$output_objdir/$libname.exp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23253 + $opt_dry_run || $RM $export_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23254 + cmds=$export_symbols_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23255 + save_ifs="$IFS"; IFS='~'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23256 + for cmd1 in $cmds; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23257 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23258 + # Take the normal branch if the nm_file_list_spec branch
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23259 + # doesn't work or if tool conversion is not needed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23260 + case $nm_file_list_spec~$to_tool_file_cmd in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23261 + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23262 + try_normal_branch=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23263 + eval cmd=\"$cmd1\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23264 + func_len " $cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23265 + len=$func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23266 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23267 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23268 + try_normal_branch=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23269 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23270 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23271 + if test "$try_normal_branch" = yes \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23272 + && { test "$len" -lt "$max_cmd_len" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23273 + || test "$max_cmd_len" -le -1; }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23274 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23275 + func_show_eval "$cmd" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23276 + skipped_export=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23277 + elif test -n "$nm_file_list_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23278 + func_basename "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23279 + output_la=$func_basename_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23280 + save_libobjs=$libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23281 + save_output=$output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23282 + output=${output_objdir}/${output_la}.nm
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23283 + func_to_tool_file "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23284 + libobjs=$nm_file_list_spec$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23285 + func_append delfiles " $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23286 + func_verbose "creating $NM input file list: $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23287 + for obj in $save_libobjs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23288 + func_to_tool_file "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23289 + $ECHO "$func_to_tool_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23290 + done > "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23291 + eval cmd=\"$cmd1\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23292 + func_show_eval "$cmd" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23293 + output=$save_output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23294 + libobjs=$save_libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23295 + skipped_export=false
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23296 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23297 + # The command line is too long to execute in one step.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23298 + func_verbose "using reloadable object file for export list..."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23299 + skipped_export=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23300 + # Break out early, otherwise skipped_export may be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23301 + # set to false by a later but shorter cmd.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23302 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23303 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23304 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23305 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23306 + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23307 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23308 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23309 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23310 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23311 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23312 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23313 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23314 + tmp_export_symbols="$export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23315 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23316 + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23317 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23318 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23319 + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23320 + # The given exports_symbols file has to be filtered, so filter it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23321 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23322 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23323 + # 's' commands which not all seds can handle. GNU sed should be fine
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23324 + # though. Also, the filter scales superlinearly with the number of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23325 + # global variables. join(1) would be nice here, but unfortunately
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23326 + # isn't a blessed tool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23327 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23328 + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23329 + export_symbols=$output_objdir/$libname.def
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23330 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23331 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23332 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23333 + tmp_deplibs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23334 + for test_deplib in $deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23335 + case " $convenience " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23336 + *" $test_deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23337 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23338 + func_append tmp_deplibs " $test_deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23339 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23340 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23341 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23342 + deplibs="$tmp_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23343 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23344 + if test -n "$convenience"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23345 + if test -n "$whole_archive_flag_spec" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23346 + test "$compiler_needs_object" = yes &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23347 + test -z "$libobjs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23348 + # extract the archives, so we have objects to list.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23349 + # TODO: could optimize this to just extract one archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23350 + whole_archive_flag_spec=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23351 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23352 + if test -n "$whole_archive_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23353 + save_libobjs=$libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23354 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23355 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23356 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23357 + gentop="$output_objdir/${outputname}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23358 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23360 + func_extract_archives $gentop $convenience
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23361 + func_append libobjs " $func_extract_archives_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23362 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23363 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23364 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23365 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23366 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23367 + eval flag=\"$thread_safe_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23368 + func_append linker_flags " $flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23369 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23370 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23371 + # Make a backup of the uninstalled library when relinking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23372 + if test "$opt_mode" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23373 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23374 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23375 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23376 + # Do each of the archive commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23377 + if test "$module" = yes && test -n "$module_cmds" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23378 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23379 + eval test_cmds=\"$module_expsym_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23380 + cmds=$module_expsym_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23381 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23382 + eval test_cmds=\"$module_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23383 + cmds=$module_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23384 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23385 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23386 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23387 + eval test_cmds=\"$archive_expsym_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23388 + cmds=$archive_expsym_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23389 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23390 + eval test_cmds=\"$archive_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23391 + cmds=$archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23392 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23393 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23394 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23395 + if test "X$skipped_export" != "X:" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23396 + func_len " $test_cmds" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23397 + len=$func_len_result &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23398 + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23399 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23400 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23401 + # The command line is too long to link in one step, link piecewise
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23402 + # or, if using GNU ld and skipped_export is not :, use a linker
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23403 + # script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23404 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23405 + # Save the value of $output and $libobjs because we want to
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23406 + # use them later. If we have whole_archive_flag_spec, we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23407 + # want to use save_libobjs as it was before
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23408 + # whole_archive_flag_spec was expanded, because we can't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23409 + # assume the linker understands whole_archive_flag_spec.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23410 + # This may have to be revisited, in case too many
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23411 + # convenience libraries get linked in and end up exceeding
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23412 + # the spec.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23413 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23414 + save_libobjs=$libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23415 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23416 + save_output=$output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23417 + func_basename "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23418 + output_la=$func_basename_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23419 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23420 + # Clear the reloadable object creation command queue and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23421 + # initialize k to one.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23422 + test_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23423 + concat_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23424 + objlist=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23425 + last_robj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23426 + k=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23427 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23428 + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23429 + output=${output_objdir}/${output_la}.lnkscript
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23430 + func_verbose "creating GNU ld script: $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23431 + echo 'INPUT (' > $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23432 + for obj in $save_libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23433 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23434 + func_to_tool_file "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23435 + $ECHO "$func_to_tool_file_result" >> $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23436 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23437 + echo ')' >> $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23438 + func_append delfiles " $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23439 + func_to_tool_file "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23440 + output=$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23441 + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23442 + output=${output_objdir}/${output_la}.lnk
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23443 + func_verbose "creating linker input file list: $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23444 + : > $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23445 + set x $save_libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23446 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23447 + firstobj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23448 + if test "$compiler_needs_object" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23449 + firstobj="$1 "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23450 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23451 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23452 + for obj
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23453 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23454 + func_to_tool_file "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23455 + $ECHO "$func_to_tool_file_result" >> $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23456 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23457 + func_append delfiles " $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23458 + func_to_tool_file "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23459 + output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23460 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23461 + if test -n "$save_libobjs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23462 + func_verbose "creating reloadable object files..."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23463 + output=$output_objdir/$output_la-${k}.$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23464 + eval test_cmds=\"$reload_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23465 + func_len " $test_cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23466 + len0=$func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23467 + len=$len0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23468 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23469 + # Loop over the list of objects to be linked.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23470 + for obj in $save_libobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23471 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23472 + func_len " $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23473 + func_arith $len + $func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23474 + len=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23475 + if test "X$objlist" = X ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23476 + test "$len" -lt "$max_cmd_len"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23477 + func_append objlist " $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23478 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23479 + # The command $test_cmds is almost too long, add a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23480 + # command to the queue.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23481 + if test "$k" -eq 1 ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23482 + # The first file doesn't have a previous command to add.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23483 + reload_objs=$objlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23484 + eval concat_cmds=\"$reload_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23485 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23486 + # All subsequent reloadable object files will link in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23487 + # the last one created.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23488 + reload_objs="$objlist $last_robj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23489 + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23490 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23491 + last_robj=$output_objdir/$output_la-${k}.$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23492 + func_arith $k + 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23493 + k=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23494 + output=$output_objdir/$output_la-${k}.$objext
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23495 + objlist=" $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23496 + func_len " $last_robj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23497 + func_arith $len0 + $func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23498 + len=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23499 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23500 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23501 + # Handle the remaining objects by creating one last
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23502 + # reloadable object file. All subsequent reloadable object
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23503 + # files will link in the last one created.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23504 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23505 + reload_objs="$objlist $last_robj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23506 + eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23507 + if test -n "$last_robj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23508 + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23509 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23510 + func_append delfiles " $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23511 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23512 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23513 + output=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23514 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23515 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23516 + if ${skipped_export-false}; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23517 + func_verbose "generating symbol list for \`$libname.la'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23518 + export_symbols="$output_objdir/$libname.exp"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23519 + $opt_dry_run || $RM $export_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23520 + libobjs=$output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23521 + # Append the command to create the export file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23522 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23523 + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23524 + if test -n "$last_robj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23525 + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23526 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23527 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23528 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23529 + test -n "$save_libobjs" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23530 + func_verbose "creating a temporary reloadable object file: $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23531 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23532 + # Loop through the commands generated above and execute them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23533 + save_ifs="$IFS"; IFS='~'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23534 + for cmd in $concat_cmds; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23535 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23536 + $opt_silent || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23537 + func_quote_for_expand "$cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23538 + eval "func_echo $func_quote_for_expand_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23539 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23540 + $opt_dry_run || eval "$cmd" || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23541 + lt_exit=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23542 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23543 + # Restore the uninstalled library and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23544 + if test "$opt_mode" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23545 + ( cd "$output_objdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23546 + $RM "${realname}T" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23547 + $MV "${realname}U" "$realname" )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23548 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23549 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23550 + exit $lt_exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23551 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23552 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23553 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23554 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23555 + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23556 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23557 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23558 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23559 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23560 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23561 + if ${skipped_export-false}; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23562 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23563 + tmp_export_symbols="$export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23564 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23565 + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23566 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23567 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23568 + if test -n "$orig_export_symbols"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23569 + # The given exports_symbols file has to be filtered, so filter it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23570 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23571 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23572 + # 's' commands which not all seds can handle. GNU sed should be fine
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23573 + # though. Also, the filter scales superlinearly with the number of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23574 + # global variables. join(1) would be nice here, but unfortunately
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23575 + # isn't a blessed tool.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23576 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23577 + func_append delfiles " $export_symbols $output_objdir/$libname.filter"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23578 + export_symbols=$output_objdir/$libname.def
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23579 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23580 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23581 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23582 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23583 + libobjs=$output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23584 + # Restore the value of output.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23585 + output=$save_output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23586 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23587 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23588 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23589 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23590 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23591 + # Expand the library linking commands again to reset the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23592 + # value of $libobjs for piecewise linking.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23593 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23594 + # Do each of the archive commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23595 + if test "$module" = yes && test -n "$module_cmds" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23596 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23597 + cmds=$module_expsym_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23598 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23599 + cmds=$module_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23600 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23601 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23602 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23603 + cmds=$archive_expsym_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23604 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23605 + cmds=$archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23606 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23607 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23608 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23609 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23610 + if test -n "$delfiles"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23611 + # Append the command to remove temporary files to $cmds.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23612 + eval cmds=\"\$cmds~\$RM $delfiles\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23613 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23614 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23615 + # Add any objects from preloaded convenience libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23616 + if test -n "$dlprefiles"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23617 + gentop="$output_objdir/${outputname}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23618 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23619 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23620 + func_extract_archives $gentop $dlprefiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23621 + func_append libobjs " $func_extract_archives_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23622 + test "X$libobjs" = "X " && libobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23623 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23624 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23625 + save_ifs="$IFS"; IFS='~'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23626 + for cmd in $cmds; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23627 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23628 + eval cmd=\"$cmd\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23629 + $opt_silent || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23630 + func_quote_for_expand "$cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23631 + eval "func_echo $func_quote_for_expand_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23632 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23633 + $opt_dry_run || eval "$cmd" || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23634 + lt_exit=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23635 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23636 + # Restore the uninstalled library and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23637 + if test "$opt_mode" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23638 + ( cd "$output_objdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23639 + $RM "${realname}T" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23640 + $MV "${realname}U" "$realname" )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23641 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23642 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23643 + exit $lt_exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23644 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23645 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23646 + IFS="$save_ifs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23647 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23648 + # Restore the uninstalled library and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23649 + if test "$opt_mode" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23650 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23651 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23652 + if test -n "$convenience"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23653 + if test -z "$whole_archive_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23654 + func_show_eval '${RM}r "$gentop"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23655 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23656 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23657 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23658 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23659 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23660 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23661 + # Create links to the real library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23662 + for linkname in $linknames; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23663 + if test "$realname" != "$linkname"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23664 + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23665 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23666 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23667 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23668 + # If -module or -export-dynamic was specified, set the dlname.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23669 + if test "$module" = yes || test "$export_dynamic" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23670 + # On all known operating systems, these are identical.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23671 + dlname="$soname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23672 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23673 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23674 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23675 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23676 + obj)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23677 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23678 + func_warning "\`-dlopen' is ignored for objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23679 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23680 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23681 + case " $deplibs" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23682 + *\ -l* | *\ -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23683 + func_warning "\`-l' and \`-L' are ignored for objects" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23684 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23685 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23686 + test -n "$rpath" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23687 + func_warning "\`-rpath' is ignored for objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23688 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23689 + test -n "$xrpath" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23690 + func_warning "\`-R' is ignored for objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23691 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23692 + test -n "$vinfo" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23693 + func_warning "\`-version-info' is ignored for objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23694 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23695 + test -n "$release" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23696 + func_warning "\`-release' is ignored for objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23697 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23698 + case $output in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23699 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23700 + test -n "$objs$old_deplibs" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23701 + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23702 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23703 + libobj=$output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23704 + func_lo2o "$libobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23705 + obj=$func_lo2o_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23706 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23707 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23708 + libobj=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23709 + obj="$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23710 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23711 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23712 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23713 + # Delete the old objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23714 + $opt_dry_run || $RM $obj $libobj
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23715 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23716 + # Objects from convenience libraries. This assumes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23717 + # single-version convenience libraries. Whenever we create
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23718 + # different ones for PIC/non-PIC, this we'll have to duplicate
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23719 + # the extraction.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23720 + reload_conv_objs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23721 + gentop=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23722 + # reload_cmds runs $LD directly, so let us get rid of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23723 + # -Wl from whole_archive_flag_spec and hope we can get by with
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23724 + # turning comma into space..
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23725 + wl=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23726 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23727 + if test -n "$convenience"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23728 + if test -n "$whole_archive_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23729 + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23730 + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23731 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23732 + gentop="$output_objdir/${obj}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23733 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23734 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23735 + func_extract_archives $gentop $convenience
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23736 + reload_conv_objs="$reload_objs $func_extract_archives_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23737 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23738 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23739 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23740 + # If we're not building shared, we need to use non_pic_objs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23741 + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23742 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23743 + # Create the old-style object.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23744 + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23745 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23746 + output="$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23747 + func_execute_cmds "$reload_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23748 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23749 + # Exit if we aren't doing a library object file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23750 + if test -z "$libobj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23751 + if test -n "$gentop"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23752 + func_show_eval '${RM}r "$gentop"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23753 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23754 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23755 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23756 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23757 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23758 + if test "$build_libtool_libs" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23759 + if test -n "$gentop"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23760 + func_show_eval '${RM}r "$gentop"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23761 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23762 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23763 + # Create an invalid libtool object if no PIC, so that we don't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23764 + # accidentally link it into a program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23765 + # $show "echo timestamp > $libobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23766 + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23767 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23768 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23769 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23770 + if test -n "$pic_flag" || test "$pic_mode" != default; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23771 + # Only do commands if we really have different PIC objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23772 + reload_objs="$libobjs $reload_conv_objs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23773 + output="$libobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23774 + func_execute_cmds "$reload_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23775 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23776 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23777 + if test -n "$gentop"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23778 + func_show_eval '${RM}r "$gentop"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23779 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23780 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23781 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23782 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23783 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23784 + prog)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23785 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23786 + *cygwin*) func_stripname '' '.exe' "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23787 + output=$func_stripname_result.exe;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23788 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23789 + test -n "$vinfo" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23790 + func_warning "\`-version-info' is ignored for programs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23791 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23792 + test -n "$release" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23793 + func_warning "\`-release' is ignored for programs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23794 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23795 + test "$preload" = yes \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23796 + && test "$dlopen_support" = unknown \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23797 + && test "$dlopen_self" = unknown \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23798 + && test "$dlopen_self_static" = unknown && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23799 + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23800 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23801 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23802 + *-*-rhapsody* | *-*-darwin1.[012])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23803 + # On Rhapsody replace the C library is the System framework
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23804 + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23805 + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23806 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23807 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23808 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23809 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23810 + *-*-darwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23811 + # Don't allow lazy linking, it breaks C++ global constructors
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23812 + # But is supposedly fixed on 10.4 or later (yay!).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23813 + if test "$tagname" = CXX ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23814 + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23815 + 10.[0123])
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23816 + func_append compile_command " ${wl}-bind_at_load"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23817 + func_append finalize_command " ${wl}-bind_at_load"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23818 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23819 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23820 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23821 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23822 + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23823 + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23824 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23825 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23826 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23827 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23828 + # move library search paths that coincide with paths to not yet
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23829 + # installed libraries to the beginning of the library search list
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23830 + new_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23831 + for path in $notinst_path; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23832 + case " $new_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23833 + *" -L$path/$objdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23834 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23835 + case " $compile_deplibs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23836 + *" -L$path/$objdir "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23837 + func_append new_libs " -L$path/$objdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23838 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23839 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23840 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23841 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23842 + for deplib in $compile_deplibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23843 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23844 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23845 + case " $new_libs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23846 + *" $deplib "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23847 + *) func_append new_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23848 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23849 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23850 + *) func_append new_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23851 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23852 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23853 + compile_deplibs="$new_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23854 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23855 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23856 + func_append compile_command " $compile_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23857 + func_append finalize_command " $finalize_deplibs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23858 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23859 + if test -n "$rpath$xrpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23860 + # If the user specified any rpath flags, then add them.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23861 + for libdir in $rpath $xrpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23862 + # This is the magic to use -rpath.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23863 + case "$finalize_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23864 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23865 + *) func_append finalize_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23866 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23867 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23868 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23869 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23870 + # Now hardcode the library paths
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23871 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23872 + hardcode_libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23873 + for libdir in $compile_rpath $finalize_rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23874 + if test -n "$hardcode_libdir_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23875 + if test -n "$hardcode_libdir_separator"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23876 + if test -z "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23877 + hardcode_libdirs="$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23878 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23879 + # Just accumulate the unique libdirs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23880 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23881 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23882 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23883 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23884 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23885 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23886 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23887 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23888 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23889 + eval flag=\"$hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23890 + func_append rpath " $flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23891 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23892 + elif test -n "$runpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23893 + case "$perm_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23894 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23895 + *) func_append perm_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23896 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23897 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23898 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23899 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23900 + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23901 + case :$dllsearchpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23902 + *":$libdir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23903 + ::) dllsearchpath=$libdir;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23904 + *) func_append dllsearchpath ":$libdir";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23905 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23906 + case :$dllsearchpath: in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23907 + *":$testbindir:"*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23908 + ::) dllsearchpath=$testbindir;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23909 + *) func_append dllsearchpath ":$testbindir";;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23910 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23911 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23912 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23913 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23914 + # Substitute the hardcoded libdirs into the rpath.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23915 + if test -n "$hardcode_libdir_separator" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23916 + test -n "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23917 + libdir="$hardcode_libdirs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23918 + eval rpath=\" $hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23919 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23920 + compile_rpath="$rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23921 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23922 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23923 + hardcode_libdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23924 + for libdir in $finalize_rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23925 + if test -n "$hardcode_libdir_flag_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23926 + if test -n "$hardcode_libdir_separator"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23927 + if test -z "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23928 + hardcode_libdirs="$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23929 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23930 + # Just accumulate the unique libdirs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23931 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23932 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23933 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23934 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23935 + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23936 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23937 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23938 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23939 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23940 + eval flag=\"$hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23941 + func_append rpath " $flag"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23942 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23943 + elif test -n "$runpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23944 + case "$finalize_perm_rpath " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23945 + *" $libdir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23946 + *) func_append finalize_perm_rpath " $libdir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23947 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23948 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23949 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23950 + # Substitute the hardcoded libdirs into the rpath.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23951 + if test -n "$hardcode_libdir_separator" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23952 + test -n "$hardcode_libdirs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23953 + libdir="$hardcode_libdirs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23954 + eval rpath=\" $hardcode_libdir_flag_spec\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23955 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23956 + finalize_rpath="$rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23957 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23958 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23959 + # Transform all the library objects into standard objects.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23960 + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23961 + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23962 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23963 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23964 + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23965 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23966 + # template prelinking step
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23967 + if test -n "$prelink_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23968 + func_execute_cmds "$prelink_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23969 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23970 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23971 + wrappers_required=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23972 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23973 + *cegcc* | *mingw32ce*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23974 + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23975 + wrappers_required=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23976 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23977 + *cygwin* | *mingw* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23978 + if test "$build_libtool_libs" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23979 + wrappers_required=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23980 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23981 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23982 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23983 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23984 + wrappers_required=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23985 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23986 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23987 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23988 + if test "$wrappers_required" = no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23989 + # Replace the output file specification.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23990 + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23991 + link_command="$compile_command$compile_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23992 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23993 + # We have no uninstalled library dependencies, so finalize right now.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23994 + exit_status=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23995 + func_show_eval "$link_command" 'exit_status=$?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23996 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23997 + if test -n "$postlink_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23998 + func_to_tool_file "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23999 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24000 + func_execute_cmds "$postlink_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24001 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24002 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24003 + # Delete the generated files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24004 + if test -f "$output_objdir/${outputname}S.${objext}"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24005 + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24006 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24007 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24008 + exit $exit_status
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24009 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24010 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24011 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24012 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24013 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24014 + if test -n "$finalize_shlibpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24015 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24016 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24017 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24018 + compile_var=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24019 + finalize_var=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24020 + if test -n "$runpath_var"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24021 + if test -n "$perm_rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24022 + # We should set the runpath_var.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24023 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24024 + for dir in $perm_rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24025 + func_append rpath "$dir:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24026 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24027 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24028 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24029 + if test -n "$finalize_perm_rpath"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24030 + # We should set the runpath_var.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24031 + rpath=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24032 + for dir in $finalize_perm_rpath; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24033 + func_append rpath "$dir:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24034 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24035 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24036 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24037 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24038 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24039 + if test "$no_install" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24040 + # We don't need to create a wrapper script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24041 + link_command="$compile_var$compile_command$compile_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24042 + # Replace the output file specification.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24043 + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24044 + # Delete the old output file.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24045 + $opt_dry_run || $RM $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24046 + # Link the executable and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24047 + func_show_eval "$link_command" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24048 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24049 + if test -n "$postlink_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24050 + func_to_tool_file "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24051 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24052 + func_execute_cmds "$postlink_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24053 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24054 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24055 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24056 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24057 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24058 + if test "$hardcode_action" = relink; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24059 + # Fast installation is not supported
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24060 + link_command="$compile_var$compile_command$compile_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24061 + relink_command="$finalize_var$finalize_command$finalize_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24062 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24063 + func_warning "this platform does not like uninstalled shared libraries"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24064 + func_warning "\`$output' will be relinked during installation"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24065 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24066 + if test "$fast_install" != no; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24067 + link_command="$finalize_var$compile_command$finalize_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24068 + if test "$fast_install" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24069 + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24070 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24071 + # fast_install is set to needless
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24072 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24073 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24074 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24075 + link_command="$compile_var$compile_command$compile_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24076 + relink_command="$finalize_var$finalize_command$finalize_rpath"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24077 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24078 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24079 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24080 + # Replace the output file specification.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24081 + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24082 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24083 + # Delete the old output files.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24084 + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24085 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24086 + func_show_eval "$link_command" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24087 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24088 + if test -n "$postlink_cmds"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24089 + func_to_tool_file "$output_objdir/$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24090 + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24091 + func_execute_cmds "$postlink_cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24092 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24093 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24094 + # Now create the wrapper script.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24095 + func_verbose "creating $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24096 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24097 + # Quote the relink command for shipping.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24098 + if test -n "$relink_command"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24099 + # Preserve any variables that may affect compiler behavior
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24100 + for var in $variables_saved_for_relink; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24101 + if eval test -z \"\${$var+set}\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24102 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24103 + elif eval var_value=\$$var; test -z "$var_value"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24104 + relink_command="$var=; export $var; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24105 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24106 + func_quote_for_eval "$var_value"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24107 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24108 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24109 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24110 + relink_command="(cd `pwd`; $relink_command)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24111 + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24112 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24113 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24114 + # Only actually do things if not in dry run mode.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24115 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24116 + # win32 will think the script is a binary if it has
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24117 + # a .exe suffix, so we strip it off here.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24118 + case $output in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24119 + *.exe) func_stripname '' '.exe' "$output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24120 + output=$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24121 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24122 + # test for cygwin because mv fails w/o .exe extensions
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24123 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24124 + *cygwin*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24125 + exeext=.exe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24126 + func_stripname '' '.exe' "$outputname"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24127 + outputname=$func_stripname_result ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24128 + *) exeext= ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24129 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24130 + case $host in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24131 + *cygwin* | *mingw* )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24132 + func_dirname_and_basename "$output" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24133 + output_name=$func_basename_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24134 + output_path=$func_dirname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24135 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24136 + cwrapper="$output_path/$output_name.exe"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24137 + $RM $cwrappersource $cwrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24138 + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24139 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24140 + func_emit_cwrapperexe_src > $cwrappersource
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24141 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24142 + # The wrapper executable is built using the $host compiler,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24143 + # because it contains $host paths and files. If cross-
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24144 + # compiling, it, like the target executable, must be
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24145 + # executed on the $host or under an emulation environment.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24146 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24147 + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24148 + $STRIP $cwrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24149 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24150 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24151 + # Now, create the wrapper script for func_source use:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24152 + func_ltwrapper_scriptname $cwrapper
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24153 + $RM $func_ltwrapper_scriptname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24154 + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24155 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24156 + # note: this script will not be executed, so do not chmod.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24157 + if test "x$build" = "x$host" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24158 + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24159 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24160 + func_emit_wrapper no > $func_ltwrapper_scriptname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24161 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24162 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24163 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24164 + * )
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24165 + $RM $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24166 + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24167 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24168 + func_emit_wrapper no > $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24169 + chmod +x $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24170 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24171 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24172 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24173 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24174 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24175 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24176 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24177 + # See if we need to build an old-fashioned archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24178 + for oldlib in $oldlibs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24179 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24180 + if test "$build_libtool_libs" = convenience; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24181 + oldobjs="$libobjs_save $symfileobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24182 + addlibs="$convenience"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24183 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24184 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24185 + if test "$build_libtool_libs" = module; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24186 + oldobjs="$libobjs_save"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24187 + build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24188 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24189 + oldobjs="$old_deplibs $non_pic_objects"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24190 + if test "$preload" = yes && test -f "$symfileobj"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24191 + func_append oldobjs " $symfileobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24192 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24193 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24194 + addlibs="$old_convenience"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24195 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24196 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24197 + if test -n "$addlibs"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24198 + gentop="$output_objdir/${outputname}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24199 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24200 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24201 + func_extract_archives $gentop $addlibs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24202 + func_append oldobjs " $func_extract_archives_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24203 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24204 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24205 + # Do each command in the archive commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24206 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24207 + cmds=$old_archive_from_new_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24208 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24209 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24210 + # Add any objects from preloaded convenience libraries
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24211 + if test -n "$dlprefiles"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24212 + gentop="$output_objdir/${outputname}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24213 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24214 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24215 + func_extract_archives $gentop $dlprefiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24216 + func_append oldobjs " $func_extract_archives_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24217 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24218 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24219 + # POSIX demands no paths to be encoded in archives. We have
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24220 + # to avoid creating archives with duplicate basenames if we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24221 + # might have to extract them afterwards, e.g., when creating a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24222 + # static archive out of a convenience library, or when linking
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24223 + # the entirety of a libtool archive into another (currently
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24224 + # not supported by libtool).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24225 + if (for obj in $oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24226 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24227 + func_basename "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24228 + $ECHO "$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24229 + done | sort | sort -uc >/dev/null 2>&1); then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24230 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24231 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24232 + echo "copying selected object files to avoid basename conflicts..."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24233 + gentop="$output_objdir/${outputname}x"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24234 + func_append generated " $gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24235 + func_mkdir_p "$gentop"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24236 + save_oldobjs=$oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24237 + oldobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24238 + counter=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24239 + for obj in $save_oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24240 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24241 + func_basename "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24242 + objbase="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24243 + case " $oldobjs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24244 + " ") oldobjs=$obj ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24245 + *[\ /]"$objbase "*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24246 + while :; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24247 + # Make sure we don't pick an alternate name that also
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24248 + # overlaps.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24249 + newobj=lt$counter-$objbase
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24250 + func_arith $counter + 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24251 + counter=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24252 + case " $oldobjs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24253 + *[\ /]"$newobj "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24254 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24255 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24256 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24257 + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24258 + func_append oldobjs " $gentop/$newobj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24259 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24260 + *) func_append oldobjs " $obj" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24261 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24262 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24263 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24264 + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24265 + tool_oldlib=$func_to_tool_file_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24266 + eval cmds=\"$old_archive_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24267 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24268 + func_len " $cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24269 + len=$func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24270 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24271 + cmds=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24272 + elif test -n "$archiver_list_spec"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24273 + func_verbose "using command file archive linking..."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24274 + for obj in $oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24275 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24276 + func_to_tool_file "$obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24277 + $ECHO "$func_to_tool_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24278 + done > $output_objdir/$libname.libcmd
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24279 + func_to_tool_file "$output_objdir/$libname.libcmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24280 + oldobjs=" $archiver_list_spec$func_to_tool_file_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24281 + cmds=$old_archive_cmds
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24282 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24283 + # the command line is too long to link in one step, link in parts
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24284 + func_verbose "using piecewise archive linking..."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24285 + save_RANLIB=$RANLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24286 + RANLIB=:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24287 + objlist=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24288 + concat_cmds=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24289 + save_oldobjs=$oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24290 + oldobjs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24291 + # Is there a better way of finding the last object in the list?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24292 + for obj in $save_oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24293 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24294 + last_oldobj=$obj
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24295 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24296 + eval test_cmds=\"$old_archive_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24297 + func_len " $test_cmds"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24298 + len0=$func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24299 + len=$len0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24300 + for obj in $save_oldobjs
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24301 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24302 + func_len " $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24303 + func_arith $len + $func_len_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24304 + len=$func_arith_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24305 + func_append objlist " $obj"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24306 + if test "$len" -lt "$max_cmd_len"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24307 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24308 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24309 + # the above command should be used before it gets too long
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24310 + oldobjs=$objlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24311 + if test "$obj" = "$last_oldobj" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24312 + RANLIB=$save_RANLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24313 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24314 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24315 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24316 + objlist=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24317 + len=$len0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24318 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24319 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24320 + RANLIB=$save_RANLIB
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24321 + oldobjs=$objlist
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24322 + if test "X$oldobjs" = "X" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24323 + eval cmds=\"\$concat_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24324 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24325 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24326 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24327 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24328 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24329 + func_execute_cmds "$cmds" 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24330 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24331 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24332 + test -n "$generated" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24333 + func_show_eval "${RM}r$generated"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24334 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24335 + # Now create the libtool archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24336 + case $output in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24337 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24338 + old_library=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24339 + test "$build_old_libs" = yes && old_library="$libname.$libext"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24340 + func_verbose "creating $output"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24341 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24342 + # Preserve any variables that may affect compiler behavior
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24343 + for var in $variables_saved_for_relink; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24344 + if eval test -z \"\${$var+set}\"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24345 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24346 + elif eval var_value=\$$var; test -z "$var_value"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24347 + relink_command="$var=; export $var; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24348 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24349 + func_quote_for_eval "$var_value"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24350 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24351 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24352 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24353 + # Quote the link command for shipping.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24354 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24355 + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24356 + if test "$hardcode_automatic" = yes ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24357 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24358 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24359 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24360 + # Only create the output if not a dry run.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24361 + $opt_dry_run || {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24362 + for installed in no yes; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24363 + if test "$installed" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24364 + if test -z "$install_libdir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24365 + break
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24366 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24367 + output="$output_objdir/$outputname"i
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24368 + # Replace all uninstalled libtool libraries with the installed ones
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24369 + newdependency_libs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24370 + for deplib in $dependency_libs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24371 + case $deplib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24372 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24373 + func_basename "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24374 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24375 + func_resolve_sysroot "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24376 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24377 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24378 + func_fatal_error "\`$deplib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24379 + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24380 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24381 + -L*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24382 + func_stripname -L '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24383 + func_replace_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24384 + func_append newdependency_libs " -L$func_replace_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24385 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24386 + -R*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24387 + func_stripname -R '' "$deplib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24388 + func_replace_sysroot "$func_stripname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24389 + func_append newdependency_libs " -R$func_replace_sysroot_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24390 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24391 + *) func_append newdependency_libs " $deplib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24392 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24393 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24394 + dependency_libs="$newdependency_libs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24395 + newdlfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24396 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24397 + for lib in $dlfiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24398 + case $lib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24399 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24400 + func_basename "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24401 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24402 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24403 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24404 + func_fatal_error "\`$lib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24405 + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24406 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24407 + *) func_append newdlfiles " $lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24408 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24409 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24410 + dlfiles="$newdlfiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24411 + newdlprefiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24412 + for lib in $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24413 + case $lib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24414 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24415 + # Only pass preopened files to the pseudo-archive (for
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24416 + # eventual linking with the app. that links it) if we
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24417 + # didn't already link the preopened objects directly into
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24418 + # the library:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24419 + func_basename "$lib"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24420 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24421 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24422 + test -z "$libdir" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24423 + func_fatal_error "\`$lib' is not a valid libtool archive"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24424 + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24425 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24426 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24427 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24428 + dlprefiles="$newdlprefiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24429 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24430 + newdlfiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24431 + for lib in $dlfiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24432 + case $lib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24433 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24434 + *) abs=`pwd`"/$lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24435 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24436 + func_append newdlfiles " $abs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24437 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24438 + dlfiles="$newdlfiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24439 + newdlprefiles=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24440 + for lib in $dlprefiles; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24441 + case $lib in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24442 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24443 + *) abs=`pwd`"/$lib" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24444 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24445 + func_append newdlprefiles " $abs"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24446 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24447 + dlprefiles="$newdlprefiles"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24448 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24449 + $RM $output
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24450 + # place dlname in correct position for cygwin
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24451 + # In fact, it would be nice if we could use this code for all target
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24452 + # systems that can't hard-code library paths into their executables
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24453 + # and that have no shared library path variable independent of PATH,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24454 + # but it turns out we can't easily determine that from inspecting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24455 + # libtool variables, so we have to hard-code the OSs to which it
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24456 + # applies here; at the moment, that means platforms that use the PE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24457 + # object format with DLL files. See the long comment at the top of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24458 + # tests/bindir.at for full details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24459 + tdlname=$dlname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24460 + case $host,$output,$installed,$module,$dlname in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24461 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24462 + # If a -bindir argument was supplied, place the dll there.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24463 + if test "x$bindir" != x ;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24464 + then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24465 + func_relative_path "$install_libdir" "$bindir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24466 + tdlname=$func_relative_path_result$dlname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24467 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24468 + # Otherwise fall back on heuristic.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24469 + tdlname=../bin/$dlname
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24470 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24471 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24472 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24473 + $ECHO > $output "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24474 +# $outputname - a libtool library file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24475 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24476 +#
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24477 +# Please DO NOT delete this file!
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24478 +# It is necessary for linking the library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24479 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24480 +# The name that we can dlopen(3).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24481 +dlname='$tdlname'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24482 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24483 +# Names of this library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24484 +library_names='$library_names'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24485 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24486 +# The name of the static archive.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24487 +old_library='$old_library'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24488 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24489 +# Linker flags that can not go in dependency_libs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24490 +inherited_linker_flags='$new_inherited_linker_flags'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24491 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24492 +# Libraries that this one depends upon.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24493 +dependency_libs='$dependency_libs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24494 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24495 +# Names of additional weak libraries provided by this library
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24496 +weak_library_names='$weak_libs'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24497 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24498 +# Version information for $libname.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24499 +current=$current
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24500 +age=$age
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24501 +revision=$revision
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24502 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24503 +# Is this an already installed library?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24504 +installed=$installed
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24505 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24506 +# Should we warn about portability when linking against -modules?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24507 +shouldnotlink=$module
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24508 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24509 +# Files to dlopen/dlpreopen
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24510 +dlopen='$dlfiles'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24511 +dlpreopen='$dlprefiles'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24512 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24513 +# Directory that this library needs to be installed in:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24514 +libdir='$install_libdir'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24515 + if test "$installed" = no && test "$need_relink" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24516 + $ECHO >> $output "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24517 +relink_command=\"$relink_command\""
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24518 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24519 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24520 + }
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24521 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24522 + # Do a symbolic link so that the libtool archive can be found in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24523 + # LD_LIBRARY_PATH before the program is installed.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24524 + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24525 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24526 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24527 + exit $EXIT_SUCCESS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24528 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24529 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24530 +{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24531 + func_mode_link ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24532 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24533 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24534 +# func_mode_uninstall arg...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24535 +func_mode_uninstall ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24536 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24537 + $opt_debug
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24538 + RM="$nonopt"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24539 + files=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24540 + rmforce=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24541 + exit_status=0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24542 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24543 + # This variable tells wrapper scripts just to set variables rather
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24544 + # than running their programs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24545 + libtool_install_magic="$magic"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24546 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24547 + for arg
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24548 + do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24549 + case $arg in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24550 + -f) func_append RM " $arg"; rmforce=yes ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24551 + -*) func_append RM " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24552 + *) func_append files " $arg" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24553 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24554 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24555 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24556 + test -z "$RM" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24557 + func_fatal_help "you must specify an RM program"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24558 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24559 + rmdirs=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24560 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24561 + for file in $files; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24562 + func_dirname "$file" "" "."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24563 + dir="$func_dirname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24564 + if test "X$dir" = X.; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24565 + odir="$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24566 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24567 + odir="$dir/$objdir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24568 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24569 + func_basename "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24570 + name="$func_basename_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24571 + test "$opt_mode" = uninstall && odir="$dir"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24572 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24573 + # Remember odir for removal later, being careful to avoid duplicates
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24574 + if test "$opt_mode" = clean; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24575 + case " $rmdirs " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24576 + *" $odir "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24577 + *) func_append rmdirs " $odir" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24578 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24579 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24580 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24581 + # Don't error if the file doesn't exist and rm -f was used.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24582 + if { test -L "$file"; } >/dev/null 2>&1 ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24583 + { test -h "$file"; } >/dev/null 2>&1 ||
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24584 + test -f "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24585 + :
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24586 + elif test -d "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24587 + exit_status=1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24588 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24589 + elif test "$rmforce" = yes; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24590 + continue
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24591 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24592 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24593 + rmfiles="$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24594 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24595 + case $name in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24596 + *.la)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24597 + # Possibly a libtool archive, so verify it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24598 + if func_lalib_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24599 + func_source $dir/$name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24600 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24601 + # Delete the libtool libraries and symlinks.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24602 + for n in $library_names; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24603 + func_append rmfiles " $odir/$n"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24604 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24605 + test -n "$old_library" && func_append rmfiles " $odir/$old_library"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24606 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24607 + case "$opt_mode" in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24608 + clean)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24609 + case " $library_names " in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24610 + *" $dlname "*) ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24611 + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24612 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24613 + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24614 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24615 + uninstall)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24616 + if test -n "$library_names"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24617 + # Do each command in the postuninstall commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24618 + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24619 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24620 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24621 + if test -n "$old_library"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24622 + # Do each command in the old_postuninstall commands.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24623 + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24624 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24625 + # FIXME: should reinstall the best remaining shared library.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24626 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24627 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24628 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24629 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24630 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24631 + *.lo)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24632 + # Possibly a libtool object, so verify it.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24633 + if func_lalib_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24634 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24635 + # Read the .lo file
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24636 + func_source $dir/$name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24637 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24638 + # Add PIC object to the list of files to remove.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24639 + if test -n "$pic_object" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24640 + test "$pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24641 + func_append rmfiles " $dir/$pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24642 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24643 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24644 + # Add non-PIC object to the list of files to remove.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24645 + if test -n "$non_pic_object" &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24646 + test "$non_pic_object" != none; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24647 + func_append rmfiles " $dir/$non_pic_object"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24648 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24649 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24650 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24651 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24652 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24653 + if test "$opt_mode" = clean ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24654 + noexename=$name
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24655 + case $file in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24656 + *.exe)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24657 + func_stripname '' '.exe' "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24658 + file=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24659 + func_stripname '' '.exe' "$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24660 + noexename=$func_stripname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24661 + # $file with .exe has already been added to rmfiles,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24662 + # add $file without .exe
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24663 + func_append rmfiles " $file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24664 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24665 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24666 + # Do a test to see if this is a libtool program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24667 + if func_ltwrapper_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24668 + if func_ltwrapper_executable_p "$file"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24669 + func_ltwrapper_scriptname "$file"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24670 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24671 + func_source $func_ltwrapper_scriptname_result
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24672 + func_append rmfiles " $func_ltwrapper_scriptname_result"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24673 + else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24674 + relink_command=
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24675 + func_source $dir/$noexename
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24676 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24677 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24678 + # note $name still contains .exe if it was in $file originally
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24679 + # as does the version of $file that was added into $rmfiles
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24680 + func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24681 + if test "$fast_install" = yes && test -n "$relink_command"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24682 + func_append rmfiles " $odir/lt-$name"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24683 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24684 + if test "X$noexename" != "X$name" ; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24685 + func_append rmfiles " $odir/lt-${noexename}.c"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24686 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24687 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24688 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24689 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24690 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24691 + func_show_eval "$RM $rmfiles" 'exit_status=1'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24692 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24693 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24694 + # Try to remove the ${objdir}s in the directories where we deleted files
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24695 + for dir in $rmdirs; do
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24696 + if test -d "$dir"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24697 + func_show_eval "rmdir $dir >/dev/null 2>&1"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24698 + fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24699 + done
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24700 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24701 + exit $exit_status
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24702 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24703 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24704 +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24705 + func_mode_uninstall ${1+"$@"}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24706 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24707 +test -z "$opt_mode" && {
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24708 + help="$generic_help"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24709 + func_fatal_help "you must specify a MODE"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24710 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24711 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24712 +test -z "$exec_cmd" && \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24713 + func_fatal_help "invalid operation mode \`$opt_mode'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24714 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24715 +if test -n "$exec_cmd"; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24716 + eval exec "$exec_cmd"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24717 + exit $EXIT_FAILURE
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24718 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24719 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24720 +exit $exit_status
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24721 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24722 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24723 +# The TAGs below are defined such that we never get into a situation
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24724 +# in which we disable both kinds of libraries. Given conflicting
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24725 +# choices, we go for a static library, that is the most portable,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24726 +# since we can't tell whether shared libraries were disabled because
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24727 +# the user asked for that or because the platform doesn't support
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24728 +# them. This is particularly important on AIX, because we don't
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24729 +# support having both static and shared libraries enabled at the same
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24730 +# time on that platform, so we default to a shared-only configuration.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24731 +# If a disable-shared tag is given, we'll fallback to a static-only
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24732 +# configuration. But we'll never go from static-only to shared-only.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24733 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24734 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24735 +build_libtool_libs=no
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24736 +build_old_libs=yes
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24737 +# ### END LIBTOOL TAG CONFIG: disable-shared
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24738 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24739 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24740 +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24741 +# ### END LIBTOOL TAG CONFIG: disable-static
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24742 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24743 +# Local Variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24744 +# mode:shell-script
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24745 +# sh-indentation:2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24746 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24747 +# vi:sw=2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24748 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24749 diff -uNr a/Makefile.am b/Makefile.am
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24750 --- a/Makefile.am 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24751 +++ b/Makefile.am 2014-12-12 14:58:08.449959961 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24752 @@ -0,0 +1,5 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24753 +lib_LTLIBRARIES = libgl2ps.la
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24754 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24755 +libgl2ps_la_SOURCES = gl2ps.c
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24756 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24757 +include_HEADERS = gl2ps.h
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24758 diff -uNr a/missing b/missing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24759 --- a/missing 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24760 +++ b/missing 2014-12-12 15:22:27.598240211 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24761 @@ -0,0 +1,215 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24762 +#! /bin/sh
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24763 +# Common wrapper for a few potentially missing GNU programs.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24764 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24765 +scriptversion=2013-10-28.13; # UTC
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24766 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24767 +# Copyright (C) 1996-2013 Free Software Foundation, Inc.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24768 +# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24769 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24770 +# This program is free software; you can redistribute it and/or modify
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24771 +# it under the terms of the GNU General Public License as published by
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24772 +# the Free Software Foundation; either version 2, or (at your option)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24773 +# any later version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24774 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24775 +# This program is distributed in the hope that it will be useful,
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24776 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24777 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24778 +# GNU General Public License for more details.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24779 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24780 +# You should have received a copy of the GNU General Public License
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24781 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24782 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24783 +# As a special exception to the GNU General Public License, if you
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24784 +# distribute this file as part of a program that contains a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24785 +# configuration script generated by Autoconf, you may include it under
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24786 +# the same distribution terms that you use for the rest of that program.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24787 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24788 +if test $# -eq 0; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24789 + echo 1>&2 "Try '$0 --help' for more information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24790 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24791 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24792 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24793 +case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24794 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24795 + --is-lightweight)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24796 + # Used by our autoconf macros to check whether the available missing
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24797 + # script is modern enough.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24798 + exit 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24799 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24800 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24801 + --run)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24802 + # Back-compat with the calling convention used by older automake.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24803 + shift
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24804 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24805 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24806 + -h|--h|--he|--hel|--help)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24807 + echo "\
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24808 +$0 [OPTION]... PROGRAM [ARGUMENT]...
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24809 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24810 +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24811 +to PROGRAM being missing or too old.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24812 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24813 +Options:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24814 + -h, --help display this help and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24815 + -v, --version output version information and exit
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24816 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24817 +Supported PROGRAM values:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24818 + aclocal autoconf autoheader autom4te automake makeinfo
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24819 + bison yacc flex lex help2man
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24820 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24821 +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24822 +'g' are ignored when checking the name.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24823 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24824 +Send bug reports to <bug-automake@gnu.org>."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24825 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24826 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24827 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24828 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24829 + echo "missing $scriptversion (GNU Automake)"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24830 + exit $?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24831 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24832 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24833 + -*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24834 + echo 1>&2 "$0: unknown '$1' option"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24835 + echo 1>&2 "Try '$0 --help' for more information"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24836 + exit 1
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24837 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24838 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24839 +esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24840 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24841 +# Run the given program, remember its exit status.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24842 +"$@"; st=$?
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24843 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24844 +# If it succeeded, we are done.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24845 +test $st -eq 0 && exit 0
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24846 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24847 +# Also exit now if we it failed (or wasn't found), and '--version' was
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24848 +# passed; such an option is passed most likely to detect whether the
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24849 +# program is present and works.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24850 +case $2 in --version|--help) exit $st;; esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24851 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24852 +# Exit code 63 means version mismatch. This often happens when the user
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24853 +# tries to use an ancient version of a tool on a file that requires a
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24854 +# minimum version.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24855 +if test $st -eq 63; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24856 + msg="probably too old"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24857 +elif test $st -eq 127; then
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24858 + # Program was missing.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24859 + msg="missing on your system"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24860 +else
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24861 + # Program was found and executed, but failed. Give up.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24862 + exit $st
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24863 +fi
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24864 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24865 +perl_URL=http://www.perl.org/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24866 +flex_URL=http://flex.sourceforge.net/
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24867 +gnu_software_URL=http://www.gnu.org/software
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24868 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24869 +program_details ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24870 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24871 + case $1 in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24872 + aclocal|automake)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24873 + echo "The '$1' program is part of the GNU Automake package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24874 + echo "<$gnu_software_URL/automake>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24875 + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24876 + echo "<$gnu_software_URL/autoconf>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24877 + echo "<$gnu_software_URL/m4/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24878 + echo "<$perl_URL>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24879 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24880 + autoconf|autom4te|autoheader)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24881 + echo "The '$1' program is part of the GNU Autoconf package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24882 + echo "<$gnu_software_URL/autoconf/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24883 + echo "It also requires GNU m4 and Perl in order to run:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24884 + echo "<$gnu_software_URL/m4/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24885 + echo "<$perl_URL>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24886 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24887 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24888 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24889 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24890 +give_advice ()
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24891 +{
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24892 + # Normalize program name to check for.
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24893 + normalized_program=`echo "$1" | sed '
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24894 + s/^gnu-//; t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24895 + s/^gnu//; t
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24896 + s/^g//; t'`
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24897 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24898 + printf '%s\n' "'$1' is $msg."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24899 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24900 + configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24901 + case $normalized_program in
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24902 + autoconf*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24903 + echo "You should only need it if you modified 'configure.ac',"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24904 + echo "or m4 files included by it."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24905 + program_details 'autoconf'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24906 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24907 + autoheader*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24908 + echo "You should only need it if you modified 'acconfig.h' or"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24909 + echo "$configure_deps."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24910 + program_details 'autoheader'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24911 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24912 + automake*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24913 + echo "You should only need it if you modified 'Makefile.am' or"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24914 + echo "$configure_deps."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24915 + program_details 'automake'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24916 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24917 + aclocal*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24918 + echo "You should only need it if you modified 'acinclude.m4' or"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24919 + echo "$configure_deps."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24920 + program_details 'aclocal'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24921 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24922 + autom4te*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24923 + echo "You might have modified some maintainer files that require"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24924 + echo "the 'autom4te' program to be rebuilt."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24925 + program_details 'autom4te'
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24926 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24927 + bison*|yacc*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24928 + echo "You should only need it if you modified a '.y' file."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24929 + echo "You may want to install the GNU Bison package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24930 + echo "<$gnu_software_URL/bison/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24931 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24932 + lex*|flex*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24933 + echo "You should only need it if you modified a '.l' file."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24934 + echo "You may want to install the Fast Lexical Analyzer package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24935 + echo "<$flex_URL>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24936 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24937 + help2man*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24938 + echo "You should only need it if you modified a dependency" \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24939 + "of a man page."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24940 + echo "You may want to install the GNU Help2man package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24941 + echo "<$gnu_software_URL/help2man/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24942 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24943 + makeinfo*)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24944 + echo "You should only need it if you modified a '.texi' file, or"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24945 + echo "any other file indirectly affecting the aspect of the manual."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24946 + echo "You might want to install the Texinfo package:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24947 + echo "<$gnu_software_URL/texinfo/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24948 + echo "The spurious makeinfo call might also be the consequence of"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24949 + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24950 + echo "want to install GNU make:"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24951 + echo "<$gnu_software_URL/make/>"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24952 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24953 + *)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24954 + echo "You might have modified some files without having the proper"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24955 + echo "tools for further handling them. Check the 'README' file, it"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24956 + echo "often tells you about the needed prerequisites for installing"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24957 + echo "this package. You may also peek at any GNU archive site, in"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24958 + echo "case some other package contains this missing '$1' program."
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24959 + ;;
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24960 + esac
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24961 +}
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24962 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24963 +give_advice "$1" | sed -e '1s/^/WARNING: /' \
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24964 + -e '2,$s/^/ /' >&2
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24965 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24966 +# Propagate the correct exit status (expected to be 127 for a program
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24967 +# not found, 63 for a program that failed due to version mismatch).
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24968 +exit $st
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24969 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24970 +# Local variables:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24971 +# eval: (add-hook 'write-file-hooks 'time-stamp)
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24972 +# time-stamp-start: "scriptversion="
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24973 +# time-stamp-format: "%:y-%02m-%02d.%02H"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24974 +# time-stamp-time-zone: "UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24975 +# time-stamp-end: "; # UTC"
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24976 +# End:
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24977 diff -uNr a/NEWS b/NEWS
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24978 --- a/NEWS 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24979 +++ b/NEWS 2014-12-12 15:59:32.605606679 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24980 @@ -0,0 +1 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24981 +
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24982 diff -uNr a/README b/README
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24983 --- a/README 1969-12-31 19:00:00.000000000 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24984 +++ b/README 2014-12-12 15:59:32.605606679 -0500
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24985 @@ -0,0 +1 @@
291c610413cd use autotools for building gl2ps on Linux systems
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24986 +