Fix OTS warning about `maxp.maxSizeOfInstructions`.
[ttfautohint.git] / m4 / ltlize_lang.m4
blob3e422d61f7f94c9c902dd74cdae3d1fbfe552574
1 # Copyright 2011 Nicolai Stange
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 AC_DEFUN([LT_LTLIZE_LANG],
17 [AC_REQUIRE([LT_OUTPUT])]
18 [AC_LANG_DEFINE([LTLIZED $1], 
19 [lt_[]_AC_LANG_DISPATCH([_AC_LANG_ABBREV], [$1])], 
20 [LT_[]_AC_LANG_DISPATCH([_AC_LANG_PREFIX], [$1])],
21 [_AC_LANG_DISPATCH([_AC_CC], [$1])], [$1],
22 [_AC_LANG_DISPATCH([AC_LANG], [$1])])]
23 [m4_append([AC_LANG(LTLIZED $1)],
24 [ac_link="$ac_compile; ./libtool --mode=link `echo $ac_link | sed 's/\$ac_ext/\$ac_objext/'`"])]
25 [m4_ifdef([AC_LANG_COMPILER($1)],
26 [m4_copy([AC_LANG_COMPILER($1)], [AC_LANG_COMPILER(LTLIZED $1)])])]
27 )dnl