blob: 5ca9342b7915b6a351042abb0d107b43ddfd4e5c [file] [log] [blame]
Nick Kralevichf73ff172014-09-27 12:41:49 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Elliott Hughes0ea98832015-12-04 23:18:20 -08003# Generated by GNU Autoconf 2.69 for PCRE 8.38.
Nick Kralevichf73ff172014-09-27 12:41:49 -07004#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='PCRE'
589PACKAGE_TARNAME='pcre'
Elliott Hughes0ea98832015-12-04 23:18:20 -0800590PACKAGE_VERSION='8.38'
591PACKAGE_STRING='PCRE 8.38'
Nick Kralevichf73ff172014-09-27 12:41:49 -0700592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="pcre.h.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636WITH_GCOV_FALSE
637WITH_GCOV_TRUE
638GCOV_LIBS
639GCOV_CXXFLAGS
640GCOV_CFLAGS
641GENHTML
642LCOV
643SHTOOL
644VALGRIND_LIBS
645VALGRIND_CFLAGS
646PKG_CONFIG_LIBDIR
647PKG_CONFIG_PATH
648PKG_CONFIG
649LIBBZ2
650LIBZ
651DISTCHECK_CONFIGURE_FLAGS
652EXTRA_LIBPCRECPP_LDFLAGS
653EXTRA_LIBPCREPOSIX_LDFLAGS
654EXTRA_LIBPCRE32_LDFLAGS
655EXTRA_LIBPCRE16_LDFLAGS
656EXTRA_LIBPCRE_LDFLAGS
657PTHREAD_CFLAGS
658PTHREAD_LIBS
659PTHREAD_CC
660ax_pthread_config
661PCRE_STATIC_CFLAG
662LIBREADLINE
663WITH_VALGRIND_FALSE
664WITH_VALGRIND_TRUE
665WITH_UTF_FALSE
666WITH_UTF_TRUE
667WITH_JIT_FALSE
668WITH_JIT_TRUE
669WITH_REBUILD_CHARTABLES_FALSE
670WITH_REBUILD_CHARTABLES_TRUE
671WITH_PCRE_CPP_FALSE
672WITH_PCRE_CPP_TRUE
673WITH_PCRE32_FALSE
674WITH_PCRE32_TRUE
675WITH_PCRE16_FALSE
676WITH_PCRE16_TRUE
677WITH_PCRE8_FALSE
678WITH_PCRE8_TRUE
679pcre_have_bits_type_traits
680pcre_have_type_traits
681pcre_have_ulong_long
682pcre_have_long_long
683enable_cpp
684enable_pcre32
685enable_pcre16
686enable_pcre8
687PCRE_DATE
688PCRE_PRERELEASE
689PCRE_MINOR
690PCRE_MAJOR
691HAVE_VISIBILITY
692VISIBILITY_CXXFLAGS
693VISIBILITY_CFLAGS
694CXXCPP
Elliott Hughes8366e8b2015-08-14 20:48:15 -0700695LT_SYS_LIBRARY_PATH
Nick Kralevichf73ff172014-09-27 12:41:49 -0700696OTOOL64
697OTOOL
698LIPO
699NMEDIT
700DSYMUTIL
701MANIFEST_TOOL
702RANLIB
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709SED
710LIBTOOL
711OBJDUMP
712DLLTOOL
713AS
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722EGREP
723GREP
724CPP
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
728ac_ct_CXX
729CXXFLAGS
730CXX
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
734am__nodep
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__quote
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748ac_ct_AR
749AR
750AM_BACKSLASH
751AM_DEFAULT_VERBOSITY
752AM_DEFAULT_V
753AM_V
754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL'
815ac_subst_files=''
816ac_user_opts='
817enable_option_checking
818enable_silent_rules
819enable_dependency_tracking
820enable_shared
821enable_static
822with_pic
823enable_fast_install
Elliott Hughes8366e8b2015-08-14 20:48:15 -0700824with_aix_soname
Nick Kralevichf73ff172014-09-27 12:41:49 -0700825with_gnu_ld
826with_sysroot
827enable_libtool_lock
828enable_pcre8
829enable_pcre16
830enable_pcre32
831enable_cpp
832enable_jit
833enable_pcregrep_jit
834enable_rebuild_chartables
835enable_utf8
836enable_utf
837enable_unicode_properties
838enable_newline_is_cr
839enable_newline_is_lf
840enable_newline_is_crlf
841enable_newline_is_anycrlf
842enable_newline_is_any
843enable_bsr_anycrlf
844enable_ebcdic
845enable_ebcdic_nl25
846enable_stack_for_recursion
847enable_pcregrep_libz
848enable_pcregrep_libbz2
849with_pcregrep_bufsize
850enable_pcretest_libedit
851enable_pcretest_libreadline
852with_posix_malloc_threshold
853with_link_size
854with_parens_nest_limit
855with_match_limit
856with_match_limit_recursion
857enable_valgrind
858enable_coverage
859'
860 ac_precious_vars='build_alias
861host_alias
862target_alias
863CC
864CFLAGS
865LDFLAGS
866LIBS
867CPPFLAGS
868CXX
869CXXFLAGS
870CCC
871CPP
Elliott Hughes8366e8b2015-08-14 20:48:15 -0700872LT_SYS_LIBRARY_PATH
Nick Kralevichf73ff172014-09-27 12:41:49 -0700873CXXCPP
874PKG_CONFIG
875PKG_CONFIG_PATH
876PKG_CONFIG_LIBDIR
877VALGRIND_CFLAGS
878VALGRIND_LIBS
879LCOV
880GENHTML'
881
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886ac_unrecognized_opts=
887ac_unrecognized_sep=
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
910# (The list follows the same order as the GNU Coding Standards.)
911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
919includedir='${prefix}/include'
920oldincludedir='/usr/include'
921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922infodir='${datarootdir}/info'
923htmldir='${docdir}'
924dvidir='${docdir}'
925pdfdir='${docdir}'
926psdir='${docdir}'
927libdir='${exec_prefix}/lib'
928localedir='${datarootdir}/locale'
929mandir='${datarootdir}/man'
930
931ac_prev=
932ac_dashdash=
933for ac_option
934do
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
940 fi
941
942 case $ac_option in
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *=) ac_optarg= ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"enable_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1231
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1265
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267Try \`$0 --help' for more information"
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1279
1280 *)
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286 ;;
1287
1288 esac
1289done
1290
1291if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1294fi
1295
1296if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302fi
1303
1304# Check all directory arguments for consistency.
1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309do
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323done
1324
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1337 cross_compiling=yes
1338 fi
1339fi
1340
1341ac_tool_prefix=
1342test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344test "$silent" = yes && exec 6>/dev/null
1345
1346
1347ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348ac_ls_di=`ls -di .` &&
1349ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1353
1354
1355# Find the source files, if location was not specified.
1356if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364$as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\).*/{
1378 s//\1/
1379 q
1380 }
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1385 fi
1386else
1387 ac_srcdir_defaulted=no
1388fi
1389if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392fi
1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 pwd)`
1397# When building in place, set srcdir=.
1398if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1400fi
1401# Remove unnecessary trailing slashes from srcdir.
1402# Double slashes in file names in object file debugging info
1403# mess up M-x gdb in Emacs.
1404case $srcdir in
1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406esac
1407for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412done
1413
1414#
1415# Report the --help message.
1416#
1417if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
Elliott Hughes0ea98832015-12-04 23:18:20 -08001421\`configure' configures PCRE 8.38 to adapt to many kinds of systems.
Nick Kralevichf73ff172014-09-27 12:41:49 -07001422
1423Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426VAR=VALUE. See below for descriptions of some of the useful variables.
1427
1428Defaults for the options are specified in brackets.
1429
1430Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440
1441Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1446
1447By default, \`make install' will install all the files in
1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450for instance \`--prefix=\$HOME'.
1451
1452For better control, use the options below.
1453
1454Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474_ACEOF
1475
1476 cat <<\_ACEOF
1477
1478Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486_ACEOF
1487fi
1488
1489if test -n "$ac_init_help"; then
1490 case $ac_init_help in
Elliott Hughes0ea98832015-12-04 23:18:20 -08001491 short | recursive ) echo "Configuration of PCRE 8.38:";;
Nick Kralevichf73ff172014-09-27 12:41:49 -07001492 esac
1493 cat <<\_ACEOF
1494
1495Optional Features:
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-silent-rules less verbose build output (undo: "make V=1")
1500 --disable-silent-rules verbose build output (undo: "make V=0")
1501 --enable-dependency-tracking
1502 do not reject slow dependency extractors
1503 --disable-dependency-tracking
1504 speeds up one-time build
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-pcre8 disable 8 bit character support
1511 --enable-pcre16 enable 16 bit character support
1512 --enable-pcre32 enable 32 bit character support
1513 --disable-cpp disable C++ support
1514 --enable-jit enable Just-In-Time compiling support
1515 --disable-pcregrep-jit disable JIT support in pcregrep
1516 --enable-rebuild-chartables
1517 rebuild character tables in current locale
1518 --enable-utf8 another name for --enable-utf. Kept only for
1519 compatibility reasons
1520 --enable-utf enable UTF-8/16/32 support (incompatible with
1521 --enable-ebcdic)
1522 --enable-unicode-properties
1523 enable Unicode properties support (implies
1524 --enable-utf)
1525 --enable-newline-is-cr use CR as newline character
1526 --enable-newline-is-lf use LF as newline character (default)
1527 --enable-newline-is-crlf
1528 use CRLF as newline sequence
1529 --enable-newline-is-anycrlf
1530 use CR, LF, or CRLF as newline sequence
1531 --enable-newline-is-any use any valid Unicode newline sequence
1532 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1533 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1534 with --enable-utf; use only in (uncommon) EBCDIC
1535 environments; it implies --enable-rebuild-chartables
1536 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1537 implies --enable-ebcdic
1538 --disable-stack-for-recursion
1539 don't use stack recursion when matching
1540 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1541 --enable-pcregrep-libbz2
1542 link pcregrep with libbz2 to handle .bz2 files
1543 --enable-pcretest-libedit
1544 link pcretest with libedit
1545 --enable-pcretest-libreadline
1546 link pcretest with libreadline
1547 --enable-valgrind valgrind support
1548 --enable-coverage enable code coverage reports using gcov
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 both]
Elliott Hughes8366e8b2015-08-14 20:48:15 -07001555 --with-aix-soname=aix|svr4|both
1556 shared library versioning (aka "SONAME") variant to
1557 provide on AIX, [default=aix].
Nick Kralevichf73ff172014-09-27 12:41:49 -07001558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Elliott Hughes8366e8b2015-08-14 20:48:15 -07001559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
Nick Kralevichf73ff172014-09-27 12:41:49 -07001561 --with-pcregrep-bufsize=N
1562 pcregrep buffer size (default=20480, minimum=8192)
1563 --with-posix-malloc-threshold=NBYTES
1564 threshold for POSIX malloc usage (default=10)
1565 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1566 --with-parens-nest-limit=N
1567 nested parentheses limit (default=250)
1568 --with-match-limit=N default limit on internal looping (default=10000000)
1569 --with-match-limit-recursion=N
1570 default limit on internal recursion
1571 (default=MATCH_LIMIT)
1572
1573Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1583 CPP C preprocessor
Elliott Hughes8366e8b2015-08-14 20:48:15 -07001584 LT_SYS_LIBRARY_PATH
1585 User-defined run-time library search path.
Nick Kralevichf73ff172014-09-27 12:41:49 -07001586 CXXCPP C++ preprocessor
1587 PKG_CONFIG path to pkg-config utility
1588 PKG_CONFIG_PATH
1589 directories to add to pkg-config's search path
1590 PKG_CONFIG_LIBDIR
1591 path overriding pkg-config's built-in search path
1592 VALGRIND_CFLAGS
1593 C compiler flags for VALGRIND, overriding pkg-config
1594 VALGRIND_LIBS
1595 linker flags for VALGRIND, overriding pkg-config
1596 LCOV the ltp lcov program
1597 GENHTML the ltp genhtml program
1598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to the package provider.
1603_ACEOF
1604ac_status=$?
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664 cat <<\_ACEOF
Elliott Hughes0ea98832015-12-04 23:18:20 -08001665PCRE configure 8.38
Nick Kralevichf73ff172014-09-27 12:41:49 -07001666generated by GNU Autoconf 2.69
1667
1668Copyright (C) 2012 Free Software Foundation, Inc.
1669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
1672 exit
1673fi
1674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_cxx_try_compile LINENO
1718# ----------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_cxx_try_compile ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753} # ac_fn_cxx_try_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_cpp
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_run
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852 eval "$3=yes"
1853else
1854 eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_compile
1864
1865# ac_fn_c_find_intX_t LINENO BITS VAR
1866# -----------------------------------
1867# Finds a signed integer type with width BITS, setting cache variable VAR
1868# accordingly.
1869ac_fn_c_find_intX_t ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1873$as_echo_n "checking for int$2_t... " >&6; }
1874if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876else
1877 eval "$3=no"
1878 # Order is important - never check a type that is potentially smaller
1879 # than half of the expected target width.
1880 for ac_type in int$2_t 'int' 'long int' \
1881 'long long int' 'short int' 'signed char'; do
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$ac_includes_default
1885 enum { N = $2 / 2 - 1 };
1886int
1887main ()
1888{
1889static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1890test_array [0] = 0;
1891return test_array [0];
1892
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900$ac_includes_default
1901 enum { N = $2 / 2 - 1 };
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1906 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1907test_array [0] = 0;
1908return test_array [0];
1909
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915
1916else
1917 case $ac_type in #(
1918 int$2_t) :
1919 eval "$3=yes" ;; #(
1920 *) :
1921 eval "$3=\$ac_type" ;;
1922esac
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 if eval test \"x\$"$3"\" = x"no"; then :
1928
1929else
1930 break
1931fi
1932 done
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_find_intX_t
1940
1941# ac_fn_c_try_link LINENO
1942# -----------------------
1943# Try to link conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_c_try_link ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1949case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1961 fi
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1969 }; then :
1970 ac_retval=0
1971else
1972 $as_echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976fi
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985} # ac_fn_c_try_link
1986
1987# ac_fn_c_check_func LINENO FUNC VAR
1988# ----------------------------------
1989# Tests whether FUNC exists, setting the cache variable VAR accordingly
1990ac_fn_c_check_func ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002#define $2 innocuous_$2
2003
2004/* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2008
2009#ifdef __STDC__
2010# include <limits.h>
2011#else
2012# include <assert.h>
2013#endif
2014
2015#undef $2
2016
2017/* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020#ifdef __cplusplus
2021extern "C"
2022#endif
2023char $2 ();
2024/* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027#if defined __stub_$2 || defined __stub___$2
2028choke me
2029#endif
2030
2031int
2032main ()
2033{
2034return $2 ();
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041else
2042 eval "$3=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_c_check_func
2053
2054# ac_fn_cxx_try_cpp LINENO
2055# ------------------------
2056# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057ac_fn_cxx_try_cpp ()
2058{
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2064esac
2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066$as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 ac_status=$?
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2073 fi
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i && {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2078 }; then :
2079 ac_retval=0
2080else
2081 $as_echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 ac_retval=1
2085fi
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2088
2089} # ac_fn_cxx_try_cpp
2090
2091# ac_fn_cxx_try_link LINENO
2092# -------------------------
2093# Try to link conftest.$ac_ext, and return whether this succeeded.
2094ac_fn_cxx_try_link ()
2095{
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext conftest$ac_exeext
2098 if { { ac_try="$ac_link"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104$as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_link") 2>conftest.err
2106 ac_status=$?
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2111 fi
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_cxx_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest$ac_exeext && {
2117 test "$cross_compiling" = yes ||
2118 test -x conftest$ac_exeext
2119 }; then :
2120 ac_retval=0
2121else
2122 $as_echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126fi
2127 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2128 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2129 # interfere with the next link command; also delete a directory that is
2130 # left behind by Apple's compiler. We do this before executing the actions.
2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2134
2135} # ac_fn_cxx_try_link
2136
2137# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2138# -------------------------------------------------------
2139# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2140# the include files in INCLUDES and setting the cache variable VAR
2141# accordingly.
2142ac_fn_c_check_header_mongrel ()
2143{
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if eval \${$3+:} false; then :
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147$as_echo_n "checking for $2... " >&6; }
2148if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150fi
2151eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153$as_echo "$ac_res" >&6; }
2154else
2155 # Is the header compilable?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2157$as_echo_n "checking $2 usability... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$4
2161#include <$2>
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_header_compiler=yes
2165else
2166 ac_header_compiler=no
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2170$as_echo "$ac_header_compiler" >&6; }
2171
2172# Is the header present?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2174$as_echo_n "checking $2 presence... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177#include <$2>
2178_ACEOF
2179if ac_fn_c_try_cpp "$LINENO"; then :
2180 ac_header_preproc=yes
2181else
2182 ac_header_preproc=no
2183fi
2184rm -f conftest.err conftest.i conftest.$ac_ext
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2186$as_echo "$ac_header_preproc" >&6; }
2187
2188# So? What about this header?
2189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2190 yes:no: )
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2192$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2195 ;;
2196 no:yes:* )
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2198$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2200$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2202$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2204$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 ;;
2208esac
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210$as_echo_n "checking for $2... " >&6; }
2211if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213else
2214 eval "$3=\$ac_header_compiler"
2215fi
2216eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218$as_echo "$ac_res" >&6; }
2219fi
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_header_mongrel
2223
2224# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2225# ---------------------------------------------------------
2226# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227# the include files in INCLUDES and setting the cache variable VAR
2228# accordingly.
2229ac_fn_cxx_check_header_mongrel ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if eval \${$3+:} false; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
2235if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241else
2242 # Is the header compilable?
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244$as_echo_n "checking $2 usability... " >&6; }
2245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h. */
2247$4
2248#include <$2>
2249_ACEOF
2250if ac_fn_cxx_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2252else
2253 ac_header_compiler=no
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257$as_echo "$ac_header_compiler" >&6; }
2258
2259# Is the header present?
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261$as_echo_n "checking $2 presence... " >&6; }
2262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264#include <$2>
2265_ACEOF
2266if ac_fn_cxx_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2268else
2269 ac_header_preproc=no
2270fi
2271rm -f conftest.err conftest.i conftest.$ac_ext
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273$as_echo "$ac_header_preproc" >&6; }
2274
2275# So? What about this header?
2276case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2277 yes:no: )
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282 ;;
2283 no:yes:* )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294 ;;
2295esac
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297$as_echo_n "checking for $2... " >&6; }
2298if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300else
2301 eval "$3=\$ac_header_compiler"
2302fi
2303eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306fi
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309} # ac_fn_cxx_check_header_mongrel
2310
2311# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2312# ---------------------------------------------
2313# Tests whether TYPE exists after having included INCLUDES, setting cache
2314# variable VAR accordingly.
2315ac_fn_cxx_check_type ()
2316{
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319$as_echo_n "checking for $2... " >&6; }
2320if eval \${$3+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322else
2323 eval "$3=no"
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h. */
2326$4
2327int
2328main ()
2329{
2330if (sizeof ($2))
2331 return 0;
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336if ac_fn_cxx_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h. */
2339$4
2340int
2341main ()
2342{
2343if (sizeof (($2)))
2344 return 0;
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349if ac_fn_cxx_try_compile "$LINENO"; then :
2350
2351else
2352 eval "$3=yes"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358eval ac_res=\$$3
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360$as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362
2363} # ac_fn_cxx_check_type
2364
2365# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366# -------------------------------------------
2367# Tests whether TYPE exists after having included INCLUDES, setting cache
2368# variable VAR accordingly.
2369ac_fn_c_check_type ()
2370{
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373$as_echo_n "checking for $2... " >&6; }
2374if eval \${$3+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376else
2377 eval "$3=no"
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381int
2382main ()
2383{
2384if (sizeof ($2))
2385 return 0;
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392/* end confdefs.h. */
2393$4
2394int
2395main ()
2396{
2397if (sizeof (($2)))
2398 return 0;
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404
2405else
2406 eval "$3=yes"
2407fi
2408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411fi
2412eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414$as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417} # ac_fn_c_check_type
2418cat >config.log <<_ACEOF
2419This file contains any messages produced by compilers while
2420running configure, to aid debugging if configure makes a mistake.
2421
Elliott Hughes0ea98832015-12-04 23:18:20 -08002422It was created by PCRE $as_me 8.38, which was
Nick Kralevichf73ff172014-09-27 12:41:49 -07002423generated by GNU Autoconf 2.69. Invocation command line was
2424
2425 $ $0 $@
2426
2427_ACEOF
2428exec 5>>config.log
2429{
2430cat <<_ASUNAME
2431## --------- ##
2432## Platform. ##
2433## --------- ##
2434
2435hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439uname -v = `(uname -v) 2>/dev/null || echo unknown`
2440
2441/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2443
2444/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2448/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451
2452_ASUNAME
2453
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2460 done
2461IFS=$as_save_IFS
2462
2463} >&5
2464
2465cat >&5 <<_ACEOF
2466
2467
2468## ----------- ##
2469## Core tests. ##
2470## ----------- ##
2471
2472_ACEOF
2473
2474
2475# Keep a trace of the command line.
2476# Strip out --no-create and --no-recursion so they do not pile up.
2477# Strip out --silent because we don't want to record it for future runs.
2478# Also quote any args containing shell meta-characters.
2479# Make two passes to allow for proper duplicate-argument suppression.
2480ac_configure_args=
2481ac_configure_args0=
2482ac_configure_args1=
2483ac_must_keep_next=false
2484for ac_pass in 1 2
2485do
2486 for ac_arg
2487 do
2488 case $ac_arg in
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2492 continue ;;
2493 *\'*)
2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 esac
2496 case $ac_pass in
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2498 2)
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2502 else
2503 case $ac_arg in
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510 esac
2511 ;;
2512 -* ) ac_must_keep_next=true ;;
2513 esac
2514 fi
2515 as_fn_append ac_configure_args " '$ac_arg'"
2516 ;;
2517 esac
2518 done
2519done
2520{ ac_configure_args0=; unset ac_configure_args0;}
2521{ ac_configure_args1=; unset ac_configure_args1;}
2522
2523# When interrupted or exit'd, cleanup temporary files, and complete
2524# config.log. We remove comments because anyway the quotes in there
2525# would cause problems or look ugly.
2526# WARNING: Use '\'' to represent an apostrophe within the trap.
2527# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2530 {
2531 echo
2532
2533 $as_echo "## ---------------- ##
2534## Cache variables. ##
2535## ---------------- ##"
2536 echo
2537 # The following way of writing the cache mishandles newlines in values,
2538(
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in #(
2542 *${as_nl}*)
2543 case $ac_var in #(
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546 esac
2547 case $ac_var in #(
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2551 esac ;;
2552 esac
2553 done
2554 (set) 2>&1 |
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2557 sed -n \
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 ;; #(
2561 *)
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563 ;;
2564 esac |
2565 sort
2566)
2567 echo
2568
2569 $as_echo "## ----------------- ##
2570## Output variables. ##
2571## ----------------- ##"
2572 echo
2573 for ac_var in $ac_subst_vars
2574 do
2575 eval ac_val=\$$ac_var
2576 case $ac_val in
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 esac
2579 $as_echo "$ac_var='\''$ac_val'\''"
2580 done | sort
2581 echo
2582
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585## File substitutions. ##
2586## ------------------- ##"
2587 echo
2588 for ac_var in $ac_subst_files
2589 do
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2597 fi
2598
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2601## confdefs.h. ##
2602## ----------- ##"
2603 echo
2604 cat confdefs.h
2605 echo
2606 fi
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2610 } >&5
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2613 exit $exit_status
2614' 0
2615for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617done
2618ac_signal=0
2619
2620# confdefs.h avoids OS command line length limits that DEFS can exceed.
2621rm -f -r conftest* confdefs.h
2622
2623$as_echo "/* confdefs.h */" > confdefs.h
2624
2625# Predefined preprocessor variables.
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE_NAME "$PACKAGE_NAME"
2629_ACEOF
2630
2631cat >>confdefs.h <<_ACEOF
2632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633_ACEOF
2634
2635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_VERSION "$PACKAGE_VERSION"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_STRING "$PACKAGE_STRING"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_URL "$PACKAGE_URL"
2649_ACEOF
2650
2651
2652# Let the site file select an alternate cache file if it wants to.
2653# Prefer an explicitly selected file to automatically selected ones.
2654ac_site_file1=NONE
2655ac_site_file2=NONE
2656if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2662 esac
2663elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2666else
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2669fi
2670for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2671do
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2677 . "$ac_site_file" \
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680as_fn_error $? "failed to load site script $ac_site_file
2681See \`config.log' for more details" "$LINENO" 5; }
2682 fi
2683done
2684
2685if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690$as_echo "$as_me: loading cache $cache_file" >&6;}
2691 case $cache_file in
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2694 esac
2695 fi
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698$as_echo "$as_me: creating cache $cache_file" >&6;}
2699 >$cache_file
2700fi
2701
2702# Check that the precious variables saved in the cache have kept the same
2703# value.
2704ac_cache_corrupted=false
2705for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2711 set,)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,set)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2719 ,);;
2720 *)
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2738 fi;;
2739 esac
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2742 case $ac_new_val in
2743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2745 esac
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2749 esac
2750 fi
2751done
2752if $ac_cache_corrupted; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2758fi
2759## -------------------- ##
2760## Main body of script. ##
2761## -------------------- ##
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769
2770
Elliott Hughes8366e8b2015-08-14 20:48:15 -07002771am__api_version='1.15'
Nick Kralevichf73ff172014-09-27 12:41:49 -07002772
2773ac_aux_dir=
2774for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2775 if test -f "$ac_dir/install-sh"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/install-sh -c"
2778 break
2779 elif test -f "$ac_dir/install.sh"; then
2780 ac_aux_dir=$ac_dir
2781 ac_install_sh="$ac_aux_dir/install.sh -c"
2782 break
2783 elif test -f "$ac_dir/shtool"; then
2784 ac_aux_dir=$ac_dir
2785 ac_install_sh="$ac_aux_dir/shtool install -c"
2786 break
2787 fi
2788done
2789if test -z "$ac_aux_dir"; then
2790 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2791fi
2792
2793# These three variables are undocumented and unsupported,
2794# and are intended to be withdrawn in a future Autoconf release.
2795# They can cause serious problems if a builder's source tree is in a directory
2796# whose full name contains unusual characters.
2797ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2798ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2799ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2800
2801
2802# Find a good install program. We prefer a C program (faster),
2803# so one script is as good as another. But avoid the broken or
2804# incompatible versions:
2805# SysV /etc/install, /usr/sbin/install
2806# SunOS /usr/etc/install
2807# IRIX /sbin/install
2808# AIX /bin/install
2809# AmigaOS /C/install, which installs bootblocks on floppy discs
2810# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813# OS/2's system install, which has a completely different semantic
2814# ./install, which can be erroneously created by make from ./install.sh.
2815# Reject install programs that cannot install multiple files.
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817$as_echo_n "checking for a BSD-compatible install... " >&6; }
2818if test -z "$INSTALL"; then
2819if ${ac_cv_path_install+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828case $as_dir/ in #((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 /usr/ucb/* ) ;;
2833 *)
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2843 :
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2847 :
2848 else
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2852 mkdir conftest.dir
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2857 then
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2859 break 3
2860 fi
2861 fi
2862 fi
2863 done
2864 done
2865 ;;
2866esac
2867
2868 done
2869IFS=$as_save_IFS
2870
2871rm -rf conftest.one conftest.two conftest.dir
2872
2873fi
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2882 fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885$as_echo "$INSTALL" >&6; }
2886
2887# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888# It thinks the first close brace ends the variable substitution.
2889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896$as_echo_n "checking whether build environment is sane... " >&6; }
2897# Reject unsafe characters in $srcdir or the absolute working directory
2898# name. Accept space and tab only in the latter.
2899am_lf='
2900'
2901case `pwd` in
2902 *[\\\"\#\$\&\'\`$am_lf]*)
2903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2904esac
2905case $srcdir in
2906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908esac
2909
2910# Do 'set' in a subshell so we don't clobber the current shell's
2911# arguments. Must try -L first in case configure is actually a
2912# symlink; some systems play weird games with the mod time of symlinks
2913# (eg FreeBSD returns the mod time of the symlink's containing
2914# directory).
2915if (
2916 am_has_slept=no
2917 for am_try in 1 2; do
2918 echo "timestamp, slept: $am_has_slept" > conftest.file
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2923 fi
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2926
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932 alias in your environment" "$LINENO" 5
2933 fi
2934 if test "$2" = conftest.file || test $am_try -eq 2; then
2935 break
2936 fi
2937 # Just in case.
2938 sleep 1
2939 am_has_slept=yes
2940 done
2941 test "$2" = conftest.file
2942 )
2943then
2944 # Ok.
2945 :
2946else
2947 as_fn_error $? "newly created file is older than distributed files!
2948Check your system clock" "$LINENO" 5
2949fi
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951$as_echo "yes" >&6; }
2952# If we didn't sleep, we still need to ensure time stamps of config.status and
2953# generated files are strictly newer.
2954am_sleep_pid=
2955if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2956 ( sleep 1 ) &
2957 am_sleep_pid=$!
2958fi
2959
2960rm -f conftest.file
2961
2962test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964# Use a double $ so make ignores it.
2965test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967# Double any \ or $.
2968# By default was `s,x,x', remove it if useless.
2969ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971
Elliott Hughes8366e8b2015-08-14 20:48:15 -07002972# Expand $ac_aux_dir to an absolute path.
2973am_aux_dir=`cd "$ac_aux_dir" && pwd`
Nick Kralevichf73ff172014-09-27 12:41:49 -07002974
2975if test x"${MISSING+set}" != xset; then
2976 case $am_aux_dir in
2977 *\ * | *\ *)
2978 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979 *)
2980 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2981 esac
2982fi
2983# Use eval to expand $SHELL
2984if eval "$MISSING --is-lightweight"; then
2985 am_missing_run="$MISSING "
2986else
2987 am_missing_run=
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2989$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2990fi
2991
Elliott Hughes8366e8b2015-08-14 20:48:15 -07002992if test x"${install_sh+set}" != xset; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07002993 case $am_aux_dir in
2994 *\ * | *\ *)
2995 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996 *)
2997 install_sh="\${SHELL} $am_aux_dir/install-sh"
2998 esac
2999fi
3000
3001# Installed binaries are usually stripped using 'strip' when the user
3002# run "make install-strip". However 'strip' might not be the right
3003# tool to use in cross-compilation environments, therefore Automake
3004# will honor the 'STRIP' environment variable to overrule this program.
3005if test "$cross_compiling" != no; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}strip; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_STRIP+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 if test -n "$STRIP"; then
3015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029 done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034STRIP=$ac_cv_prog_STRIP
3035if test -n "$STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3037$as_echo "$STRIP" >&6; }
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044fi
3045if test -z "$ac_cv_prog_STRIP"; then
3046 ac_ct_STRIP=$STRIP
3047 # Extract the first word of "strip", so it can be a program name with args.
3048set dummy strip; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053else
3054 if test -n "$ac_ct_STRIP"; then
3055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_STRIP="strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068done
3069 done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3075if test -n "$ac_ct_STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3077$as_echo "$ac_ct_STRIP" >&6; }
3078else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083 if test "x$ac_ct_STRIP" = x; then
3084 STRIP=":"
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087yes:)
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090ac_tool_warned=yes ;;
3091esac
3092 STRIP=$ac_ct_STRIP
3093 fi
3094else
3095 STRIP="$ac_cv_prog_STRIP"
3096fi
3097
3098fi
3099INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3100
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3102$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3103if test -z "$MKDIR_P"; then
3104 if ${ac_cv_path_mkdir+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_prog in mkdir gmkdir; do
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3116 'mkdir (GNU coreutils) '* | \
3117 'mkdir (coreutils) '* | \
3118 'mkdir (fileutils) '4.1*)
3119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3120 break 3;;
3121 esac
3122 done
3123 done
3124 done
3125IFS=$as_save_IFS
3126
3127fi
3128
3129 test -d ./--version && rmdir ./--version
3130 if test "${ac_cv_path_mkdir+set}" = set; then
3131 MKDIR_P="$ac_cv_path_mkdir -p"
3132 else
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for MKDIR_P within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 MKDIR_P="$ac_install_sh -d"
3138 fi
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3141$as_echo "$MKDIR_P" >&6; }
3142
3143for ac_prog in gawk mawk nawk awk
3144do
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148$as_echo_n "checking for $ac_word... " >&6; }
3149if ${ac_cv_prog_AWK+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151else
3152 if test -n "$AWK"; then
3153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_AWK="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166done
3167 done
3168IFS=$as_save_IFS
3169
3170fi
3171fi
3172AWK=$ac_cv_prog_AWK
3173if test -n "$AWK"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3175$as_echo "$AWK" >&6; }
3176else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179fi
3180
3181
3182 test -n "$AWK" && break
3183done
3184
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3186$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3187set x ${MAKE-make}
3188ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3189if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191else
3192 cat >conftest.make <<\_ACEOF
3193SHELL = /bin/sh
3194all:
3195 @echo '@@@%%%=$(MAKE)=@@@%%%'
3196_ACEOF
3197# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3198case `${MAKE-make} -f conftest.make 2>/dev/null` in
3199 *@@@%%%=?*=@@@%%%*)
3200 eval ac_cv_prog_make_${ac_make}_set=yes;;
3201 *)
3202 eval ac_cv_prog_make_${ac_make}_set=no;;
3203esac
3204rm -f conftest.make
3205fi
3206if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209 SET_MAKE=
3210else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213 SET_MAKE="MAKE=${MAKE-make}"
3214fi
3215
3216rm -rf .tst 2>/dev/null
3217mkdir .tst 2>/dev/null
3218if test -d .tst; then
3219 am__leading_dot=.
3220else
3221 am__leading_dot=_
3222fi
3223rmdir .tst 2>/dev/null
3224
3225# Check whether --enable-silent-rules was given.
3226if test "${enable_silent_rules+set}" = set; then :
3227 enableval=$enable_silent_rules;
3228fi
3229
3230case $enable_silent_rules in # (((
3231 yes) AM_DEFAULT_VERBOSITY=0;;
3232 no) AM_DEFAULT_VERBOSITY=1;;
3233 *) AM_DEFAULT_VERBOSITY=1;;
3234esac
3235am_make=${MAKE-make}
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3237$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3238if ${am_cv_make_support_nested_variables+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240else
3241 if $as_echo 'TRUE=$(BAR$(V))
3242BAR0=false
3243BAR1=true
3244V=1
3245am__doit:
3246 @$(TRUE)
3247.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3248 am_cv_make_support_nested_variables=yes
3249else
3250 am_cv_make_support_nested_variables=no
3251fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3254$as_echo "$am_cv_make_support_nested_variables" >&6; }
3255if test $am_cv_make_support_nested_variables = yes; then
3256 AM_V='$(V)'
3257 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3258else
3259 AM_V=$AM_DEFAULT_VERBOSITY
3260 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3261fi
3262AM_BACKSLASH='\'
3263
3264if test "`cd $srcdir && pwd`" != "`pwd`"; then
3265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3266 # is not polluted with repeated "-I."
3267 am__isrc=' -I$(srcdir)'
3268 # test to see if srcdir already configured
3269 if test -f $srcdir/config.status; then
3270 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3271 fi
3272fi
3273
3274# test whether we have cygpath
3275if test -z "$CYGPATH_W"; then
3276 if (cygpath --version) >/dev/null 2>/dev/null; then
3277 CYGPATH_W='cygpath -w'
3278 else
3279 CYGPATH_W=echo
3280 fi
3281fi
3282
3283
3284# Define the identity of the package.
3285 PACKAGE='pcre'
Elliott Hughes0ea98832015-12-04 23:18:20 -08003286 VERSION='8.38'
Nick Kralevichf73ff172014-09-27 12:41:49 -07003287
3288
3289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE "$PACKAGE"
3291_ACEOF
3292
3293
3294cat >>confdefs.h <<_ACEOF
3295#define VERSION "$VERSION"
3296_ACEOF
3297
3298# Some tools Automake needs.
3299
3300ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3301
3302
3303AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3304
3305
3306AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3307
3308
3309AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3310
3311
3312MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3313
3314# For better backward compatibility. To be removed once Automake 1.9.x
3315# dies out for good. For more background, see:
3316# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3317# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3318mkdir_p='$(MKDIR_P)'
3319
Elliott Hughes8366e8b2015-08-14 20:48:15 -07003320# We need awk for the "check" target (and possibly the TAP driver). The
3321# system "awk" is bad on some platforms.
Nick Kralevichf73ff172014-09-27 12:41:49 -07003322# Always define AMTAR for backward compatibility. Yes, it's still used
3323# in the wild :-( We should find a proper way to deprecate it ...
3324AMTAR='$${TAR-tar}'
3325
3326
3327# We'll loop over all known methods to create a tar archive until one works.
3328_am_tools='gnutar pax cpio none'
3329
3330am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3331
3332
3333
3334
3335
3336
3337# POSIX will say in a future version that running "rm -f" with no argument
3338# is OK; and we want to be able to make that assumption in our Makefile
3339# recipes. So use an aggressive probe to check that the usage we want is
3340# actually supported "in the wild" to an acceptable degree.
3341# See automake bug#10828.
3342# To make any issue more visible, cause the running configure to be aborted
3343# by default if the 'rm' program in use doesn't match our expectations; the
3344# user can still override this though.
3345if rm -f && rm -fr && rm -rf; then : OK; else
3346 cat >&2 <<'END'
3347Oops!
3348
3349Your 'rm' program seems unable to run without file operands specified
3350on the command line, even when the '-f' option is present. This is contrary
3351to the behaviour of most rm programs out there, and not conforming with
3352the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3353
3354Please tell bug-automake@gnu.org about your system, including the value
3355of your $PATH and any error possibly output before this message. This
3356can help us improve future automake versions.
3357
3358END
3359 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3360 echo 'Configuration will proceed anyway, since you have set the' >&2
3361 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3362 echo >&2
3363 else
3364 cat >&2 <<'END'
3365Aborting the configuration process, to ensure you take notice of the issue.
3366
3367You can download and install GNU coreutils to get an 'rm' implementation
3368that behaves properly: <http://www.gnu.org/software/coreutils/>.
3369
3370If you want to complete the configuration process using your problematic
3371'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3372to "yes", and re-run configure.
3373
3374END
3375 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3376 fi
3377fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -07003378
Nick Kralevichf73ff172014-09-27 12:41:49 -07003379# Check whether --enable-silent-rules was given.
3380if test "${enable_silent_rules+set}" = set; then :
3381 enableval=$enable_silent_rules;
3382fi
3383
3384case $enable_silent_rules in # (((
3385 yes) AM_DEFAULT_VERBOSITY=0;;
3386 no) AM_DEFAULT_VERBOSITY=1;;
3387 *) AM_DEFAULT_VERBOSITY=0;;
3388esac
3389am_make=${MAKE-make}
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3391$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3392if ${am_cv_make_support_nested_variables+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394else
3395 if $as_echo 'TRUE=$(BAR$(V))
3396BAR0=false
3397BAR1=true
3398V=1
3399am__doit:
3400 @$(TRUE)
3401.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3402 am_cv_make_support_nested_variables=yes
3403else
3404 am_cv_make_support_nested_variables=no
3405fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3408$as_echo "$am_cv_make_support_nested_variables" >&6; }
3409if test $am_cv_make_support_nested_variables = yes; then
3410 AM_V='$(V)'
3411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3412else
3413 AM_V=$AM_DEFAULT_VERBOSITY
3414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3415fi
3416AM_BACKSLASH='\'
3417
3418ac_config_headers="$ac_config_headers config.h"
3419
3420
3421# This is a new thing required to stop a warning from automake 1.12
3422DEPDIR="${am__leading_dot}deps"
3423
3424ac_config_commands="$ac_config_commands depfiles"
3425
3426
3427am_make=${MAKE-make}
3428cat > confinc << 'END'
3429am__doit:
3430 @echo this is the am__doit target
3431.PHONY: am__doit
3432END
3433# If we don't find an include directive, just comment out the code.
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3435$as_echo_n "checking for style of include used by $am_make... " >&6; }
3436am__include="#"
3437am__quote=
3438_am_result=none
3439# First try GNU make style include.
3440echo "include confinc" > confmf
3441# Ignore all kinds of additional output from 'make'.
3442case `$am_make -s -f confmf 2> /dev/null` in #(
3443*the\ am__doit\ target*)
3444 am__include=include
3445 am__quote=
3446 _am_result=GNU
3447 ;;
3448esac
3449# Now try BSD make style include.
3450if test "$am__include" = "#"; then
3451 echo '.include "confinc"' > confmf
3452 case `$am_make -s -f confmf 2> /dev/null` in #(
3453 *the\ am__doit\ target*)
3454 am__include=.include
3455 am__quote="\""
3456 _am_result=BSD
3457 ;;
3458 esac
3459fi
3460
3461
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3463$as_echo "$_am_result" >&6; }
3464rm -f confinc confmf
3465
3466# Check whether --enable-dependency-tracking was given.
3467if test "${enable_dependency_tracking+set}" = set; then :
3468 enableval=$enable_dependency_tracking;
3469fi
3470
3471if test "x$enable_dependency_tracking" != xno; then
3472 am_depcomp="$ac_aux_dir/depcomp"
3473 AMDEPBACKSLASH='\'
3474 am__nodep='_no'
3475fi
3476 if test "x$enable_dependency_tracking" != xno; then
3477 AMDEP_TRUE=
3478 AMDEP_FALSE='#'
3479else
3480 AMDEP_TRUE='#'
3481 AMDEP_FALSE=
3482fi
3483
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
3495if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512done
3513 done
3514IFS=$as_save_IFS
3515
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521$as_echo "$CC" >&6; }
3522else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
3528fi
3529if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532set dummy gcc; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552done
3553 done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561$as_echo "$ac_ct_CC" >&6; }
3562else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571yes:)
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574ac_tool_warned=yes ;;
3575esac
3576 CC=$ac_ct_CC
3577 fi
3578else
3579 CC="$ac_cv_prog_CC"
3580fi
3581
3582if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}cc; ac_word=$2
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587$as_echo_n "checking for $ac_word... " >&6; }
3588if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605done
3606 done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614$as_echo "$CC" >&6; }
3615else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620
3621 fi
3622fi
3623if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625set dummy cc; ac_word=$2
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627$as_echo_n "checking for $ac_word... " >&6; }
3628if ${ac_cv_prog_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633else
3634 ac_prog_rejected=no
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650done
3651 done
3652IFS=$as_save_IFS
3653
3654if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665fi
3666fi
3667fi
3668CC=$ac_cv_prog_CC
3669if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671$as_echo "$CC" >&6; }
3672else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
3687if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705 done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
3714else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722fi
3723if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728set dummy $ac_prog; ac_word=$2
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if ${ac_cv_prog_ac_ct_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748done
3749 done
3750IFS=$as_save_IFS
3751
3752fi
3753fi
3754ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757$as_echo "$ac_ct_CC" >&6; }
3758else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776 CC=$ac_ct_CC
3777 fi
3778fi
3779
3780fi
3781
3782
3783test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error $? "no acceptable C compiler found in \$PATH
3786See \`config.log' for more details" "$LINENO" 5; }
3787
3788# Provide some information about the compiler.
3789$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790set X $ac_compile
3791ac_compiler=$2
3792for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797esac
3798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799$as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 fi
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811done
3812
3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h. */
3815
3816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824ac_clean_files_save=$ac_clean_files
3825ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826# Try to create an executable without -o first, disregard a.out.
3827# It will help us diagnose broken compilers, and finding out an intuition
3828# of exeext.
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830$as_echo_n "checking whether the C compiler works... " >&6; }
3831ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833# The possible output files:
3834ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836ac_rmfiles=
3837for ac_file in $ac_files
3838do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843done
3844rm -f $ac_rmfiles
3845
3846if { { ac_try="$ac_link_default"
3847case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859# in a Makefile. We should not override ac_cv_exeext if it was cached,
3860# so that the user can short-circuit this test for compilers unknown to
3861# Autoconf.
3862for ac_file in $ac_files ''
3863do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886done
3887test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889else
3890 ac_file=''
3891fi
3892if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895$as_echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900as_fn_error 77 "C compiler cannot create executables
3901See \`config.log' for more details" "$LINENO" 5; }
3902else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904$as_echo "yes" >&6; }
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907$as_echo_n "checking for C compiler default output file name... " >&6; }
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3909$as_echo "$ac_file" >&6; }
3910ac_exeext=$ac_cv_exeext
3911
3912rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3915$as_echo_n "checking for suffix of executables... " >&6; }
3916if { { ac_try="$ac_link"
3917case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920esac
3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922$as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3928# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3929# work properly (i.e., refer to `conftest.exe'), while it won't with
3930# `rm'.
3931for ac_file in conftest.exe conftest conftest.*; do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 break;;
3937 * ) break;;
3938 esac
3939done
3940else
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3944See \`config.log' for more details" "$LINENO" 5; }
3945fi
3946rm -f conftest conftest$ac_cv_exeext
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3948$as_echo "$ac_cv_exeext" >&6; }
3949
3950rm -f conftest.$ac_ext
3951EXEEXT=$ac_cv_exeext
3952ac_exeext=$EXEEXT
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h. */
3955#include <stdio.h>
3956int
3957main ()
3958{
3959FILE *f = fopen ("conftest.out", "w");
3960 return ferror (f) || fclose (f) != 0;
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966ac_clean_files="$ac_clean_files conftest.out"
3967# Check that the compiler produces executables we can run. If not, either
3968# the compiler is broken, or we cross compile.
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3970$as_echo_n "checking whether we are cross compiling... " >&6; }
3971if test "$cross_compiling" != yes; then
3972 { { ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978$as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3983 if { ac_try='./conftest$ac_cv_exeext'
3984 { { case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987esac
3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989$as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; }; then
3994 cross_compiling=no
3995 else
3996 if test "$cross_compiling" = maybe; then
3997 cross_compiling=yes
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001as_fn_error $? "cannot run C compiled programs.
4002If you meant to cross compile, use \`--host'.
4003See \`config.log' for more details" "$LINENO" 5; }
4004 fi
4005 fi
4006fi
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4008$as_echo "$cross_compiling" >&6; }
4009
4010rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4011ac_clean_files=$ac_clean_files_save
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4013$as_echo_n "checking for suffix of object files... " >&6; }
4014if ${ac_cv_objext+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
4023
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028rm -f conftest.o conftest.obj
4029if { { ac_try="$ac_compile"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compile") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 for ac_file in conftest.o conftest.obj conftest.*; do
4041 test -f "$ac_file" || continue;
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4045 break;;
4046 esac
4047done
4048else
4049 $as_echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054as_fn_error $? "cannot compute suffix of object files: cannot compile
4055See \`config.log' for more details" "$LINENO" 5; }
4056fi
4057rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060$as_echo "$ac_cv_objext" >&6; }
4061OBJEXT=$ac_cv_objext
4062ac_objext=$OBJEXT
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4064$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4065if ${ac_cv_c_compiler_gnu+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h. */
4070
4071int
4072main ()
4073{
4074#ifndef __GNUC__
4075 choke me
4076#endif
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_compiler_gnu=yes
4084else
4085 ac_compiler_gnu=no
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093if test $ac_compiler_gnu = yes; then
4094 GCC=yes
4095else
4096 GCC=
4097fi
4098ac_test_CFLAGS=${CFLAGS+set}
4099ac_save_CFLAGS=$CFLAGS
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4101$as_echo_n "checking whether $CC accepts -g... " >&6; }
4102if ${ac_cv_prog_cc_g+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104else
4105 ac_save_c_werror_flag=$ac_c_werror_flag
4106 ac_c_werror_flag=yes
4107 ac_cv_prog_cc_g=no
4108 CFLAGS="-g"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h. */
4111
4112int
4113main ()
4114{
4115
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_g=yes
4122else
4123 CFLAGS=""
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_compile "$LINENO"; then :
4136
4137else
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 CFLAGS="-g"
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h. */
4142
4143int
4144main ()
4145{
4146
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_g=yes
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4162$as_echo "$ac_cv_prog_cc_g" >&6; }
4163if test "$ac_test_CFLAGS" = set; then
4164 CFLAGS=$ac_save_CFLAGS
4165elif test $ac_cv_prog_cc_g = yes; then
4166 if test "$GCC" = yes; then
4167 CFLAGS="-g -O2"
4168 else
4169 CFLAGS="-g"
4170 fi
4171else
4172 if test "$GCC" = yes; then
4173 CFLAGS="-O2"
4174 else
4175 CFLAGS=
4176 fi
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4179$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180if ${ac_cv_prog_cc_c89+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182else
4183 ac_cv_prog_cc_c89=no
4184ac_save_CC=$CC
4185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
4187#include <stdarg.h>
4188#include <stdio.h>
4189struct stat;
4190/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191struct buf { int x; };
4192FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193static char *e (p, i)
4194 char **p;
4195 int i;
4196{
4197 return p[i];
4198}
4199static char *f (char * (*g) (char **, int), char **p, ...)
4200{
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4207}
4208
4209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217
4218/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220#define FOO(x) 'x'
4221int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222
4223int test (int i, double x);
4224struct s1 {int (*f) (int a);};
4225struct s2 {int (*f) (double a);};
4226int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227int argc;
4228char **argv;
4229int
4230main ()
4231{
4232return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4243fi
4244rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246done
4247rm -f conftest.$ac_ext
4248CC=$ac_save_CC
4249
4250fi
4251# AC_CACHE_VAL
4252case "x$ac_cv_prog_cc_c89" in
4253 x)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255$as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258$as_echo "unsupported" >&6; } ;;
4259 *)
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263esac
4264if test "x$ac_cv_prog_cc_c89" != xno; then :
4265
4266fi
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274ac_ext=c
4275ac_cpp='$CPP $CPPFLAGS'
4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4280$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4281if ${am_cv_prog_cc_c_o+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h. */
4286
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295 # Make sure it works both with $CC and with simple cc.
4296 # Following AC_PROG_CC_C_O, we do the test twice because some
4297 # compilers refuse to overwrite an existing .o file with -o,
4298 # though they will create one.
4299 am_cv_prog_cc_c_o=yes
4300 for am_i in 1 2; do
4301 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } \
4306 && test -f conftest2.$ac_objext; then
4307 : OK
4308 else
4309 am_cv_prog_cc_c_o=no
4310 break
4311 fi
4312 done
4313 rm -f core conftest*
4314 unset am_i
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317$as_echo "$am_cv_prog_cc_c_o" >&6; }
4318if test "$am_cv_prog_cc_c_o" != yes; then
4319 # Losing compiler, so override with the script.
4320 # FIXME: It is wrong to rewrite CC.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__CC in this case,
4323 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324 CC="$am_aux_dir/compile $CC"
4325fi
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332
4333depcc="$CC" am_compiler_list=
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336$as_echo_n "checking dependency style of $depcc... " >&6; }
4337if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339else
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4345 # in D".
4346 rm -rf conftest.dir
4347 mkdir conftest.dir
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4351 cd conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4357 # directory.
4358 mkdir sub
4359
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4363 fi
4364 am__universal=false
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4367 esac
4368
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4373 #
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4377 : > sub/conftest.c
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4383 done
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4385
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4392 case $depmode in
4393 gcc)
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4396 ;;
4397 nosideeffect)
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4401 continue
4402 else
4403 break
4404 fi
4405 ;;
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4411 am__minus_obj=
4412 ;;
4413 none) break ;;
4414 esac
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4434 break
4435 fi
4436 fi
4437 done
4438
4439 cd ..
4440 rm -rf conftest.dir
4441else
4442 am_cv_CC_dependencies_compiler_type=none
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449
4450 if
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453 am__fastdepCC_TRUE=
4454 am__fastdepCC_FALSE='#'
4455else
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4458fi
4459
4460
4461
4462if test -n "$ac_tool_prefix"; then
4463 for ac_prog in ar lib "link -lib"
4464 do
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if ${ac_cv_prog_AR+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471else
4472 if test -n "$AR"; then
4473 ac_cv_prog_AR="$AR" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487 done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492AR=$ac_cv_prog_AR
4493if test -n "$AR"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4495$as_echo "$AR" >&6; }
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502 test -n "$AR" && break
4503 done
4504fi
4505if test -z "$AR"; then
4506 ac_ct_AR=$AR
4507 for ac_prog in ar lib "link -lib"
4508do
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510set dummy $ac_prog; ac_word=$2
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512$as_echo_n "checking for $ac_word... " >&6; }
4513if ${ac_cv_prog_ac_ct_AR+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515else
4516 if test -n "$ac_ct_AR"; then
4517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_AR="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530done
4531 done
4532IFS=$as_save_IFS
4533
4534fi
4535fi
4536ac_ct_AR=$ac_cv_prog_ac_ct_AR
4537if test -n "$ac_ct_AR"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4539$as_echo "$ac_ct_AR" >&6; }
4540else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545
4546 test -n "$ac_ct_AR" && break
4547done
4548
4549 if test "x$ac_ct_AR" = x; then
4550 AR="false"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553yes:)
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556ac_tool_warned=yes ;;
4557esac
4558 AR=$ac_ct_AR
4559 fi
4560fi
4561
4562: ${AR=ar}
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4565$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4566if ${am_cv_ar_interface+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575 am_cv_ar_interface=ar
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577/* end confdefs.h. */
4578int some_variable = 0;
4579_ACEOF
4580if ac_fn_c_try_compile "$LINENO"; then :
4581 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583 (eval $am_ar_try) 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if test "$ac_status" -eq 0; then
4588 am_cv_ar_interface=ar
4589 else
4590 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4592 (eval $am_ar_try) 2>&5
4593 ac_status=$?
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }
4596 if test "$ac_status" -eq 0; then
4597 am_cv_ar_interface=lib
4598 else
4599 am_cv_ar_interface=unknown
4600 fi
4601 fi
4602 rm -f conftest.lib libconftest.a
4603
4604fi
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4614$as_echo "$am_cv_ar_interface" >&6; }
4615
4616case $am_cv_ar_interface in
4617ar)
4618 ;;
4619lib)
4620 # Microsoft lib, so override with the ar-lib wrapper script.
4621 # FIXME: It is wrong to rewrite AR.
4622 # But if we don't then we get into trouble of one sort or another.
4623 # A longer-term fix would be to have automake use am__AR in this case,
4624 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4625 # similar.
4626 AR="$am_aux_dir/ar-lib $AR"
4627 ;;
4628unknown)
4629 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4630 ;;
4631esac
4632
4633
4634# This was added at the suggestion of libtoolize (03-Jan-10)
4635
4636
4637# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4638# "-g" for any other compiler. There doesn't seem to be a standard way of
4639# getting rid of the -g (which I don't think is needed for a production
4640# library). This fudge seems to achieve the necessary. First, we remember the
4641# externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4642# AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4643# set, they will be set to Autoconf's defaults. Afterwards, if the original
4644# values were not set, remove the -g from the Autoconf defaults.
4645# (PH 02-May-07)
4646
4647remember_set_CFLAGS="$CFLAGS"
4648remember_set_CXXFLAGS="$CXXFLAGS"
4649
4650ac_ext=c
4651ac_cpp='$CPP $CPPFLAGS'
4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4657set dummy ${ac_tool_prefix}gcc; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678 done
4679IFS=$as_save_IFS
4680
4681fi
4682fi
4683CC=$ac_cv_prog_CC
4684if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686$as_echo "$CC" >&6; }
4687else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693fi
4694if test -z "$ac_cv_prog_CC"; then
4695 ac_ct_CC=$CC
4696 # Extract the first word of "gcc", so it can be a program name with args.
4697set dummy gcc; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_prog_ac_ct_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 if test -n "$ac_ct_CC"; then
4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_CC="gcc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718 done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723ac_ct_CC=$ac_cv_prog_ac_ct_CC
4724if test -n "$ac_ct_CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4726$as_echo "$ac_ct_CC" >&6; }
4727else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730fi
4731
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 CC=$ac_ct_CC
4742 fi
4743else
4744 CC="$ac_cv_prog_CC"
4745fi
4746
4747if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4750set dummy ${ac_tool_prefix}cc; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_prog_CC+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}cc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770done
4771 done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776CC=$ac_cv_prog_CC
4777if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779$as_echo "$CC" >&6; }
4780else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785
4786 fi
4787fi
4788if test -z "$CC"; then
4789 # Extract the first word of "cc", so it can be a program name with args.
4790set dummy cc; ac_word=$2
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792$as_echo_n "checking for $ac_word... " >&6; }
4793if ${ac_cv_prog_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795else
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798else
4799 ac_prog_rejected=no
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4808 ac_prog_rejected=yes
4809 continue
4810 fi
4811 ac_cv_prog_CC="cc"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819if test $ac_prog_rejected = yes; then
4820 # We found a bogon in the path, so make sure we never use it.
4821 set dummy $ac_cv_prog_CC
4822 shift
4823 if test $# != 0; then
4824 # We chose a different compiler from the bogus one.
4825 # However, it has the same basename, so the bogon will be chosen
4826 # first if we set CC to just the basename; use the full file name.
4827 shift
4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4829 fi
4830fi
4831fi
4832fi
4833CC=$ac_cv_prog_CC
4834if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836$as_echo "$CC" >&6; }
4837else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843fi
4844if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
4847 do
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851$as_echo_n "checking for $ac_word... " >&6; }
4852if ${ac_cv_prog_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854else
4855 if test -n "$CC"; then
4856 ac_cv_prog_CC="$CC" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870 done
4871IFS=$as_save_IFS
4872
4873fi
4874fi
4875CC=$ac_cv_prog_CC
4876if test -n "$CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878$as_echo "$CC" >&6; }
4879else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881$as_echo "no" >&6; }
4882fi
4883
4884
4885 test -n "$CC" && break
4886 done
4887fi
4888if test -z "$CC"; then
4889 ac_ct_CC=$CC
4890 for ac_prog in cl.exe
4891do
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893set dummy $ac_prog; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CC="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913done
4914 done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922$as_echo "$ac_ct_CC" >&6; }
4923else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928
4929 test -n "$ac_ct_CC" && break
4930done
4931
4932 if test "x$ac_ct_CC" = x; then
4933 CC=""
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936yes:)
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939ac_tool_warned=yes ;;
4940esac
4941 CC=$ac_ct_CC
4942 fi
4943fi
4944
4945fi
4946
4947
4948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950as_fn_error $? "no acceptable C compiler found in \$PATH
4951See \`config.log' for more details" "$LINENO" 5; }
4952
4953# Provide some information about the compiler.
4954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4955set X $ac_compile
4956ac_compiler=$2
4957for ac_option in --version -v -V -qversion; do
4958 { { ac_try="$ac_compiler $ac_option >&5"
4959case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962esac
4963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4964$as_echo "$ac_try_echo"; } >&5
4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4966 ac_status=$?
4967 if test -s conftest.err; then
4968 sed '10a\
4969... rest of stderr output deleted ...
4970 10q' conftest.err >conftest.er1
4971 cat conftest.er1 >&5
4972 fi
4973 rm -f conftest.er1 conftest.err
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; }
4976done
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4979$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4980if ${ac_cv_c_compiler_gnu+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989#ifndef __GNUC__
4990 choke me
4991#endif
4992
4993 ;
4994 return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998 ac_compiler_gnu=yes
4999else
5000 ac_compiler_gnu=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003ac_cv_c_compiler_gnu=$ac_compiler_gnu
5004
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5007$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5008if test $ac_compiler_gnu = yes; then
5009 GCC=yes
5010else
5011 GCC=
5012fi
5013ac_test_CFLAGS=${CFLAGS+set}
5014ac_save_CFLAGS=$CFLAGS
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5016$as_echo_n "checking whether $CC accepts -g... " >&6; }
5017if ${ac_cv_prog_cc_g+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5022 ac_cv_prog_cc_g=no
5023 CFLAGS="-g"
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h. */
5026
5027int
5028main ()
5029{
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_prog_cc_g=yes
5037else
5038 CFLAGS=""
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h. */
5041
5042int
5043main ()
5044{
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051
5052else
5053 ac_c_werror_flag=$ac_save_c_werror_flag
5054 CFLAGS="-g"
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057
5058int
5059main ()
5060{
5061
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_prog_cc_g=yes
5068fi
5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070fi
5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072fi
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_c_werror_flag=$ac_save_c_werror_flag
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5077$as_echo "$ac_cv_prog_cc_g" >&6; }
5078if test "$ac_test_CFLAGS" = set; then
5079 CFLAGS=$ac_save_CFLAGS
5080elif test $ac_cv_prog_cc_g = yes; then
5081 if test "$GCC" = yes; then
5082 CFLAGS="-g -O2"
5083 else
5084 CFLAGS="-g"
5085 fi
5086else
5087 if test "$GCC" = yes; then
5088 CFLAGS="-O2"
5089 else
5090 CFLAGS=
5091 fi
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5094$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5095if ${ac_cv_prog_cc_c89+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 ac_cv_prog_cc_c89=no
5099ac_save_CC=$CC
5100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h. */
5102#include <stdarg.h>
5103#include <stdio.h>
5104struct stat;
5105/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5106struct buf { int x; };
5107FILE * (*rcsopen) (struct buf *, struct stat *, int);
5108static char *e (p, i)
5109 char **p;
5110 int i;
5111{
5112 return p[i];
5113}
5114static char *f (char * (*g) (char **, int), char **p, ...)
5115{
5116 char *s;
5117 va_list v;
5118 va_start (v,p);
5119 s = g (p, va_arg (v,int));
5120 va_end (v);
5121 return s;
5122}
5123
5124/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5125 function prototypes and stuff, but not '\xHH' hex character constants.
5126 These don't provoke an error unfortunately, instead are silently treated
5127 as 'x'. The following induces an error, until -std is added to get
5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5129 array size at least. It's necessary to write '\x00'==0 to get something
5130 that's true only with -std. */
5131int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5132
5133/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5134 inside strings and character constants. */
5135#define FOO(x) 'x'
5136int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5137
5138int test (int i, double x);
5139struct s1 {int (*f) (int a);};
5140struct s2 {int (*f) (double a);};
5141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5142int argc;
5143char **argv;
5144int
5145main ()
5146{
5147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5148 ;
5149 return 0;
5150}
5151_ACEOF
5152for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5154do
5155 CC="$ac_save_CC $ac_arg"
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157 ac_cv_prog_cc_c89=$ac_arg
5158fi
5159rm -f core conftest.err conftest.$ac_objext
5160 test "x$ac_cv_prog_cc_c89" != "xno" && break
5161done
5162rm -f conftest.$ac_ext
5163CC=$ac_save_CC
5164
5165fi
5166# AC_CACHE_VAL
5167case "x$ac_cv_prog_cc_c89" in
5168 x)
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5170$as_echo "none needed" >&6; } ;;
5171 xno)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5173$as_echo "unsupported" >&6; } ;;
5174 *)
5175 CC="$CC $ac_cv_prog_cc_c89"
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5177$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5178esac
5179if test "x$ac_cv_prog_cc_c89" != xno; then :
5180
5181fi
5182
5183ac_ext=c
5184ac_cpp='$CPP $CPPFLAGS'
5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188
5189ac_ext=c
5190ac_cpp='$CPP $CPPFLAGS'
5191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5195$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5196if ${am_cv_prog_cc_c_o+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h. */
5201
5202int
5203main ()
5204{
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
5210 # Make sure it works both with $CC and with simple cc.
5211 # Following AC_PROG_CC_C_O, we do the test twice because some
5212 # compilers refuse to overwrite an existing .o file with -o,
5213 # though they will create one.
5214 am_cv_prog_cc_c_o=yes
5215 for am_i in 1 2; do
5216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } \
5221 && test -f conftest2.$ac_objext; then
5222 : OK
5223 else
5224 am_cv_prog_cc_c_o=no
5225 break
5226 fi
5227 done
5228 rm -f core conftest*
5229 unset am_i
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5232$as_echo "$am_cv_prog_cc_c_o" >&6; }
5233if test "$am_cv_prog_cc_c_o" != yes; then
5234 # Losing compiler, so override with the script.
5235 # FIXME: It is wrong to rewrite CC.
5236 # But if we don't then we get into trouble of one sort or another.
5237 # A longer-term fix would be to have automake use am__CC in this case,
5238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5239 CC="$am_aux_dir/compile $CC"
5240fi
5241ac_ext=c
5242ac_cpp='$CPP $CPPFLAGS'
5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246
5247
5248depcc="$CC" am_compiler_list=
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5251$as_echo_n "checking dependency style of $depcc... " >&6; }
5252if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254else
5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5256 # We make a subdir and do the tests there. Otherwise we can end up
5257 # making bogus files that we don't know about and never remove. For
5258 # instance it was reported that on HP-UX the gcc test will end up
5259 # making a dummy file named 'D' -- because '-MD' means "put the output
5260 # in D".
5261 rm -rf conftest.dir
5262 mkdir conftest.dir
5263 # Copy depcomp to subdir because otherwise we won't find it if we're
5264 # using a relative directory.
5265 cp "$am_depcomp" conftest.dir
5266 cd conftest.dir
5267 # We will build objects and dependencies in a subdirectory because
5268 # it helps to detect inapplicable dependency modes. For instance
5269 # both Tru64's cc and ICC support -MD to output dependencies as a
5270 # side effect of compilation, but ICC will put the dependencies in
5271 # the current directory while Tru64 will put them in the object
5272 # directory.
5273 mkdir sub
5274
5275 am_cv_CC_dependencies_compiler_type=none
5276 if test "$am_compiler_list" = ""; then
5277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5278 fi
5279 am__universal=false
5280 case " $depcc " in #(
5281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5282 esac
5283
5284 for depmode in $am_compiler_list; do
5285 # Setup a source with many dependencies, because some compilers
5286 # like to wrap large dependency lists on column 80 (with \), and
5287 # we should not choose a depcomp mode which is confused by this.
5288 #
5289 # We need to recreate these files for each test, as the compiler may
5290 # overwrite some of them when testing with obscure command lines.
5291 # This happens at least with the AIX C compiler.
5292 : > sub/conftest.c
5293 for i in 1 2 3 4 5 6; do
5294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5295 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5296 # Solaris 10 /bin/sh.
5297 echo '/* dummy */' > sub/conftst$i.h
5298 done
5299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5300
5301 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5302 # mode. It turns out that the SunPro C++ compiler does not properly
5303 # handle '-M -o', and we need to detect this. Also, some Intel
5304 # versions had trouble with output in subdirs.
5305 am__obj=sub/conftest.${OBJEXT-o}
5306 am__minus_obj="-o $am__obj"
5307 case $depmode in
5308 gcc)
5309 # This depmode causes a compiler race in universal mode.
5310 test "$am__universal" = false || continue
5311 ;;
5312 nosideeffect)
5313 # After this tag, mechanisms are not by side-effect, so they'll
5314 # only be used when explicitly requested.
5315 if test "x$enable_dependency_tracking" = xyes; then
5316 continue
5317 else
5318 break
5319 fi
5320 ;;
5321 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5322 # This compiler won't grok '-c -o', but also, the minuso test has
5323 # not run yet. These depmodes are late enough in the game, and
5324 # so weak that their functioning should not be impacted.
5325 am__obj=conftest.${OBJEXT-o}
5326 am__minus_obj=
5327 ;;
5328 none) break ;;
5329 esac
5330 if depmode=$depmode \
5331 source=sub/conftest.c object=$am__obj \
5332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5334 >/dev/null 2>conftest.err &&
5335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5339 # icc doesn't choke on unknown options, it will just issue warnings
5340 # or remarks (even with -Werror). So we grep stderr for any message
5341 # that says an option was ignored or not supported.
5342 # When given -MP, icc 7.0 and 7.1 complain thusly:
5343 # icc: Command line warning: ignoring option '-M'; no argument required
5344 # The diagnosis changed in icc 8.0:
5345 # icc: Command line remark: option '-MP' not supported
5346 if (grep 'ignoring option' conftest.err ||
5347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5348 am_cv_CC_dependencies_compiler_type=$depmode
5349 break
5350 fi
5351 fi
5352 done
5353
5354 cd ..
5355 rm -rf conftest.dir
5356else
5357 am_cv_CC_dependencies_compiler_type=none
5358fi
5359
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5362$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5363CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5364
5365 if
5366 test "x$enable_dependency_tracking" != xno \
5367 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5368 am__fastdepCC_TRUE=
5369 am__fastdepCC_FALSE='#'
5370else
5371 am__fastdepCC_TRUE='#'
5372 am__fastdepCC_FALSE=
5373fi
5374
5375
5376ac_ext=cpp
5377ac_cpp='$CXXCPP $CPPFLAGS'
5378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5381if test -z "$CXX"; then
5382 if test -n "$CCC"; then
5383 CXX=$CCC
5384 else
5385 if test -n "$ac_tool_prefix"; then
5386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5387 do
5388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391$as_echo_n "checking for $ac_word... " >&6; }
5392if ${ac_cv_prog_CXX+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394else
5395 if test -n "$CXX"; then
5396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410 done
5411IFS=$as_save_IFS
5412
5413fi
5414fi
5415CXX=$ac_cv_prog_CXX
5416if test -n "$CXX"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5418$as_echo "$CXX" >&6; }
5419else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423
5424
5425 test -n "$CXX" && break
5426 done
5427fi
5428if test -z "$CXX"; then
5429 ac_ct_CXX=$CXX
5430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5431do
5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
5433set dummy $ac_prog; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438else
5439 if test -n "$ac_ct_CXX"; then
5440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_ac_ct_CXX="$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454 done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5460if test -n "$ac_ct_CXX"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5462$as_echo "$ac_ct_CXX" >&6; }
5463else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468
5469 test -n "$ac_ct_CXX" && break
5470done
5471
5472 if test "x$ac_ct_CXX" = x; then
5473 CXX="g++"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476yes:)
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481 CXX=$ac_ct_CXX
5482 fi
5483fi
5484
5485 fi
5486fi
5487# Provide some information about the compiler.
5488$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5489set X $ac_compile
5490ac_compiler=$2
5491for ac_option in --version -v -V -qversion; do
5492 { { ac_try="$ac_compiler $ac_option >&5"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498$as_echo "$ac_try_echo"; } >&5
5499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5500 ac_status=$?
5501 if test -s conftest.err; then
5502 sed '10a\
5503... rest of stderr output deleted ...
5504 10q' conftest.err >conftest.er1
5505 cat conftest.er1 >&5
5506 fi
5507 rm -f conftest.er1 conftest.err
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }
5510done
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5513$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5514if ${ac_cv_cxx_compiler_gnu+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h. */
5519
5520int
5521main ()
5522{
5523#ifndef __GNUC__
5524 choke me
5525#endif
5526
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531if ac_fn_cxx_try_compile "$LINENO"; then :
5532 ac_compiler_gnu=yes
5533else
5534 ac_compiler_gnu=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5538
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5541$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5542if test $ac_compiler_gnu = yes; then
5543 GXX=yes
5544else
5545 GXX=
5546fi
5547ac_test_CXXFLAGS=${CXXFLAGS+set}
5548ac_save_CXXFLAGS=$CXXFLAGS
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5550$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5551if ${ac_cv_prog_cxx_g+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5555 ac_cxx_werror_flag=yes
5556 ac_cv_prog_cxx_g=no
5557 CXXFLAGS="-g"
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h. */
5560
5561int
5562main ()
5563{
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569if ac_fn_cxx_try_compile "$LINENO"; then :
5570 ac_cv_prog_cxx_g=yes
5571else
5572 CXXFLAGS=""
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h. */
5575
5576int
5577main ()
5578{
5579
5580 ;
5581 return 0;
5582}
5583_ACEOF
5584if ac_fn_cxx_try_compile "$LINENO"; then :
5585
5586else
5587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5588 CXXFLAGS="-g"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h. */
5591
5592int
5593main ()
5594{
5595
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600if ac_fn_cxx_try_compile "$LINENO"; then :
5601 ac_cv_prog_cxx_g=yes
5602fi
5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606fi
5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5611$as_echo "$ac_cv_prog_cxx_g" >&6; }
5612if test "$ac_test_CXXFLAGS" = set; then
5613 CXXFLAGS=$ac_save_CXXFLAGS
5614elif test $ac_cv_prog_cxx_g = yes; then
5615 if test "$GXX" = yes; then
5616 CXXFLAGS="-g -O2"
5617 else
5618 CXXFLAGS="-g"
5619 fi
5620else
5621 if test "$GXX" = yes; then
5622 CXXFLAGS="-O2"
5623 else
5624 CXXFLAGS=
5625 fi
5626fi
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632
5633depcc="$CXX" am_compiler_list=
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5636$as_echo_n "checking dependency style of $depcc... " >&6; }
5637if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5641 # We make a subdir and do the tests there. Otherwise we can end up
5642 # making bogus files that we don't know about and never remove. For
5643 # instance it was reported that on HP-UX the gcc test will end up
5644 # making a dummy file named 'D' -- because '-MD' means "put the output
5645 # in D".
5646 rm -rf conftest.dir
5647 mkdir conftest.dir
5648 # Copy depcomp to subdir because otherwise we won't find it if we're
5649 # using a relative directory.
5650 cp "$am_depcomp" conftest.dir
5651 cd conftest.dir
5652 # We will build objects and dependencies in a subdirectory because
5653 # it helps to detect inapplicable dependency modes. For instance
5654 # both Tru64's cc and ICC support -MD to output dependencies as a
5655 # side effect of compilation, but ICC will put the dependencies in
5656 # the current directory while Tru64 will put them in the object
5657 # directory.
5658 mkdir sub
5659
5660 am_cv_CXX_dependencies_compiler_type=none
5661 if test "$am_compiler_list" = ""; then
5662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5663 fi
5664 am__universal=false
5665 case " $depcc " in #(
5666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5667 esac
5668
5669 for depmode in $am_compiler_list; do
5670 # Setup a source with many dependencies, because some compilers
5671 # like to wrap large dependency lists on column 80 (with \), and
5672 # we should not choose a depcomp mode which is confused by this.
5673 #
5674 # We need to recreate these files for each test, as the compiler may
5675 # overwrite some of them when testing with obscure command lines.
5676 # This happens at least with the AIX C compiler.
5677 : > sub/conftest.c
5678 for i in 1 2 3 4 5 6; do
5679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5680 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5681 # Solaris 10 /bin/sh.
5682 echo '/* dummy */' > sub/conftst$i.h
5683 done
5684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5685
5686 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5687 # mode. It turns out that the SunPro C++ compiler does not properly
5688 # handle '-M -o', and we need to detect this. Also, some Intel
5689 # versions had trouble with output in subdirs.
5690 am__obj=sub/conftest.${OBJEXT-o}
5691 am__minus_obj="-o $am__obj"
5692 case $depmode in
5693 gcc)
5694 # This depmode causes a compiler race in universal mode.
5695 test "$am__universal" = false || continue
5696 ;;
5697 nosideeffect)
5698 # After this tag, mechanisms are not by side-effect, so they'll
5699 # only be used when explicitly requested.
5700 if test "x$enable_dependency_tracking" = xyes; then
5701 continue
5702 else
5703 break
5704 fi
5705 ;;
5706 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5707 # This compiler won't grok '-c -o', but also, the minuso test has
5708 # not run yet. These depmodes are late enough in the game, and
5709 # so weak that their functioning should not be impacted.
5710 am__obj=conftest.${OBJEXT-o}
5711 am__minus_obj=
5712 ;;
5713 none) break ;;
5714 esac
5715 if depmode=$depmode \
5716 source=sub/conftest.c object=$am__obj \
5717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5719 >/dev/null 2>conftest.err &&
5720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5724 # icc doesn't choke on unknown options, it will just issue warnings
5725 # or remarks (even with -Werror). So we grep stderr for any message
5726 # that says an option was ignored or not supported.
5727 # When given -MP, icc 7.0 and 7.1 complain thusly:
5728 # icc: Command line warning: ignoring option '-M'; no argument required
5729 # The diagnosis changed in icc 8.0:
5730 # icc: Command line remark: option '-MP' not supported
5731 if (grep 'ignoring option' conftest.err ||
5732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5733 am_cv_CXX_dependencies_compiler_type=$depmode
5734 break
5735 fi
5736 fi
5737 done
5738
5739 cd ..
5740 rm -rf conftest.dir
5741else
5742 am_cv_CXX_dependencies_compiler_type=none
5743fi
5744
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5747$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5748CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5749
5750 if
5751 test "x$enable_dependency_tracking" != xno \
5752 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5753 am__fastdepCXX_TRUE=
5754 am__fastdepCXX_FALSE='#'
5755else
5756 am__fastdepCXX_TRUE='#'
5757 am__fastdepCXX_FALSE=
5758fi
5759
5760
5761
5762
5763if test "x$remember_set_CFLAGS" = "x"
5764then
5765 if test "$CFLAGS" = "-g -O2"
5766 then
5767 CFLAGS="-O2"
5768 elif test "$CFLAGS" = "-g"
5769 then
5770 CFLAGS=""
5771 fi
5772fi
5773
5774if test "x$remember_set_CXXFLAGS" = "x"
5775then
5776 if test "$CXXFLAGS" = "-g -O2"
5777 then
5778 CXXFLAGS="-O2"
5779 elif test "$CXXFLAGS" = "-g"
5780 then
5781 CXXFLAGS=""
5782 fi
5783fi
5784
5785# AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5786# Check for that case, and just disable c++ code if g++ doesn't run.
5787ac_ext=cpp
5788ac_cpp='$CXXCPP $CPPFLAGS'
5789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5792
5793
5794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h. */
5796
5797int
5798main ()
5799{
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805if ac_fn_cxx_try_compile "$LINENO"; then :
5806
5807else
5808 CXX=""; CXXCP=""; CXXFLAGS=""
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811ac_ext=c
5812ac_cpp='$CPP $CPPFLAGS'
5813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_c_compiler_gnu
5816
5817
5818# Check for a 64-bit integer type
5819ac_ext=c
5820ac_cpp='$CPP $CPPFLAGS'
5821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5825$as_echo_n "checking how to run the C preprocessor... " >&6; }
5826# On Suns, sometimes $CPP names a directory.
5827if test -n "$CPP" && test -d "$CPP"; then
5828 CPP=
5829fi
5830if test -z "$CPP"; then
5831 if ${ac_cv_prog_CPP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833else
5834 # Double quotes because CPP needs to be expanded
5835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5836 do
5837 ac_preproc_ok=false
5838for ac_c_preproc_warn_flag in '' yes
5839do
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843 # <limits.h> exists even on freestanding compilers.
5844 # On the NeXT, cc -E runs the code through the compiler's parser,
5845 # not just through cpp. "Syntax error" is here to catch this case.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#ifdef __STDC__
5849# include <limits.h>
5850#else
5851# include <assert.h>
5852#endif
5853 Syntax error
5854_ACEOF
5855if ac_fn_c_try_cpp "$LINENO"; then :
5856
5857else
5858 # Broken: fails on valid input.
5859continue
5860fi
5861rm -f conftest.err conftest.i conftest.$ac_ext
5862
5863 # OK, works on sane cases. Now check whether nonexistent headers
5864 # can be detected and how.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h. */
5867#include <ac_nonexistent.h>
5868_ACEOF
5869if ac_fn_c_try_cpp "$LINENO"; then :
5870 # Broken: success on invalid input.
5871continue
5872else
5873 # Passes both tests.
5874ac_preproc_ok=:
5875break
5876fi
5877rm -f conftest.err conftest.i conftest.$ac_ext
5878
5879done
5880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881rm -f conftest.i conftest.err conftest.$ac_ext
5882if $ac_preproc_ok; then :
5883 break
5884fi
5885
5886 done
5887 ac_cv_prog_CPP=$CPP
5888
5889fi
5890 CPP=$ac_cv_prog_CPP
5891else
5892 ac_cv_prog_CPP=$CPP
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5895$as_echo "$CPP" >&6; }
5896ac_preproc_ok=false
5897for ac_c_preproc_warn_flag in '' yes
5898do
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h. */
5907#ifdef __STDC__
5908# include <limits.h>
5909#else
5910# include <assert.h>
5911#endif
5912 Syntax error
5913_ACEOF
5914if ac_fn_c_try_cpp "$LINENO"; then :
5915
5916else
5917 # Broken: fails on valid input.
5918continue
5919fi
5920rm -f conftest.err conftest.i conftest.$ac_ext
5921
5922 # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h. */
5926#include <ac_nonexistent.h>
5927_ACEOF
5928if ac_fn_c_try_cpp "$LINENO"; then :
5929 # Broken: success on invalid input.
5930continue
5931else
5932 # Passes both tests.
5933ac_preproc_ok=:
5934break
5935fi
5936rm -f conftest.err conftest.i conftest.$ac_ext
5937
5938done
5939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940rm -f conftest.i conftest.err conftest.$ac_ext
5941if $ac_preproc_ok; then :
5942
5943else
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5947See \`config.log' for more details" "$LINENO" 5; }
5948fi
5949
5950ac_ext=c
5951ac_cpp='$CPP $CPPFLAGS'
5952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5958$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5959if ${ac_cv_path_GREP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961else
5962 if test -z "$GREP"; then
5963 ac_path_GREP_found=false
5964 # Loop through the user's path and test for each of PROGNAME-LIST
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_prog in grep ggrep; do
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5973 as_fn_executable_p "$ac_path_GREP" || continue
5974# Check for GNU ac_path_GREP and select it if it is found.
5975 # Check for GNU $ac_path_GREP
5976case `"$ac_path_GREP" --version 2>&1` in
5977*GNU*)
5978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5979*)
5980 ac_count=0
5981 $as_echo_n 0123456789 >"conftest.in"
5982 while :
5983 do
5984 cat "conftest.in" "conftest.in" >"conftest.tmp"
5985 mv "conftest.tmp" "conftest.in"
5986 cp "conftest.in" "conftest.nl"
5987 $as_echo 'GREP' >> "conftest.nl"
5988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990 as_fn_arith $ac_count + 1 && ac_count=$as_val
5991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5992 # Best one so far, save it but keep looking for a better one
5993 ac_cv_path_GREP="$ac_path_GREP"
5994 ac_path_GREP_max=$ac_count
5995 fi
5996 # 10*(2^10) chars as input seems more than enough
5997 test $ac_count -gt 10 && break
5998 done
5999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000esac
6001
6002 $ac_path_GREP_found && break 3
6003 done
6004 done
6005 done
6006IFS=$as_save_IFS
6007 if test -z "$ac_cv_path_GREP"; then
6008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6009 fi
6010else
6011 ac_cv_path_GREP=$GREP
6012fi
6013
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6016$as_echo "$ac_cv_path_GREP" >&6; }
6017 GREP="$ac_cv_path_GREP"
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6021$as_echo_n "checking for egrep... " >&6; }
6022if ${ac_cv_path_EGREP+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024else
6025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026 then ac_cv_path_EGREP="$GREP -E"
6027 else
6028 if test -z "$EGREP"; then
6029 ac_path_EGREP_found=false
6030 # Loop through the user's path and test for each of PROGNAME-LIST
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_prog in egrep; do
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6039 as_fn_executable_p "$ac_path_EGREP" || continue
6040# Check for GNU ac_path_EGREP and select it if it is found.
6041 # Check for GNU $ac_path_EGREP
6042case `"$ac_path_EGREP" --version 2>&1` in
6043*GNU*)
6044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6045*)
6046 ac_count=0
6047 $as_echo_n 0123456789 >"conftest.in"
6048 while :
6049 do
6050 cat "conftest.in" "conftest.in" >"conftest.tmp"
6051 mv "conftest.tmp" "conftest.in"
6052 cp "conftest.in" "conftest.nl"
6053 $as_echo 'EGREP' >> "conftest.nl"
6054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6056 as_fn_arith $ac_count + 1 && ac_count=$as_val
6057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6058 # Best one so far, save it but keep looking for a better one
6059 ac_cv_path_EGREP="$ac_path_EGREP"
6060 ac_path_EGREP_max=$ac_count
6061 fi
6062 # 10*(2^10) chars as input seems more than enough
6063 test $ac_count -gt 10 && break
6064 done
6065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6066esac
6067
6068 $ac_path_EGREP_found && break 3
6069 done
6070 done
6071 done
6072IFS=$as_save_IFS
6073 if test -z "$ac_cv_path_EGREP"; then
6074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6075 fi
6076else
6077 ac_cv_path_EGREP=$EGREP
6078fi
6079
6080 fi
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6083$as_echo "$ac_cv_path_EGREP" >&6; }
6084 EGREP="$ac_cv_path_EGREP"
6085
6086
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6088$as_echo_n "checking for ANSI C header files... " >&6; }
6089if ${ac_cv_header_stdc+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h. */
6094#include <stdlib.h>
6095#include <stdarg.h>
6096#include <string.h>
6097#include <float.h>
6098
6099int
6100main ()
6101{
6102
6103 ;
6104 return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"; then :
6108 ac_cv_header_stdc=yes
6109else
6110 ac_cv_header_stdc=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113
6114if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h. */
6118#include <string.h>
6119
6120_ACEOF
6121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "memchr" >/dev/null 2>&1; then :
6123
6124else
6125 ac_cv_header_stdc=no
6126fi
6127rm -f conftest*
6128
6129fi
6130
6131if test $ac_cv_header_stdc = yes; then
6132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h. */
6135#include <stdlib.h>
6136
6137_ACEOF
6138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 $EGREP "free" >/dev/null 2>&1; then :
6140
6141else
6142 ac_cv_header_stdc=no
6143fi
6144rm -f conftest*
6145
6146fi
6147
6148if test $ac_cv_header_stdc = yes; then
6149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6150 if test "$cross_compiling" = yes; then :
6151 :
6152else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h. */
6155#include <ctype.h>
6156#include <stdlib.h>
6157#if ((' ' & 0x0FF) == 0x020)
6158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6160#else
6161# define ISLOWER(c) \
6162 (('a' <= (c) && (c) <= 'i') \
6163 || ('j' <= (c) && (c) <= 'r') \
6164 || ('s' <= (c) && (c) <= 'z'))
6165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6166#endif
6167
6168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6169int
6170main ()
6171{
6172 int i;
6173 for (i = 0; i < 256; i++)
6174 if (XOR (islower (i), ISLOWER (i))
6175 || toupper (i) != TOUPPER (i))
6176 return 2;
6177 return 0;
6178}
6179_ACEOF
6180if ac_fn_c_try_run "$LINENO"; then :
6181
6182else
6183 ac_cv_header_stdc=no
6184fi
6185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6186 conftest.$ac_objext conftest.beam conftest.$ac_ext
6187fi
6188
6189fi
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6192$as_echo "$ac_cv_header_stdc" >&6; }
6193if test $ac_cv_header_stdc = yes; then
6194
6195$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6196
6197fi
6198
6199# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6200for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6201 inttypes.h stdint.h unistd.h
6202do :
6203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6205"
6206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6207 cat >>confdefs.h <<_ACEOF
6208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209_ACEOF
6210
6211fi
6212
6213done
6214
6215
6216ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6217case $ac_cv_c_int64_t in #(
6218 no|yes) ;; #(
6219 *)
6220
6221cat >>confdefs.h <<_ACEOF
6222#define int64_t $ac_cv_c_int64_t
6223_ACEOF
6224;;
6225esac
6226
6227
6228
6229# Make sure we can run config.sub.
6230$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6231 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6234$as_echo_n "checking build system type... " >&6; }
6235if ${ac_cv_build+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237else
6238 ac_build_alias=$build_alias
6239test "x$ac_build_alias" = x &&
6240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6241test "x$ac_build_alias" = x &&
6242 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6243ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6244 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6245
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6248$as_echo "$ac_cv_build" >&6; }
6249case $ac_cv_build in
6250*-*-*) ;;
6251*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6252esac
6253build=$ac_cv_build
6254ac_save_IFS=$IFS; IFS='-'
6255set x $ac_cv_build
6256shift
6257build_cpu=$1
6258build_vendor=$2
6259shift; shift
6260# Remember, the first character of IFS is used to create $*,
6261# except with old shells:
6262build_os=$*
6263IFS=$ac_save_IFS
6264case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6265
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6268$as_echo_n "checking host system type... " >&6; }
6269if ${ac_cv_host+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271else
6272 if test "x$host_alias" = x; then
6273 ac_cv_host=$ac_cv_build
6274else
6275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6277fi
6278
6279fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6281$as_echo "$ac_cv_host" >&6; }
6282case $ac_cv_host in
6283*-*-*) ;;
6284*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6285esac
6286host=$ac_cv_host
6287ac_save_IFS=$IFS; IFS='-'
6288set x $ac_cv_host
6289shift
6290host_cpu=$1
6291host_vendor=$2
6292shift; shift
6293# Remember, the first character of IFS is used to create $*,
6294# except with old shells:
6295host_os=$*
6296IFS=$ac_save_IFS
6297case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6298
6299
6300enable_win32_dll=yes
6301
6302case $host in
6303*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}as; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_AS+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311else
6312 if test -n "$AS"; then
6313 ac_cv_prog_AS="$AS" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AS="${ac_tool_prefix}as"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326done
6327 done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332AS=$ac_cv_prog_AS
6333if test -n "$AS"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6335$as_echo "$AS" >&6; }
6336else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342fi
6343if test -z "$ac_cv_prog_AS"; then
6344 ac_ct_AS=$AS
6345 # Extract the first word of "as", so it can be a program name with args.
6346set dummy as; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_ac_ct_AS+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351else
6352 if test -n "$ac_ct_AS"; then
6353 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_AS="as"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372ac_ct_AS=$ac_cv_prog_ac_ct_AS
6373if test -n "$ac_ct_AS"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6375$as_echo "$ac_ct_AS" >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381 if test "x$ac_ct_AS" = x; then
6382 AS="false"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390 AS=$ac_ct_AS
6391 fi
6392else
6393 AS="$ac_cv_prog_AS"
6394fi
6395
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6398set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
6401if ${ac_cv_prog_DLLTOOL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403else
6404 if test -n "$DLLTOOL"; then
6405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419 done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424DLLTOOL=$ac_cv_prog_DLLTOOL
6425if test -n "$DLLTOOL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6427$as_echo "$DLLTOOL" >&6; }
6428else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433
6434fi
6435if test -z "$ac_cv_prog_DLLTOOL"; then
6436 ac_ct_DLLTOOL=$DLLTOOL
6437 # Extract the first word of "dlltool", so it can be a program name with args.
6438set dummy dlltool; ac_word=$2
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443else
6444 if test -n "$ac_ct_DLLTOOL"; then
6445 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459 done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
6464ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6465if test -n "$ac_ct_DLLTOOL"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6467$as_echo "$ac_ct_DLLTOOL" >&6; }
6468else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
6473 if test "x$ac_ct_DLLTOOL" = x; then
6474 DLLTOOL="false"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477yes:)
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480ac_tool_warned=yes ;;
6481esac
6482 DLLTOOL=$ac_ct_DLLTOOL
6483 fi
6484else
6485 DLLTOOL="$ac_cv_prog_DLLTOOL"
6486fi
6487
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6490set dummy ${ac_tool_prefix}objdump; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if ${ac_cv_prog_OBJDUMP+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495else
6496 if test -n "$OBJDUMP"; then
6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510done
6511 done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516OBJDUMP=$ac_cv_prog_OBJDUMP
6517if test -n "$OBJDUMP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6519$as_echo "$OBJDUMP" >&6; }
6520else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525
6526fi
6527if test -z "$ac_cv_prog_OBJDUMP"; then
6528 ac_ct_OBJDUMP=$OBJDUMP
6529 # Extract the first word of "objdump", so it can be a program name with args.
6530set dummy objdump; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
6533if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535else
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551 done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6557if test -n "$ac_ct_OBJDUMP"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6559$as_echo "$ac_ct_OBJDUMP" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565 if test "x$ac_ct_OBJDUMP" = x; then
6566 OBJDUMP="false"
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569yes:)
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574 OBJDUMP=$ac_ct_OBJDUMP
6575 fi
6576else
6577 OBJDUMP="$ac_cv_prog_OBJDUMP"
6578fi
6579
6580 ;;
6581esac
6582
6583test -z "$AS" && AS=as
6584
6585
6586
6587
6588
6589test -z "$DLLTOOL" && DLLTOOL=dlltool
6590
6591
6592
6593
6594
6595test -z "$OBJDUMP" && OBJDUMP=objdump
6596
6597
6598
6599
6600
6601
6602
6603case `pwd` in
6604 *\ * | *\ *)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6606$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6607esac
6608
6609
6610
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006611macro_version='2.4.6'
6612macro_revision='2.4.6'
Nick Kralevichf73ff172014-09-27 12:41:49 -07006613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006626ltmain=$ac_aux_dir/ltmain.sh
Nick Kralevichf73ff172014-09-27 12:41:49 -07006627
6628# Backslashify metacharacters that are still active within
6629# double-quoted strings.
6630sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6631
6632# Same as above, but do not quote variable references.
6633double_quote_subst='s/\(["`\\]\)/\\\1/g'
6634
6635# Sed substitution to delay expansion of an escaped shell variable in a
6636# double_quote_subst'ed string.
6637delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6638
6639# Sed substitution to delay expansion of an escaped single quote.
6640delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6641
6642# Sed substitution to avoid accidental globbing in evaled expressions
6643no_glob_subst='s/\*/\\\*/g'
6644
6645ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6646ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6647ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6648
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6650$as_echo_n "checking how to print strings... " >&6; }
6651# Test print first, because it will be a builtin if present.
6652if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6654 ECHO='print -r --'
6655elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6656 ECHO='printf %s\n'
6657else
6658 # Use this function as a fallback that always works.
6659 func_fallback_echo ()
6660 {
6661 eval 'cat <<_LTECHO_EOF
6662$1
6663_LTECHO_EOF'
6664 }
6665 ECHO='func_fallback_echo'
6666fi
6667
6668# func_echo_all arg...
6669# Invoke $ECHO with all args, space-separated.
6670func_echo_all ()
6671{
6672 $ECHO ""
6673}
6674
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006675case $ECHO in
Nick Kralevichf73ff172014-09-27 12:41:49 -07006676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6677$as_echo "printf" >&6; } ;;
6678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6679$as_echo "print -r" >&6; } ;;
6680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6681$as_echo "cat" >&6; } ;;
6682esac
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6698$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6699if ${ac_cv_path_SED+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6703 for ac_i in 1 2 3 4 5 6 7; do
6704 ac_script="$ac_script$as_nl$ac_script"
6705 done
6706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6707 { ac_script=; unset ac_script;}
6708 if test -z "$SED"; then
6709 ac_path_SED_found=false
6710 # Loop through the user's path and test for each of PROGNAME-LIST
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_prog in sed gsed; do
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6719 as_fn_executable_p "$ac_path_SED" || continue
6720# Check for GNU ac_path_SED and select it if it is found.
6721 # Check for GNU $ac_path_SED
6722case `"$ac_path_SED" --version 2>&1` in
6723*GNU*)
6724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6725*)
6726 ac_count=0
6727 $as_echo_n 0123456789 >"conftest.in"
6728 while :
6729 do
6730 cat "conftest.in" "conftest.in" >"conftest.tmp"
6731 mv "conftest.tmp" "conftest.in"
6732 cp "conftest.in" "conftest.nl"
6733 $as_echo '' >> "conftest.nl"
6734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6736 as_fn_arith $ac_count + 1 && ac_count=$as_val
6737 if test $ac_count -gt ${ac_path_SED_max-0}; then
6738 # Best one so far, save it but keep looking for a better one
6739 ac_cv_path_SED="$ac_path_SED"
6740 ac_path_SED_max=$ac_count
6741 fi
6742 # 10*(2^10) chars as input seems more than enough
6743 test $ac_count -gt 10 && break
6744 done
6745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6746esac
6747
6748 $ac_path_SED_found && break 3
6749 done
6750 done
6751 done
6752IFS=$as_save_IFS
6753 if test -z "$ac_cv_path_SED"; then
6754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6755 fi
6756else
6757 ac_cv_path_SED=$SED
6758fi
6759
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6762$as_echo "$ac_cv_path_SED" >&6; }
6763 SED="$ac_cv_path_SED"
6764 rm -f conftest.sed
6765
6766test -z "$SED" && SED=sed
6767Xsed="$SED -e 1s/^X//"
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6780$as_echo_n "checking for fgrep... " >&6; }
6781if ${ac_cv_path_FGREP+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6785 then ac_cv_path_FGREP="$GREP -F"
6786 else
6787 if test -z "$FGREP"; then
6788 ac_path_FGREP_found=false
6789 # Loop through the user's path and test for each of PROGNAME-LIST
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_prog in fgrep; do
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6798 as_fn_executable_p "$ac_path_FGREP" || continue
6799# Check for GNU ac_path_FGREP and select it if it is found.
6800 # Check for GNU $ac_path_FGREP
6801case `"$ac_path_FGREP" --version 2>&1` in
6802*GNU*)
6803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6804*)
6805 ac_count=0
6806 $as_echo_n 0123456789 >"conftest.in"
6807 while :
6808 do
6809 cat "conftest.in" "conftest.in" >"conftest.tmp"
6810 mv "conftest.tmp" "conftest.in"
6811 cp "conftest.in" "conftest.nl"
6812 $as_echo 'FGREP' >> "conftest.nl"
6813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6815 as_fn_arith $ac_count + 1 && ac_count=$as_val
6816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6817 # Best one so far, save it but keep looking for a better one
6818 ac_cv_path_FGREP="$ac_path_FGREP"
6819 ac_path_FGREP_max=$ac_count
6820 fi
6821 # 10*(2^10) chars as input seems more than enough
6822 test $ac_count -gt 10 && break
6823 done
6824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6825esac
6826
6827 $ac_path_FGREP_found && break 3
6828 done
6829 done
6830 done
6831IFS=$as_save_IFS
6832 if test -z "$ac_cv_path_FGREP"; then
6833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6834 fi
6835else
6836 ac_cv_path_FGREP=$FGREP
6837fi
6838
6839 fi
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6842$as_echo "$ac_cv_path_FGREP" >&6; }
6843 FGREP="$ac_cv_path_FGREP"
6844
6845
6846test -z "$GREP" && GREP=grep
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866# Check whether --with-gnu-ld was given.
6867if test "${with_gnu_ld+set}" = set; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006868 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -07006869else
6870 with_gnu_ld=no
6871fi
6872
6873ac_prog=ld
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006874if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07006875 # Check if gcc -print-prog-name=ld gives a path.
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6877$as_echo_n "checking for ld used by $CC... " >&6; }
6878 case $host in
6879 *-*-mingw*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006880 # gcc leaves a trailing carriage return, which upsets mingw
Nick Kralevichf73ff172014-09-27 12:41:49 -07006881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6882 *)
6883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6884 esac
6885 case $ac_prog in
6886 # Accept absolute paths.
6887 [\\/]* | ?:[\\/]*)
6888 re_direlt='/[^/][^/]*/\.\./'
6889 # Canonicalize the pathname of ld
6890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6893 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006894 test -z "$LD" && LD=$ac_prog
Nick Kralevichf73ff172014-09-27 12:41:49 -07006895 ;;
6896 "")
6897 # If it fails, then pretend we aren't using GCC.
6898 ac_prog=ld
6899 ;;
6900 *)
6901 # If it is relative, then search for the first ld in PATH.
6902 with_gnu_ld=unknown
6903 ;;
6904 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006905elif test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07006906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6907$as_echo_n "checking for GNU ld... " >&6; }
6908else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6910$as_echo_n "checking for non-GNU ld... " >&6; }
6911fi
6912if ${lt_cv_path_LD+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914else
6915 if test -z "$LD"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006916 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Nick Kralevichf73ff172014-09-27 12:41:49 -07006917 for ac_dir in $PATH; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006918 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07006919 test -z "$ac_dir" && ac_dir=.
6920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006921 lt_cv_path_LD=$ac_dir/$ac_prog
Nick Kralevichf73ff172014-09-27 12:41:49 -07006922 # Check to see if the program is GNU ld. I'd rather use --version,
6923 # but apparently some variants of GNU ld only accept -v.
6924 # Break only if it was the GNU/non-GNU ld that we prefer.
6925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6926 *GNU* | *'with BFD'*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006927 test no != "$with_gnu_ld" && break
Nick Kralevichf73ff172014-09-27 12:41:49 -07006928 ;;
6929 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006930 test yes != "$with_gnu_ld" && break
Nick Kralevichf73ff172014-09-27 12:41:49 -07006931 ;;
6932 esac
6933 fi
6934 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006935 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07006936else
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006937 lt_cv_path_LD=$LD # Let the user override the test with a path.
Nick Kralevichf73ff172014-09-27 12:41:49 -07006938fi
6939fi
6940
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006941LD=$lt_cv_path_LD
Nick Kralevichf73ff172014-09-27 12:41:49 -07006942if test -n "$LD"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6944$as_echo "$LD" >&6; }
6945else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6951$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6952if ${lt_cv_prog_gnu_ld+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954else
6955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6956case `$LD -v 2>&1 </dev/null` in
6957*GNU* | *'with BFD'*)
6958 lt_cv_prog_gnu_ld=yes
6959 ;;
6960*)
6961 lt_cv_prog_gnu_ld=no
6962 ;;
6963esac
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6966$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6967with_gnu_ld=$lt_cv_prog_gnu_ld
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6978$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6979if ${lt_cv_path_NM+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981else
6982 if test -n "$NM"; then
6983 # Let the user override the test.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006984 lt_cv_path_NM=$NM
Nick Kralevichf73ff172014-09-27 12:41:49 -07006985else
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006986 lt_nm_to_check=${ac_tool_prefix}nm
Nick Kralevichf73ff172014-09-27 12:41:49 -07006987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6988 lt_nm_to_check="$lt_nm_to_check nm"
6989 fi
6990 for lt_tmp_nm in $lt_nm_to_check; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Nick Kralevichf73ff172014-09-27 12:41:49 -07006992 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006993 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07006994 test -z "$ac_dir" && ac_dir=.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006995 tmp_nm=$ac_dir/$lt_tmp_nm
6996 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07006997 # Check to see if the nm accepts a BSD-compat flag.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07006998 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Nick Kralevichf73ff172014-09-27 12:41:49 -07006999 # nm: unknown option "B" ignored
7000 # Tru64's nm complains that /dev/null is an invalid object file
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007001 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7002 case $build_os in
7003 mingw*) lt_bad_file=conftest.nm/nofile ;;
7004 *) lt_bad_file=/dev/null ;;
7005 esac
7006 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7007 *$lt_bad_file* | *'Invalid file or object type'*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07007008 lt_cv_path_NM="$tmp_nm -B"
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007009 break 2
Nick Kralevichf73ff172014-09-27 12:41:49 -07007010 ;;
7011 *)
7012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7013 */dev/null*)
7014 lt_cv_path_NM="$tmp_nm -p"
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007015 break 2
Nick Kralevichf73ff172014-09-27 12:41:49 -07007016 ;;
7017 *)
7018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7019 continue # so that we can try to find one that supports BSD flags
7020 ;;
7021 esac
7022 ;;
7023 esac
7024 fi
7025 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007026 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07007027 done
7028 : ${lt_cv_path_NM=no}
7029fi
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7032$as_echo "$lt_cv_path_NM" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007033if test no != "$lt_cv_path_NM"; then
7034 NM=$lt_cv_path_NM
Nick Kralevichf73ff172014-09-27 12:41:49 -07007035else
7036 # Didn't find any BSD compatible name lister, look for dumpbin.
7037 if test -n "$DUMPBIN"; then :
7038 # Let the user override the test.
7039 else
7040 if test -n "$ac_tool_prefix"; then
7041 for ac_prog in dumpbin "link -dump"
7042 do
7043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if ${ac_cv_prog_DUMPBIN+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test -n "$DUMPBIN"; then
7051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065 done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070DUMPBIN=$ac_cv_prog_DUMPBIN
7071if test -n "$DUMPBIN"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7073$as_echo "$DUMPBIN" >&6; }
7074else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080 test -n "$DUMPBIN" && break
7081 done
7082fi
7083if test -z "$DUMPBIN"; then
7084 ac_ct_DUMPBIN=$DUMPBIN
7085 for ac_prog in dumpbin "link -dump"
7086do
7087 # Extract the first word of "$ac_prog", so it can be a program name with args.
7088set dummy $ac_prog; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093else
7094 if test -n "$ac_ct_DUMPBIN"; then
7095 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109 done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7115if test -n "$ac_ct_DUMPBIN"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7117$as_echo "$ac_ct_DUMPBIN" >&6; }
7118else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124 test -n "$ac_ct_DUMPBIN" && break
7125done
7126
7127 if test "x$ac_ct_DUMPBIN" = x; then
7128 DUMPBIN=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131yes:)
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134ac_tool_warned=yes ;;
7135esac
7136 DUMPBIN=$ac_ct_DUMPBIN
7137 fi
7138fi
7139
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007140 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Nick Kralevichf73ff172014-09-27 12:41:49 -07007141 *COFF*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007142 DUMPBIN="$DUMPBIN -symbols -headers"
Nick Kralevichf73ff172014-09-27 12:41:49 -07007143 ;;
7144 *)
7145 DUMPBIN=:
7146 ;;
7147 esac
7148 fi
7149
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007150 if test : != "$DUMPBIN"; then
7151 NM=$DUMPBIN
Nick Kralevichf73ff172014-09-27 12:41:49 -07007152 fi
7153fi
7154test -z "$NM" && NM=nm
7155
7156
7157
7158
7159
7160
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7162$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7163if ${lt_cv_nm_interface+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165else
7166 lt_cv_nm_interface="BSD nm"
7167 echo "int some_variable = 0;" > conftest.$ac_ext
7168 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7169 (eval "$ac_compile" 2>conftest.err)
7170 cat conftest.err >&5
7171 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7172 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7173 cat conftest.err >&5
7174 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7175 cat conftest.out >&5
7176 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7177 lt_cv_nm_interface="MS dumpbin"
7178 fi
7179 rm -f conftest*
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7182$as_echo "$lt_cv_nm_interface" >&6; }
7183
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7185$as_echo_n "checking whether ln -s works... " >&6; }
7186LN_S=$as_ln_s
7187if test "$LN_S" = "ln -s"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189$as_echo "yes" >&6; }
7190else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7192$as_echo "no, using $LN_S" >&6; }
7193fi
7194
7195# find the maximum length of command line arguments
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7197$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7198if ${lt_cv_sys_max_cmd_len+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200else
7201 i=0
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007202 teststring=ABCD
Nick Kralevichf73ff172014-09-27 12:41:49 -07007203
7204 case $build_os in
7205 msdosdjgpp*)
7206 # On DJGPP, this test can blow up pretty badly due to problems in libc
7207 # (any single argument exceeding 2000 bytes causes a buffer overrun
7208 # during glob expansion). Even if it were fixed, the result of this
7209 # check would be larger than it should be.
7210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7211 ;;
7212
7213 gnu*)
7214 # Under GNU Hurd, this test is not required because there is
7215 # no limit to the length of command line arguments.
7216 # Libtool will interpret -1 as no limit whatsoever
7217 lt_cv_sys_max_cmd_len=-1;
7218 ;;
7219
7220 cygwin* | mingw* | cegcc*)
7221 # On Win9x/ME, this test blows up -- it succeeds, but takes
7222 # about 5 minutes as the teststring grows exponentially.
7223 # Worse, since 9x/ME are not pre-emptively multitasking,
7224 # you end up with a "frozen" computer, even though with patience
7225 # the test eventually succeeds (with a max line length of 256k).
7226 # Instead, let's just punt: use the minimum linelength reported by
7227 # all of the supported platforms: 8192 (on NT/2K/XP).
7228 lt_cv_sys_max_cmd_len=8192;
7229 ;;
7230
7231 mint*)
7232 # On MiNT this can take a long time and run out of memory.
7233 lt_cv_sys_max_cmd_len=8192;
7234 ;;
7235
7236 amigaos*)
7237 # On AmigaOS with pdksh, this test takes hours, literally.
7238 # So we just punt and use a minimum line length of 8192.
7239 lt_cv_sys_max_cmd_len=8192;
7240 ;;
7241
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007242 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07007243 # This has been around since 386BSD, at least. Likely further.
7244 if test -x /sbin/sysctl; then
7245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7246 elif test -x /usr/sbin/sysctl; then
7247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7248 else
7249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7250 fi
7251 # And add a safety zone
7252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7254 ;;
7255
7256 interix*)
7257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7258 lt_cv_sys_max_cmd_len=196608
7259 ;;
7260
7261 os2*)
7262 # The test takes a long time on OS/2.
7263 lt_cv_sys_max_cmd_len=8192
7264 ;;
7265
7266 osf*)
7267 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7268 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7269 # nice to cause kernel panics so lets avoid the loop below.
7270 # First set a reasonable default.
7271 lt_cv_sys_max_cmd_len=16384
7272 #
7273 if test -x /sbin/sysconfig; then
7274 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7275 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7276 esac
7277 fi
7278 ;;
7279 sco3.2v5*)
7280 lt_cv_sys_max_cmd_len=102400
7281 ;;
7282 sysv5* | sco5v6* | sysv4.2uw2*)
7283 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7284 if test -n "$kargmax"; then
7285 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7286 else
7287 lt_cv_sys_max_cmd_len=32768
7288 fi
7289 ;;
7290 *)
7291 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007292 if test -n "$lt_cv_sys_max_cmd_len" && \
7293 test undefined != "$lt_cv_sys_max_cmd_len"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07007294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7296 else
7297 # Make teststring a little bigger before we do anything with it.
7298 # a 1K string should be a reasonable start.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007299 for i in 1 2 3 4 5 6 7 8; do
Nick Kralevichf73ff172014-09-27 12:41:49 -07007300 teststring=$teststring$teststring
7301 done
7302 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7303 # If test is not a shell built-in, we'll probably end up computing a
7304 # maximum length that is only half of the actual maximum length, but
7305 # we can't tell.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007306 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Nick Kralevichf73ff172014-09-27 12:41:49 -07007307 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007308 test 17 != "$i" # 1/2 MB should be enough
Nick Kralevichf73ff172014-09-27 12:41:49 -07007309 do
7310 i=`expr $i + 1`
7311 teststring=$teststring$teststring
7312 done
7313 # Only check the string length outside the loop.
7314 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7315 teststring=
7316 # Add a significant safety factor because C++ compilers can tack on
7317 # massive amounts of additional arguments before passing them to the
7318 # linker. It appears as though 1/2 is a usable value.
7319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7320 fi
7321 ;;
7322 esac
7323
7324fi
7325
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007326if test -n "$lt_cv_sys_max_cmd_len"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07007327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7328$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7329else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7331$as_echo "none" >&6; }
7332fi
7333max_cmd_len=$lt_cv_sys_max_cmd_len
7334
7335
7336
7337
7338
7339
7340: ${CP="cp -f"}
7341: ${MV="mv -f"}
7342: ${RM="rm -f"}
7343
Nick Kralevichf73ff172014-09-27 12:41:49 -07007344if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7345 lt_unset=unset
7346else
7347 lt_unset=false
7348fi
7349
7350
7351
7352
7353
7354# test EBCDIC or ASCII
7355case `echo X|tr X '\101'` in
7356 A) # ASCII based system
7357 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7358 lt_SP2NL='tr \040 \012'
7359 lt_NL2SP='tr \015\012 \040\040'
7360 ;;
7361 *) # EBCDIC based system
7362 lt_SP2NL='tr \100 \n'
7363 lt_NL2SP='tr \r\n \100\100'
7364 ;;
7365esac
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7376$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7377if ${lt_cv_to_host_file_cmd+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379else
7380 case $host in
7381 *-*-mingw* )
7382 case $build in
7383 *-*-mingw* ) # actually msys
7384 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7385 ;;
7386 *-*-cygwin* )
7387 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7388 ;;
7389 * ) # otherwise, assume *nix
7390 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7391 ;;
7392 esac
7393 ;;
7394 *-*-cygwin* )
7395 case $build in
7396 *-*-mingw* ) # actually msys
7397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7398 ;;
7399 *-*-cygwin* )
7400 lt_cv_to_host_file_cmd=func_convert_file_noop
7401 ;;
7402 * ) # otherwise, assume *nix
7403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7404 ;;
7405 esac
7406 ;;
7407 * ) # unhandled hosts (and "normal" native builds)
7408 lt_cv_to_host_file_cmd=func_convert_file_noop
7409 ;;
7410esac
7411
7412fi
7413
7414to_host_file_cmd=$lt_cv_to_host_file_cmd
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7416$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7417
7418
7419
7420
7421
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7423$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7424if ${lt_cv_to_tool_file_cmd+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426else
7427 #assume ordinary cross tools, or native build.
7428lt_cv_to_tool_file_cmd=func_convert_file_noop
7429case $host in
7430 *-*-mingw* )
7431 case $build in
7432 *-*-mingw* ) # actually msys
7433 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7434 ;;
7435 esac
7436 ;;
7437esac
7438
7439fi
7440
7441to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7443$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7444
7445
7446
7447
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7450$as_echo_n "checking for $LD option to reload object files... " >&6; }
7451if ${lt_cv_ld_reload_flag+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453else
7454 lt_cv_ld_reload_flag='-r'
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7457$as_echo "$lt_cv_ld_reload_flag" >&6; }
7458reload_flag=$lt_cv_ld_reload_flag
7459case $reload_flag in
7460"" | " "*) ;;
7461*) reload_flag=" $reload_flag" ;;
7462esac
7463reload_cmds='$LD$reload_flag -o $output$reload_objs'
7464case $host_os in
7465 cygwin* | mingw* | pw32* | cegcc*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007466 if test yes != "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07007467 reload_cmds=false
7468 fi
7469 ;;
7470 darwin*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007471 if test yes = "$GCC"; then
7472 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Nick Kralevichf73ff172014-09-27 12:41:49 -07007473 else
7474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7475 fi
7476 ;;
7477esac
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7489set dummy ${ac_tool_prefix}objdump; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if ${ac_cv_prog_OBJDUMP+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 if test -n "$OBJDUMP"; then
7496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510 done
7511IFS=$as_save_IFS
7512
7513fi
7514fi
7515OBJDUMP=$ac_cv_prog_OBJDUMP
7516if test -n "$OBJDUMP"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7518$as_echo "$OBJDUMP" >&6; }
7519else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524
7525fi
7526if test -z "$ac_cv_prog_OBJDUMP"; then
7527 ac_ct_OBJDUMP=$OBJDUMP
7528 # Extract the first word of "objdump", so it can be a program name with args.
7529set dummy objdump; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534else
7535 if test -n "$ac_ct_OBJDUMP"; then
7536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550 done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7556if test -n "$ac_ct_OBJDUMP"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7558$as_echo "$ac_ct_OBJDUMP" >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564 if test "x$ac_ct_OBJDUMP" = x; then
7565 OBJDUMP="false"
7566 else
7567 case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573 OBJDUMP=$ac_ct_OBJDUMP
7574 fi
7575else
7576 OBJDUMP="$ac_cv_prog_OBJDUMP"
7577fi
7578
7579test -z "$OBJDUMP" && OBJDUMP=objdump
7580
7581
7582
7583
7584
7585
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7587$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7588if ${lt_cv_deplibs_check_method+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590else
7591 lt_cv_file_magic_cmd='$MAGIC_CMD'
7592lt_cv_file_magic_test_file=
7593lt_cv_deplibs_check_method='unknown'
7594# Need to set the preceding variable on all platforms that support
7595# interlibrary dependencies.
7596# 'none' -- dependencies not supported.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007597# 'unknown' -- same as none, but documents that we really don't know.
Nick Kralevichf73ff172014-09-27 12:41:49 -07007598# 'pass_all' -- all dependencies passed with no checks.
7599# 'test_compile' -- check by making test program.
7600# 'file_magic [[regex]]' -- check by looking for files in library path
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007601# that responds to the $file_magic_cmd with a given extended regex.
7602# If you have 'file' or equivalent on your system and you're not sure
7603# whether 'pass_all' will *always* work, you probably want this one.
Nick Kralevichf73ff172014-09-27 12:41:49 -07007604
7605case $host_os in
7606aix[4-9]*)
7607 lt_cv_deplibs_check_method=pass_all
7608 ;;
7609
7610beos*)
7611 lt_cv_deplibs_check_method=pass_all
7612 ;;
7613
7614bsdi[45]*)
7615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7616 lt_cv_file_magic_cmd='/usr/bin/file -L'
7617 lt_cv_file_magic_test_file=/shlib/libc.so
7618 ;;
7619
7620cygwin*)
7621 # func_win32_libid is a shell function defined in ltmain.sh
7622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7623 lt_cv_file_magic_cmd='func_win32_libid'
7624 ;;
7625
7626mingw* | pw32*)
7627 # Base MSYS/MinGW do not provide the 'file' command needed by
7628 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7629 # unless we find 'file', for example because we are cross-compiling.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007630 if ( file / ) >/dev/null 2>&1; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07007631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7632 lt_cv_file_magic_cmd='func_win32_libid'
7633 else
7634 # Keep this pattern in sync with the one in func_win32_libid.
7635 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7636 lt_cv_file_magic_cmd='$OBJDUMP -f'
7637 fi
7638 ;;
7639
7640cegcc*)
7641 # use the weaker test based on 'objdump'. See mingw*.
7642 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7643 lt_cv_file_magic_cmd='$OBJDUMP -f'
7644 ;;
7645
7646darwin* | rhapsody*)
7647 lt_cv_deplibs_check_method=pass_all
7648 ;;
7649
7650freebsd* | dragonfly*)
7651 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7652 case $host_cpu in
7653 i*86 )
7654 # Not sure whether the presence of OpenBSD here was a mistake.
7655 # Let's accept both of them until this is cleared up.
7656 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7657 lt_cv_file_magic_cmd=/usr/bin/file
7658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7659 ;;
7660 esac
7661 else
7662 lt_cv_deplibs_check_method=pass_all
7663 fi
7664 ;;
7665
Nick Kralevichf73ff172014-09-27 12:41:49 -07007666haiku*)
7667 lt_cv_deplibs_check_method=pass_all
7668 ;;
7669
7670hpux10.20* | hpux11*)
7671 lt_cv_file_magic_cmd=/usr/bin/file
7672 case $host_cpu in
7673 ia64*)
7674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7676 ;;
7677 hppa*64*)
7678 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]'
7679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7680 ;;
7681 *)
7682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7684 ;;
7685 esac
7686 ;;
7687
7688interix[3-9]*)
7689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7691 ;;
7692
7693irix5* | irix6* | nonstopux*)
7694 case $LD in
7695 *-32|*"-32 ") libmagic=32-bit;;
7696 *-n32|*"-n32 ") libmagic=N32;;
7697 *-64|*"-64 ") libmagic=64-bit;;
7698 *) libmagic=never-match;;
7699 esac
7700 lt_cv_deplibs_check_method=pass_all
7701 ;;
7702
7703# This must be glibc/ELF.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007704linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07007705 lt_cv_deplibs_check_method=pass_all
7706 ;;
7707
7708netbsd*)
7709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7711 else
7712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7713 fi
7714 ;;
7715
7716newos6*)
7717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7718 lt_cv_file_magic_cmd=/usr/bin/file
7719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7720 ;;
7721
7722*nto* | *qnx*)
7723 lt_cv_deplibs_check_method=pass_all
7724 ;;
7725
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007726openbsd* | bitrig*)
7727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07007728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7729 else
7730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7731 fi
7732 ;;
7733
7734osf3* | osf4* | osf5*)
7735 lt_cv_deplibs_check_method=pass_all
7736 ;;
7737
7738rdos*)
7739 lt_cv_deplibs_check_method=pass_all
7740 ;;
7741
7742solaris*)
7743 lt_cv_deplibs_check_method=pass_all
7744 ;;
7745
7746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7747 lt_cv_deplibs_check_method=pass_all
7748 ;;
7749
7750sysv4 | sysv4.3*)
7751 case $host_vendor in
7752 motorola)
7753 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]'
7754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7755 ;;
7756 ncr)
7757 lt_cv_deplibs_check_method=pass_all
7758 ;;
7759 sequent)
7760 lt_cv_file_magic_cmd='/bin/file'
7761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7762 ;;
7763 sni)
7764 lt_cv_file_magic_cmd='/bin/file'
7765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7766 lt_cv_file_magic_test_file=/lib/libc.so
7767 ;;
7768 siemens)
7769 lt_cv_deplibs_check_method=pass_all
7770 ;;
7771 pc)
7772 lt_cv_deplibs_check_method=pass_all
7773 ;;
7774 esac
7775 ;;
7776
7777tpf*)
7778 lt_cv_deplibs_check_method=pass_all
7779 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007780os2*)
7781 lt_cv_deplibs_check_method=pass_all
7782 ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07007783esac
7784
7785fi
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7787$as_echo "$lt_cv_deplibs_check_method" >&6; }
7788
7789file_magic_glob=
7790want_nocaseglob=no
7791if test "$build" = "$host"; then
7792 case $host_os in
7793 mingw* | pw32*)
7794 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7795 want_nocaseglob=yes
7796 else
7797 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7798 fi
7799 ;;
7800 esac
7801fi
7802
7803file_magic_cmd=$lt_cv_file_magic_cmd
7804deplibs_check_method=$lt_cv_deplibs_check_method
7805test -z "$deplibs_check_method" && deplibs_check_method=unknown
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7830set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_DLLTOOL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 if test -n "$DLLTOOL"; then
7837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851 done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856DLLTOOL=$ac_cv_prog_DLLTOOL
7857if test -n "$DLLTOOL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7859$as_echo "$DLLTOOL" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865
7866fi
7867if test -z "$ac_cv_prog_DLLTOOL"; then
7868 ac_ct_DLLTOOL=$DLLTOOL
7869 # Extract the first word of "dlltool", so it can be a program name with args.
7870set dummy dlltool; ac_word=$2
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872$as_echo_n "checking for $ac_word... " >&6; }
7873if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875else
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891 done
7892IFS=$as_save_IFS
7893
7894fi
7895fi
7896ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7897if test -n "$ac_ct_DLLTOOL"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7899$as_echo "$ac_ct_DLLTOOL" >&6; }
7900else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903fi
7904
7905 if test "x$ac_ct_DLLTOOL" = x; then
7906 DLLTOOL="false"
7907 else
7908 case $cross_compiling:$ac_tool_warned in
7909yes:)
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912ac_tool_warned=yes ;;
7913esac
7914 DLLTOOL=$ac_ct_DLLTOOL
7915 fi
7916else
7917 DLLTOOL="$ac_cv_prog_DLLTOOL"
7918fi
7919
7920test -z "$DLLTOOL" && DLLTOOL=dlltool
7921
7922
7923
7924
7925
7926
7927
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7929$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7930if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932else
7933 lt_cv_sharedlib_from_linklib_cmd='unknown'
7934
7935case $host_os in
7936cygwin* | mingw* | pw32* | cegcc*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007937 # two different shell functions defined in ltmain.sh;
7938 # decide which one to use based on capabilities of $DLLTOOL
Nick Kralevichf73ff172014-09-27 12:41:49 -07007939 case `$DLLTOOL --help 2>&1` in
7940 *--identify-strict*)
7941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7942 ;;
7943 *)
7944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7945 ;;
7946 esac
7947 ;;
7948*)
7949 # fallback: assume linklib IS sharedlib
Elliott Hughes8366e8b2015-08-14 20:48:15 -07007950 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Nick Kralevichf73ff172014-09-27 12:41:49 -07007951 ;;
7952esac
7953
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7956$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7957sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7958test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7959
7960
7961
7962
7963
7964
7965
7966if test -n "$ac_tool_prefix"; then
7967 for ac_prog in ar
7968 do
7969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972$as_echo_n "checking for $ac_word... " >&6; }
7973if ${ac_cv_prog_AR+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 if test -n "$AR"; then
7977 ac_cv_prog_AR="$AR" # Let the user override the test.
7978else
7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990done
7991 done
7992IFS=$as_save_IFS
7993
7994fi
7995fi
7996AR=$ac_cv_prog_AR
7997if test -n "$AR"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7999$as_echo "$AR" >&6; }
8000else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002$as_echo "no" >&6; }
8003fi
8004
8005
8006 test -n "$AR" && break
8007 done
8008fi
8009if test -z "$AR"; then
8010 ac_ct_AR=$AR
8011 for ac_prog in ar
8012do
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014set dummy $ac_prog; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_AR+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$ac_ct_AR"; then
8021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_AR="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_AR=$ac_cv_prog_ac_ct_AR
8041if test -n "$ac_ct_AR"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8043$as_echo "$ac_ct_AR" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049
8050 test -n "$ac_ct_AR" && break
8051done
8052
8053 if test "x$ac_ct_AR" = x; then
8054 AR="false"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057yes:)
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060ac_tool_warned=yes ;;
8061esac
8062 AR=$ac_ct_AR
8063 fi
8064fi
8065
8066: ${AR=ar}
8067: ${AR_FLAGS=cru}
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8080$as_echo_n "checking for archiver @FILE support... " >&6; }
8081if ${lt_cv_ar_at_file+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 lt_cv_ar_at_file=no
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h. */
8087
8088int
8089main ()
8090{
8091
8092 ;
8093 return 0;
8094}
8095_ACEOF
8096if ac_fn_c_try_compile "$LINENO"; then :
8097 echo conftest.$ac_objext > conftest.lst
8098 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8100 (eval $lt_ar_try) 2>&5
8101 ac_status=$?
8102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103 test $ac_status = 0; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008104 if test 0 -eq "$ac_status"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008105 # Ensure the archiver fails upon bogus file names.
8106 rm -f conftest.$ac_objext libconftest.a
8107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8108 (eval $lt_ar_try) 2>&5
8109 ac_status=$?
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008112 if test 0 -ne "$ac_status"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008113 lt_cv_ar_at_file=@
8114 fi
8115 fi
8116 rm -f conftest.* libconftest.a
8117
8118fi
8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8123$as_echo "$lt_cv_ar_at_file" >&6; }
8124
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008125if test no = "$lt_cv_ar_at_file"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008126 archiver_list_spec=
8127else
8128 archiver_list_spec=$lt_cv_ar_at_file
8129fi
8130
8131
8132
8133
8134
8135
8136
8137if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8139set dummy ${ac_tool_prefix}strip; ac_word=$2
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141$as_echo_n "checking for $ac_word... " >&6; }
8142if ${ac_cv_prog_STRIP+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144else
8145 if test -n "$STRIP"; then
8146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8147else
8148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159done
8160 done
8161IFS=$as_save_IFS
8162
8163fi
8164fi
8165STRIP=$ac_cv_prog_STRIP
8166if test -n "$STRIP"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8168$as_echo "$STRIP" >&6; }
8169else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171$as_echo "no" >&6; }
8172fi
8173
8174
8175fi
8176if test -z "$ac_cv_prog_STRIP"; then
8177 ac_ct_STRIP=$STRIP
8178 # Extract the first word of "strip", so it can be a program name with args.
8179set dummy strip; ac_word=$2
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184else
8185 if test -n "$ac_ct_STRIP"; then
8186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_ac_ct_STRIP="strip"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199done
8200 done
8201IFS=$as_save_IFS
8202
8203fi
8204fi
8205ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8206if test -n "$ac_ct_STRIP"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8208$as_echo "$ac_ct_STRIP" >&6; }
8209else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
8212fi
8213
8214 if test "x$ac_ct_STRIP" = x; then
8215 STRIP=":"
8216 else
8217 case $cross_compiling:$ac_tool_warned in
8218yes:)
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221ac_tool_warned=yes ;;
8222esac
8223 STRIP=$ac_ct_STRIP
8224 fi
8225else
8226 STRIP="$ac_cv_prog_STRIP"
8227fi
8228
8229test -z "$STRIP" && STRIP=:
8230
8231
8232
8233
8234
8235
8236if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240$as_echo_n "checking for $ac_word... " >&6; }
8241if ${ac_cv_prog_RANLIB+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243else
8244 if test -n "$RANLIB"; then
8245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8246else
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258done
8259 done
8260IFS=$as_save_IFS
8261
8262fi
8263fi
8264RANLIB=$ac_cv_prog_RANLIB
8265if test -n "$RANLIB"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267$as_echo "$RANLIB" >&6; }
8268else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274fi
8275if test -z "$ac_cv_prog_RANLIB"; then
8276 ac_ct_RANLIB=$RANLIB
8277 # Extract the first word of "ranlib", so it can be a program name with args.
8278set dummy ranlib; ac_word=$2
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280$as_echo_n "checking for $ac_word... " >&6; }
8281if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283else
8284 if test -n "$ac_ct_RANLIB"; then
8285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8286else
8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288for as_dir in $PATH
8289do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_RANLIB="ranlib"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298done
8299 done
8300IFS=$as_save_IFS
8301
8302fi
8303fi
8304ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8305if test -n "$ac_ct_RANLIB"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307$as_echo "$ac_ct_RANLIB" >&6; }
8308else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310$as_echo "no" >&6; }
8311fi
8312
8313 if test "x$ac_ct_RANLIB" = x; then
8314 RANLIB=":"
8315 else
8316 case $cross_compiling:$ac_tool_warned in
8317yes:)
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320ac_tool_warned=yes ;;
8321esac
8322 RANLIB=$ac_ct_RANLIB
8323 fi
8324else
8325 RANLIB="$ac_cv_prog_RANLIB"
8326fi
8327
8328test -z "$RANLIB" && RANLIB=:
8329
8330
8331
8332
8333
8334
8335# Determine commands to create old-style static archives.
8336old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8337old_postinstall_cmds='chmod 644 $oldlib'
8338old_postuninstall_cmds=
8339
8340if test -n "$RANLIB"; then
8341 case $host_os in
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008342 bitrig* | openbsd*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07008343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8344 ;;
8345 *)
8346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8347 ;;
8348 esac
8349 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8350fi
8351
8352case $host_os in
8353 darwin*)
8354 lock_old_archive_extraction=yes ;;
8355 *)
8356 lock_old_archive_extraction=no ;;
8357esac
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397# If no C compiler was specified, use CC.
8398LTCC=${LTCC-"$CC"}
8399
8400# If no C compiler flags were specified, use CFLAGS.
8401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8402
8403# Allow CC to be a program name with arguments.
8404compiler=$CC
8405
8406
8407# Check for command to grab the raw symbol name followed by C symbol from nm.
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8409$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8410if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413
8414# These are sane defaults that work on at least a few old systems.
8415# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8416
8417# Character class describing NM global symbol codes.
8418symcode='[BCDEGRST]'
8419
8420# Regexp to match symbols that can be accessed directly from C.
8421sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8422
8423# Define system-specific variables.
8424case $host_os in
8425aix*)
8426 symcode='[BCDT]'
8427 ;;
8428cygwin* | mingw* | pw32* | cegcc*)
8429 symcode='[ABCDGISTW]'
8430 ;;
8431hpux*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008432 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008433 symcode='[ABCDEGRST]'
8434 fi
8435 ;;
8436irix* | nonstopux*)
8437 symcode='[BCDEGRST]'
8438 ;;
8439osf*)
8440 symcode='[BCDEGQRST]'
8441 ;;
8442solaris*)
8443 symcode='[BDRT]'
8444 ;;
8445sco3.2v5*)
8446 symcode='[DT]'
8447 ;;
8448sysv4.2uw2*)
8449 symcode='[DT]'
8450 ;;
8451sysv5* | sco5v6* | unixware* | OpenUNIX*)
8452 symcode='[ABDT]'
8453 ;;
8454sysv4)
8455 symcode='[DFNSTU]'
8456 ;;
8457esac
8458
8459# If we're using GNU nm, then use its standard symbol codes.
8460case `$NM -V 2>&1` in
8461*GNU* | *'with BFD'*)
8462 symcode='[ABCDGIRSTW]' ;;
8463esac
8464
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008465if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8466 # Gets list of data symbols to import.
8467 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8468 # Adjust the below global symbol transforms to fixup imported variables.
8469 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8470 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8471 lt_c_name_lib_hook="\
8472 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8473 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8474else
8475 # Disable hooks by default.
8476 lt_cv_sys_global_symbol_to_import=
8477 lt_cdecl_hook=
8478 lt_c_name_hook=
8479 lt_c_name_lib_hook=
8480fi
8481
Nick Kralevichf73ff172014-09-27 12:41:49 -07008482# Transform an extracted symbol line into a proper C declaration.
8483# Some systems (esp. on ia64) link data and code symbols differently,
8484# so use this general approach.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008485lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8486$lt_cdecl_hook\
8487" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8488" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Nick Kralevichf73ff172014-09-27 12:41:49 -07008489
8490# Transform an extracted symbol line into symbol name and symbol address
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008491lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8492$lt_c_name_hook\
8493" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8494" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8495
8496# Transform an extracted symbol line into symbol name with lib prefix and
8497# symbol address.
8498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8499$lt_c_name_lib_hook\
8500" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8501" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8502" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Nick Kralevichf73ff172014-09-27 12:41:49 -07008503
8504# Handle CRLF in mingw tool chain
8505opt_cr=
8506case $build_os in
8507mingw*)
8508 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8509 ;;
8510esac
8511
8512# Try without a prefix underscore, then with it.
8513for ac_symprfx in "" "_"; do
8514
8515 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8516 symxfrm="\\1 $ac_symprfx\\2 \\2"
8517
8518 # Write the raw and C identifiers.
8519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008520 # Fake it for dumpbin and say T for any non-static function,
8521 # D for any global variable and I for any imported variable.
Nick Kralevichf73ff172014-09-27 12:41:49 -07008522 # Also find C++ and __fastcall symbols from MSVC++,
8523 # which start with @ or ?.
8524 lt_cv_sys_global_symbol_pipe="$AWK '"\
8525" {last_section=section; section=\$ 3};"\
8526" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8527" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008528" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8529" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8530" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Nick Kralevichf73ff172014-09-27 12:41:49 -07008531" \$ 0!~/External *\|/{next};"\
8532" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8533" {if(hide[section]) next};"\
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008534" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8535" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8536" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8537" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Nick Kralevichf73ff172014-09-27 12:41:49 -07008538" ' prfx=^$ac_symprfx"
8539 else
8540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8541 fi
8542 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8543
8544 # Check to see that the pipe works correctly.
8545 pipe_works=no
8546
8547 rm -f conftest*
8548 cat > conftest.$ac_ext <<_LT_EOF
8549#ifdef __cplusplus
8550extern "C" {
8551#endif
8552char nm_test_var;
8553void nm_test_func(void);
8554void nm_test_func(void){}
8555#ifdef __cplusplus
8556}
8557#endif
8558int main(){nm_test_var='a';nm_test_func();return(0);}
8559_LT_EOF
8560
8561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8562 (eval $ac_compile) 2>&5
8563 ac_status=$?
8564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8565 test $ac_status = 0; }; then
8566 # Now try to grab the symbols.
8567 nlist=conftest.nm
8568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8569 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8570 ac_status=$?
8571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8572 test $ac_status = 0; } && test -s "$nlist"; then
8573 # Try sorting and uniquifying the output.
8574 if sort "$nlist" | uniq > "$nlist"T; then
8575 mv -f "$nlist"T "$nlist"
8576 else
8577 rm -f "$nlist"T
8578 fi
8579
8580 # Make sure that we snagged all the symbols we need.
8581 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8582 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8583 cat <<_LT_EOF > conftest.$ac_ext
8584/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008585#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8586/* DATA imports from DLLs on WIN32 can't be const, because runtime
Nick Kralevichf73ff172014-09-27 12:41:49 -07008587 relocations are performed -- see ld's documentation on pseudo-relocs. */
8588# define LT_DLSYM_CONST
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008589#elif defined __osf__
Nick Kralevichf73ff172014-09-27 12:41:49 -07008590/* This system does not cope well with relocations in const data. */
8591# define LT_DLSYM_CONST
8592#else
8593# define LT_DLSYM_CONST const
8594#endif
8595
8596#ifdef __cplusplus
8597extern "C" {
8598#endif
8599
8600_LT_EOF
8601 # Now generate the symbol file.
8602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8603
8604 cat <<_LT_EOF >> conftest.$ac_ext
8605
8606/* The mapping between symbol names and symbols. */
8607LT_DLSYM_CONST struct {
8608 const char *name;
8609 void *address;
8610}
8611lt__PROGRAM__LTX_preloaded_symbols[] =
8612{
8613 { "@PROGRAM@", (void *) 0 },
8614_LT_EOF
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008615 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Nick Kralevichf73ff172014-09-27 12:41:49 -07008616 cat <<\_LT_EOF >> conftest.$ac_ext
8617 {0, (void *) 0}
8618};
8619
8620/* This works around a problem in FreeBSD linker */
8621#ifdef FREEBSD_WORKAROUND
8622static const void *lt_preloaded_setup() {
8623 return lt__PROGRAM__LTX_preloaded_symbols;
8624}
8625#endif
8626
8627#ifdef __cplusplus
8628}
8629#endif
8630_LT_EOF
8631 # Now try linking the two files.
8632 mv conftest.$ac_objext conftstm.$ac_objext
8633 lt_globsym_save_LIBS=$LIBS
8634 lt_globsym_save_CFLAGS=$CFLAGS
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008635 LIBS=conftstm.$ac_objext
Nick Kralevichf73ff172014-09-27 12:41:49 -07008636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8638 (eval $ac_link) 2>&5
8639 ac_status=$?
8640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008641 test $ac_status = 0; } && test -s conftest$ac_exeext; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008642 pipe_works=yes
8643 fi
8644 LIBS=$lt_globsym_save_LIBS
8645 CFLAGS=$lt_globsym_save_CFLAGS
8646 else
8647 echo "cannot find nm_test_func in $nlist" >&5
8648 fi
8649 else
8650 echo "cannot find nm_test_var in $nlist" >&5
8651 fi
8652 else
8653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8654 fi
8655 else
8656 echo "$progname: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 fi
8659 rm -rf conftest* conftst*
8660
8661 # Do not use the global_symbol_pipe unless it works.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008662 if test yes = "$pipe_works"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008663 break
8664 else
8665 lt_cv_sys_global_symbol_pipe=
8666 fi
8667done
8668
8669fi
8670
8671if test -z "$lt_cv_sys_global_symbol_pipe"; then
8672 lt_cv_sys_global_symbol_to_cdecl=
8673fi
8674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8676$as_echo "failed" >&6; }
8677else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8679$as_echo "ok" >&6; }
8680fi
8681
8682# Response file support.
8683if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8684 nm_file_list_spec='@'
8685elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8686 nm_file_list_spec='@'
8687fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008715
8716
8717
8718
8719
8720
8721
8722
8723
8724
Nick Kralevichf73ff172014-09-27 12:41:49 -07008725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8726$as_echo_n "checking for sysroot... " >&6; }
8727
8728# Check whether --with-sysroot was given.
8729if test "${with_sysroot+set}" = set; then :
8730 withval=$with_sysroot;
8731else
8732 with_sysroot=no
8733fi
8734
8735
8736lt_sysroot=
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008737case $with_sysroot in #(
Nick Kralevichf73ff172014-09-27 12:41:49 -07008738 yes)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008739 if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008740 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8741 fi
8742 ;; #(
8743 /*)
8744 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8745 ;; #(
8746 no|'')
8747 ;; #(
8748 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8750$as_echo "$with_sysroot" >&6; }
Nick Kralevichf73ff172014-09-27 12:41:49 -07008751 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8752 ;;
8753esac
8754
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8756$as_echo "${lt_sysroot:-no}" >&6; }
8757
8758
8759
8760
8761
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8763$as_echo_n "checking for a working dd... " >&6; }
8764if ${ac_cv_path_lt_DD+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766else
8767 printf 0123456789abcdef0123456789abcdef >conftest.i
8768cat conftest.i conftest.i >conftest2.i
8769: ${lt_DD:=$DD}
8770if test -z "$lt_DD"; then
8771 ac_path_lt_DD_found=false
8772 # Loop through the user's path and test for each of PROGNAME-LIST
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_prog in dd; do
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8781 as_fn_executable_p "$ac_path_lt_DD" || continue
8782if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8783 cmp -s conftest.i conftest.out \
8784 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8785fi
8786 $ac_path_lt_DD_found && break 3
8787 done
8788 done
8789 done
8790IFS=$as_save_IFS
8791 if test -z "$ac_cv_path_lt_DD"; then
8792 :
8793 fi
8794else
8795 ac_cv_path_lt_DD=$lt_DD
8796fi
8797
8798rm -f conftest.i conftest2.i conftest.out
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8801$as_echo "$ac_cv_path_lt_DD" >&6; }
8802
8803
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8805$as_echo_n "checking how to truncate binary pipes... " >&6; }
8806if ${lt_cv_truncate_bin+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 printf 0123456789abcdef0123456789abcdef >conftest.i
8810cat conftest.i conftest.i >conftest2.i
8811lt_cv_truncate_bin=
8812if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8813 cmp -s conftest.i conftest.out \
8814 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8815fi
8816rm -f conftest.i conftest2.i conftest.out
8817test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8820$as_echo "$lt_cv_truncate_bin" >&6; }
8821
8822
8823
8824
8825
8826
8827
8828# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8829func_cc_basename ()
8830{
8831 for cc_temp in $*""; do
8832 case $cc_temp in
8833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8835 \-*) ;;
8836 *) break;;
8837 esac
8838 done
8839 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8840}
8841
Nick Kralevichf73ff172014-09-27 12:41:49 -07008842# Check whether --enable-libtool-lock was given.
8843if test "${enable_libtool_lock+set}" = set; then :
8844 enableval=$enable_libtool_lock;
8845fi
8846
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008847test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -07008848
8849# Some flags need to be propagated to the compiler or linker for good
8850# libtool support.
8851case $host in
8852ia64-*-hpux*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008853 # Find out what ABI is being produced by ac_compile, and set mode
8854 # options accordingly.
Nick Kralevichf73ff172014-09-27 12:41:49 -07008855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.$ac_objext` in
8862 *ELF-32*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008863 HPUX_IA64_MODE=32
Nick Kralevichf73ff172014-09-27 12:41:49 -07008864 ;;
8865 *ELF-64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008866 HPUX_IA64_MODE=64
Nick Kralevichf73ff172014-09-27 12:41:49 -07008867 ;;
8868 esac
8869 fi
8870 rm -rf conftest*
8871 ;;
8872*-*-irix6*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008873 # Find out what ABI is being produced by ac_compile, and set linker
8874 # options accordingly.
Nick Kralevichf73ff172014-09-27 12:41:49 -07008875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8877 (eval $ac_compile) 2>&5
8878 ac_status=$?
8879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8880 test $ac_status = 0; }; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008881 if test yes = "$lt_cv_prog_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07008882 case `/usr/bin/file conftest.$ac_objext` in
8883 *32-bit*)
8884 LD="${LD-ld} -melf32bsmip"
8885 ;;
8886 *N32*)
8887 LD="${LD-ld} -melf32bmipn32"
8888 ;;
8889 *64-bit*)
8890 LD="${LD-ld} -melf64bmip"
8891 ;;
8892 esac
8893 else
8894 case `/usr/bin/file conftest.$ac_objext` in
8895 *32-bit*)
8896 LD="${LD-ld} -32"
8897 ;;
8898 *N32*)
8899 LD="${LD-ld} -n32"
8900 ;;
8901 *64-bit*)
8902 LD="${LD-ld} -64"
8903 ;;
8904 esac
8905 fi
8906 fi
8907 rm -rf conftest*
8908 ;;
8909
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008910mips64*-*linux*)
8911 # Find out what ABI is being produced by ac_compile, and set linker
8912 # options accordingly.
8913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8915 (eval $ac_compile) 2>&5
8916 ac_status=$?
8917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8918 test $ac_status = 0; }; then
8919 emul=elf
8920 case `/usr/bin/file conftest.$ac_objext` in
8921 *32-bit*)
8922 emul="${emul}32"
8923 ;;
8924 *64-bit*)
8925 emul="${emul}64"
8926 ;;
8927 esac
8928 case `/usr/bin/file conftest.$ac_objext` in
8929 *MSB*)
8930 emul="${emul}btsmip"
8931 ;;
8932 *LSB*)
8933 emul="${emul}ltsmip"
8934 ;;
8935 esac
8936 case `/usr/bin/file conftest.$ac_objext` in
8937 *N32*)
8938 emul="${emul}n32"
8939 ;;
8940 esac
8941 LD="${LD-ld} -m $emul"
8942 fi
8943 rm -rf conftest*
8944 ;;
8945
8946x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Nick Kralevichf73ff172014-09-27 12:41:49 -07008947s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008948 # Find out what ABI is being produced by ac_compile, and set linker
8949 # options accordingly. Note that the listed cases only cover the
8950 # situations where additional linker options are needed (such as when
8951 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8952 # vice versa); the common cases where no linker options are needed do
8953 # not appear in the list.
Nick Kralevichf73ff172014-09-27 12:41:49 -07008954 echo 'int i;' > conftest.$ac_ext
8955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8956 (eval $ac_compile) 2>&5
8957 ac_status=$?
8958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8959 test $ac_status = 0; }; then
8960 case `/usr/bin/file conftest.o` in
8961 *32-bit*)
8962 case $host in
8963 x86_64-*kfreebsd*-gnu)
8964 LD="${LD-ld} -m elf_i386_fbsd"
8965 ;;
8966 x86_64-*linux*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008967 case `/usr/bin/file conftest.o` in
8968 *x86-64*)
8969 LD="${LD-ld} -m elf32_x86_64"
8970 ;;
8971 *)
8972 LD="${LD-ld} -m elf_i386"
8973 ;;
8974 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -07008975 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008976 powerpc64le-*linux*)
8977 LD="${LD-ld} -m elf32lppclinux"
8978 ;;
8979 powerpc64-*linux*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07008980 LD="${LD-ld} -m elf32ppclinux"
8981 ;;
8982 s390x-*linux*)
8983 LD="${LD-ld} -m elf_s390"
8984 ;;
8985 sparc64-*linux*)
8986 LD="${LD-ld} -m elf32_sparc"
8987 ;;
8988 esac
8989 ;;
8990 *64-bit*)
8991 case $host in
8992 x86_64-*kfreebsd*-gnu)
8993 LD="${LD-ld} -m elf_x86_64_fbsd"
8994 ;;
8995 x86_64-*linux*)
8996 LD="${LD-ld} -m elf_x86_64"
8997 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -07008998 powerpcle-*linux*)
8999 LD="${LD-ld} -m elf64lppc"
9000 ;;
9001 powerpc-*linux*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07009002 LD="${LD-ld} -m elf64ppc"
9003 ;;
9004 s390*-*linux*|s390*-*tpf*)
9005 LD="${LD-ld} -m elf64_s390"
9006 ;;
9007 sparc*-*linux*)
9008 LD="${LD-ld} -m elf64_sparc"
9009 ;;
9010 esac
9011 ;;
9012 esac
9013 fi
9014 rm -rf conftest*
9015 ;;
9016
9017*-*-sco3.2v5*)
9018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009019 SAVE_CFLAGS=$CFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -07009020 CFLAGS="$CFLAGS -belf"
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9022$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9023if ${lt_cv_cc_needs_belf+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025else
9026 ac_ext=c
9027ac_cpp='$CPP $CPPFLAGS'
9028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9030ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035int
9036main ()
9037{
9038
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_link "$LINENO"; then :
9044 lt_cv_cc_needs_belf=yes
9045else
9046 lt_cv_cc_needs_belf=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 ac_ext=c
9051ac_cpp='$CPP $CPPFLAGS'
9052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9054ac_compiler_gnu=$ac_cv_c_compiler_gnu
9055
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9058$as_echo "$lt_cv_cc_needs_belf" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009059 if test yes != "$lt_cv_cc_needs_belf"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009060 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009061 CFLAGS=$SAVE_CFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -07009062 fi
9063 ;;
9064*-*solaris*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009065 # Find out what ABI is being produced by ac_compile, and set linker
9066 # options accordingly.
Nick Kralevichf73ff172014-09-27 12:41:49 -07009067 echo 'int i;' > conftest.$ac_ext
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069 (eval $ac_compile) 2>&5
9070 ac_status=$?
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; }; then
9073 case `/usr/bin/file conftest.o` in
9074 *64-bit*)
9075 case $lt_cv_prog_gnu_ld in
9076 yes*)
9077 case $host in
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009078 i?86-*-solaris*|x86_64-*-solaris*)
Nick Kralevichf73ff172014-09-27 12:41:49 -07009079 LD="${LD-ld} -m elf_x86_64"
9080 ;;
9081 sparc*-*-solaris*)
9082 LD="${LD-ld} -m elf64_sparc"
9083 ;;
9084 esac
9085 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9086 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009087 LD=${LD-ld}_sol2
Nick Kralevichf73ff172014-09-27 12:41:49 -07009088 fi
9089 ;;
9090 *)
9091 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9092 LD="${LD-ld} -64"
9093 fi
9094 ;;
9095 esac
9096 ;;
9097 esac
9098 fi
9099 rm -rf conftest*
9100 ;;
9101esac
9102
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009103need_locks=$enable_libtool_lock
Nick Kralevichf73ff172014-09-27 12:41:49 -07009104
9105if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9107set dummy ${ac_tool_prefix}mt; ac_word=$2
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112else
9113 if test -n "$MANIFEST_TOOL"; then
9114 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9115else
9116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9126 fi
9127done
9128 done
9129IFS=$as_save_IFS
9130
9131fi
9132fi
9133MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9134if test -n "$MANIFEST_TOOL"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9136$as_echo "$MANIFEST_TOOL" >&6; }
9137else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139$as_echo "no" >&6; }
9140fi
9141
9142
9143fi
9144if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9145 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9146 # Extract the first word of "mt", so it can be a program name with args.
9147set dummy mt; ac_word=$2
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149$as_echo_n "checking for $ac_word... " >&6; }
9150if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152else
9153 if test -n "$ac_ct_MANIFEST_TOOL"; then
9154 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9155else
9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167done
9168 done
9169IFS=$as_save_IFS
9170
9171fi
9172fi
9173ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9174if test -n "$ac_ct_MANIFEST_TOOL"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9176$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9177else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
9180fi
9181
9182 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9183 MANIFEST_TOOL=":"
9184 else
9185 case $cross_compiling:$ac_tool_warned in
9186yes:)
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189ac_tool_warned=yes ;;
9190esac
9191 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9192 fi
9193else
9194 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9195fi
9196
9197test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9199$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9200if ${lt_cv_path_mainfest_tool+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202else
9203 lt_cv_path_mainfest_tool=no
9204 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9205 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9206 cat conftest.err >&5
9207 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9208 lt_cv_path_mainfest_tool=yes
9209 fi
9210 rm -f conftest*
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9213$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009214if test yes != "$lt_cv_path_mainfest_tool"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009215 MANIFEST_TOOL=:
9216fi
9217
9218
9219
9220
9221
9222
9223 case $host_os in
9224 rhapsody* | darwin*)
9225 if test -n "$ac_tool_prefix"; then
9226 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9227set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229$as_echo_n "checking for $ac_word... " >&6; }
9230if ${ac_cv_prog_DSYMUTIL+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232else
9233 if test -n "$DSYMUTIL"; then
9234 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9235else
9236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237for as_dir in $PATH
9238do
9239 IFS=$as_save_IFS
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 break 2
9246 fi
9247done
9248 done
9249IFS=$as_save_IFS
9250
9251fi
9252fi
9253DSYMUTIL=$ac_cv_prog_DSYMUTIL
9254if test -n "$DSYMUTIL"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9256$as_echo "$DSYMUTIL" >&6; }
9257else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259$as_echo "no" >&6; }
9260fi
9261
9262
9263fi
9264if test -z "$ac_cv_prog_DSYMUTIL"; then
9265 ac_ct_DSYMUTIL=$DSYMUTIL
9266 # Extract the first word of "dsymutil", so it can be a program name with args.
9267set dummy dsymutil; ac_word=$2
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272else
9273 if test -n "$ac_ct_DSYMUTIL"; then
9274 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9275else
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9286 fi
9287done
9288 done
9289IFS=$as_save_IFS
9290
9291fi
9292fi
9293ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9294if test -n "$ac_ct_DSYMUTIL"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9296$as_echo "$ac_ct_DSYMUTIL" >&6; }
9297else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9300fi
9301
9302 if test "x$ac_ct_DSYMUTIL" = x; then
9303 DSYMUTIL=":"
9304 else
9305 case $cross_compiling:$ac_tool_warned in
9306yes:)
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309ac_tool_warned=yes ;;
9310esac
9311 DSYMUTIL=$ac_ct_DSYMUTIL
9312 fi
9313else
9314 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9315fi
9316
9317 if test -n "$ac_tool_prefix"; then
9318 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9319set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
9322if ${ac_cv_prog_NMEDIT+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324else
9325 if test -n "$NMEDIT"; then
9326 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9327else
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9338 fi
9339done
9340 done
9341IFS=$as_save_IFS
9342
9343fi
9344fi
9345NMEDIT=$ac_cv_prog_NMEDIT
9346if test -n "$NMEDIT"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9348$as_echo "$NMEDIT" >&6; }
9349else
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
9352fi
9353
9354
9355fi
9356if test -z "$ac_cv_prog_NMEDIT"; then
9357 ac_ct_NMEDIT=$NMEDIT
9358 # Extract the first word of "nmedit", so it can be a program name with args.
9359set dummy nmedit; ac_word=$2
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361$as_echo_n "checking for $ac_word... " >&6; }
9362if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364else
9365 if test -n "$ac_ct_NMEDIT"; then
9366 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9367else
9368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $PATH
9370do
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9378 fi
9379done
9380 done
9381IFS=$as_save_IFS
9382
9383fi
9384fi
9385ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9386if test -n "$ac_ct_NMEDIT"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9388$as_echo "$ac_ct_NMEDIT" >&6; }
9389else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391$as_echo "no" >&6; }
9392fi
9393
9394 if test "x$ac_ct_NMEDIT" = x; then
9395 NMEDIT=":"
9396 else
9397 case $cross_compiling:$ac_tool_warned in
9398yes:)
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401ac_tool_warned=yes ;;
9402esac
9403 NMEDIT=$ac_ct_NMEDIT
9404 fi
9405else
9406 NMEDIT="$ac_cv_prog_NMEDIT"
9407fi
9408
9409 if test -n "$ac_tool_prefix"; then
9410 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9411set dummy ${ac_tool_prefix}lipo; ac_word=$2
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413$as_echo_n "checking for $ac_word... " >&6; }
9414if ${ac_cv_prog_LIPO+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416else
9417 if test -n "$LIPO"; then
9418 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9419else
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9430 fi
9431done
9432 done
9433IFS=$as_save_IFS
9434
9435fi
9436fi
9437LIPO=$ac_cv_prog_LIPO
9438if test -n "$LIPO"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9440$as_echo "$LIPO" >&6; }
9441else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
9444fi
9445
9446
9447fi
9448if test -z "$ac_cv_prog_LIPO"; then
9449 ac_ct_LIPO=$LIPO
9450 # Extract the first word of "lipo", so it can be a program name with args.
9451set dummy lipo; ac_word=$2
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453$as_echo_n "checking for $ac_word... " >&6; }
9454if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456else
9457 if test -n "$ac_ct_LIPO"; then
9458 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9459else
9460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461for as_dir in $PATH
9462do
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_ac_ct_LIPO="lipo"
9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 break 2
9470 fi
9471done
9472 done
9473IFS=$as_save_IFS
9474
9475fi
9476fi
9477ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9478if test -n "$ac_ct_LIPO"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9480$as_echo "$ac_ct_LIPO" >&6; }
9481else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483$as_echo "no" >&6; }
9484fi
9485
9486 if test "x$ac_ct_LIPO" = x; then
9487 LIPO=":"
9488 else
9489 case $cross_compiling:$ac_tool_warned in
9490yes:)
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9493ac_tool_warned=yes ;;
9494esac
9495 LIPO=$ac_ct_LIPO
9496 fi
9497else
9498 LIPO="$ac_cv_prog_LIPO"
9499fi
9500
9501 if test -n "$ac_tool_prefix"; then
9502 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9503set dummy ${ac_tool_prefix}otool; ac_word=$2
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505$as_echo_n "checking for $ac_word... " >&6; }
9506if ${ac_cv_prog_OTOOL+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508else
9509 if test -n "$OTOOL"; then
9510 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9511else
9512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513for as_dir in $PATH
9514do
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9522 fi
9523done
9524 done
9525IFS=$as_save_IFS
9526
9527fi
9528fi
9529OTOOL=$ac_cv_prog_OTOOL
9530if test -n "$OTOOL"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9532$as_echo "$OTOOL" >&6; }
9533else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535$as_echo "no" >&6; }
9536fi
9537
9538
9539fi
9540if test -z "$ac_cv_prog_OTOOL"; then
9541 ac_ct_OTOOL=$OTOOL
9542 # Extract the first word of "otool", so it can be a program name with args.
9543set dummy otool; ac_word=$2
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545$as_echo_n "checking for $ac_word... " >&6; }
9546if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9547 $as_echo_n "(cached) " >&6
9548else
9549 if test -n "$ac_ct_OTOOL"; then
9550 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9551else
9552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553for as_dir in $PATH
9554do
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559 ac_cv_prog_ac_ct_OTOOL="otool"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9562 fi
9563done
9564 done
9565IFS=$as_save_IFS
9566
9567fi
9568fi
9569ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9570if test -n "$ac_ct_OTOOL"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9572$as_echo "$ac_ct_OTOOL" >&6; }
9573else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575$as_echo "no" >&6; }
9576fi
9577
9578 if test "x$ac_ct_OTOOL" = x; then
9579 OTOOL=":"
9580 else
9581 case $cross_compiling:$ac_tool_warned in
9582yes:)
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9585ac_tool_warned=yes ;;
9586esac
9587 OTOOL=$ac_ct_OTOOL
9588 fi
9589else
9590 OTOOL="$ac_cv_prog_OTOOL"
9591fi
9592
9593 if test -n "$ac_tool_prefix"; then
9594 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9595set dummy ${ac_tool_prefix}otool64; ac_word=$2
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597$as_echo_n "checking for $ac_word... " >&6; }
9598if ${ac_cv_prog_OTOOL64+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600else
9601 if test -n "$OTOOL64"; then
9602 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9603else
9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615done
9616 done
9617IFS=$as_save_IFS
9618
9619fi
9620fi
9621OTOOL64=$ac_cv_prog_OTOOL64
9622if test -n "$OTOOL64"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9624$as_echo "$OTOOL64" >&6; }
9625else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627$as_echo "no" >&6; }
9628fi
9629
9630
9631fi
9632if test -z "$ac_cv_prog_OTOOL64"; then
9633 ac_ct_OTOOL64=$OTOOL64
9634 # Extract the first word of "otool64", so it can be a program name with args.
9635set dummy otool64; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640else
9641 if test -n "$ac_ct_OTOOL64"; then
9642 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_ac_ct_OTOOL64="otool64"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9662if test -n "$ac_ct_OTOOL64"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9664$as_echo "$ac_ct_OTOOL64" >&6; }
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670 if test "x$ac_ct_OTOOL64" = x; then
9671 OTOOL64=":"
9672 else
9673 case $cross_compiling:$ac_tool_warned in
9674yes:)
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677ac_tool_warned=yes ;;
9678esac
9679 OTOOL64=$ac_ct_OTOOL64
9680 fi
9681else
9682 OTOOL64="$ac_cv_prog_OTOOL64"
9683fi
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9712$as_echo_n "checking for -single_module linker flag... " >&6; }
9713if ${lt_cv_apple_cc_single_mod+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715else
9716 lt_cv_apple_cc_single_mod=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009717 if test -z "$LT_MULTI_MODULE"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009718 # By default we will add the -single_module flag. You can override
9719 # by either setting the environment variable LT_MULTI_MODULE
9720 # non-empty at configure time, or by adding -multi_module to the
9721 # link flags.
9722 rm -rf libconftest.dylib*
9723 echo "int foo(void){return 1;}" > conftest.c
9724 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9725-dynamiclib -Wl,-single_module conftest.c" >&5
9726 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9727 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9728 _lt_result=$?
9729 # If there is a non-empty error log, and "single_module"
9730 # appears in it, assume the flag caused a linker warning
9731 if test -s conftest.err && $GREP single_module conftest.err; then
9732 cat conftest.err >&5
9733 # Otherwise, if the output was created with a 0 exit code from
9734 # the compiler, it worked.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009735 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009736 lt_cv_apple_cc_single_mod=yes
9737 else
9738 cat conftest.err >&5
9739 fi
9740 rm -rf libconftest.dylib*
9741 rm -f conftest.*
9742 fi
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9745$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9748$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9749if ${lt_cv_ld_exported_symbols_list+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751else
9752 lt_cv_ld_exported_symbols_list=no
9753 save_LDFLAGS=$LDFLAGS
9754 echo "_main" > conftest.sym
9755 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h. */
9758
9759int
9760main ()
9761{
9762
9763 ;
9764 return 0;
9765}
9766_ACEOF
9767if ac_fn_c_try_link "$LINENO"; then :
9768 lt_cv_ld_exported_symbols_list=yes
9769else
9770 lt_cv_ld_exported_symbols_list=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009774 LDFLAGS=$save_LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -07009775
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9778$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9779
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9781$as_echo_n "checking for -force_load linker flag... " >&6; }
9782if ${lt_cv_ld_force_load+:} false; then :
9783 $as_echo_n "(cached) " >&6
9784else
9785 lt_cv_ld_force_load=no
9786 cat > conftest.c << _LT_EOF
9787int forced_loaded() { return 2;}
9788_LT_EOF
9789 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9790 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9791 echo "$AR cru libconftest.a conftest.o" >&5
9792 $AR cru libconftest.a conftest.o 2>&5
9793 echo "$RANLIB libconftest.a" >&5
9794 $RANLIB libconftest.a 2>&5
9795 cat > conftest.c << _LT_EOF
9796int main() { return 0;}
9797_LT_EOF
9798 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9799 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9800 _lt_result=$?
9801 if test -s conftest.err && $GREP force_load conftest.err; then
9802 cat conftest.err >&5
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009803 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009804 lt_cv_ld_force_load=yes
9805 else
9806 cat conftest.err >&5
9807 fi
9808 rm -f conftest.err libconftest.a conftest conftest.c
9809 rm -rf conftest.dSYM
9810
9811fi
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9813$as_echo "$lt_cv_ld_force_load" >&6; }
9814 case $host_os in
9815 rhapsody* | darwin1.[012])
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009816 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07009817 darwin1.*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009818 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07009819 darwin*) # darwin 5.x on
9820 # if running on 10.5 or later, the deployment target defaults
9821 # to the OS version, if on x86, and 10.4, the deployment
9822 # target defaults to 10.4. Don't you love it?
9823 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9824 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009825 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9826 10.[012][,.]*)
9827 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07009828 10.*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009829 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07009830 esac
9831 ;;
9832 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009833 if test yes = "$lt_cv_apple_cc_single_mod"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009834 _lt_dar_single_mod='$single_module'
9835 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009836 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9837 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Nick Kralevichf73ff172014-09-27 12:41:49 -07009838 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -07009840 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009841 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -07009842 _lt_dsymutil='~$DSYMUTIL $lib || :'
9843 else
9844 _lt_dsymutil=
9845 fi
9846 ;;
9847 esac
9848
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009849# func_munge_path_list VARIABLE PATH
9850# -----------------------------------
9851# VARIABLE is name of variable containing _space_ separated list of
9852# directories to be munged by the contents of PATH, which is string
9853# having a format:
9854# "DIR[:DIR]:"
9855# string "DIR[ DIR]" will be prepended to VARIABLE
9856# ":DIR[:DIR]"
9857# string "DIR[ DIR]" will be appended to VARIABLE
9858# "DIRP[:DIRP]::[DIRA:]DIRA"
9859# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9860# "DIRA[ DIRA]" will be appended to VARIABLE
9861# "DIR[:DIR]"
9862# VARIABLE will be replaced by "DIR[ DIR]"
9863func_munge_path_list ()
9864{
9865 case x$2 in
9866 x)
9867 ;;
9868 *:)
9869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9870 ;;
9871 x:*)
9872 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9873 ;;
9874 *::*)
9875 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9876 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9877 ;;
9878 *)
9879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9880 ;;
9881 esac
9882}
9883
Nick Kralevichf73ff172014-09-27 12:41:49 -07009884for ac_header in dlfcn.h
9885do :
9886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9887"
9888if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9889 cat >>confdefs.h <<_ACEOF
9890#define HAVE_DLFCN_H 1
9891_ACEOF
9892
9893fi
9894
9895done
9896
9897
9898
9899func_stripname_cnf ()
9900{
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009901 case $2 in
9902 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9903 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
Nick Kralevichf73ff172014-09-27 12:41:49 -07009904 esac
9905} # func_stripname_cnf
9906
9907
9908
9909
9910
9911# Set options
9912
9913
9914
9915 enable_dlopen=no
9916
9917
9918
9919 # Check whether --enable-shared was given.
9920if test "${enable_shared+set}" = set; then :
9921 enableval=$enable_shared; p=${PACKAGE-default}
9922 case $enableval in
9923 yes) enable_shared=yes ;;
9924 no) enable_shared=no ;;
9925 *)
9926 enable_shared=no
9927 # Look at the argument we got. We use all the common list separators.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009928 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Nick Kralevichf73ff172014-09-27 12:41:49 -07009929 for pkg in $enableval; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009930 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009931 if test "X$pkg" = "X$p"; then
9932 enable_shared=yes
9933 fi
9934 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009935 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009936 ;;
9937 esac
9938else
9939 enable_shared=yes
9940fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950 # Check whether --enable-static was given.
9951if test "${enable_static+set}" = set; then :
9952 enableval=$enable_static; p=${PACKAGE-default}
9953 case $enableval in
9954 yes) enable_static=yes ;;
9955 no) enable_static=no ;;
9956 *)
9957 enable_static=no
9958 # Look at the argument we got. We use all the common list separators.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009959 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Nick Kralevichf73ff172014-09-27 12:41:49 -07009960 for pkg in $enableval; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009961 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009962 if test "X$pkg" = "X$p"; then
9963 enable_static=yes
9964 fi
9965 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009966 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009967 ;;
9968 esac
9969else
9970 enable_static=yes
9971fi
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982# Check whether --with-pic was given.
9983if test "${with_pic+set}" = set; then :
9984 withval=$with_pic; lt_p=${PACKAGE-default}
9985 case $withval in
9986 yes|no) pic_mode=$withval ;;
9987 *)
9988 pic_mode=default
9989 # Look at the argument we got. We use all the common list separators.
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Nick Kralevichf73ff172014-09-27 12:41:49 -07009991 for lt_pkg in $withval; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009992 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009993 if test "X$lt_pkg" = "X$lt_p"; then
9994 pic_mode=yes
9995 fi
9996 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -07009997 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -07009998 ;;
9999 esac
10000else
10001 pic_mode=default
10002fi
10003
10004
Nick Kralevichf73ff172014-09-27 12:41:49 -070010005
10006
10007
10008
10009
10010
10011 # Check whether --enable-fast-install was given.
10012if test "${enable_fast_install+set}" = set; then :
10013 enableval=$enable_fast_install; p=${PACKAGE-default}
10014 case $enableval in
10015 yes) enable_fast_install=yes ;;
10016 no) enable_fast_install=no ;;
10017 *)
10018 enable_fast_install=no
10019 # Look at the argument we got. We use all the common list separators.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010020 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Nick Kralevichf73ff172014-09-27 12:41:49 -070010021 for pkg in $enableval; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010022 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070010023 if test "X$pkg" = "X$p"; then
10024 enable_fast_install=yes
10025 fi
10026 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010027 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070010028 ;;
10029 esac
10030else
10031 enable_fast_install=yes
10032fi
10033
10034
10035
10036
10037
10038
10039
10040
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010041 shared_archive_member_spec=
10042case $host,$enable_shared in
10043power*-*-aix[5-9]*,yes)
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10045$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10046
10047# Check whether --with-aix-soname was given.
10048if test "${with_aix_soname+set}" = set; then :
10049 withval=$with_aix_soname; case $withval in
10050 aix|svr4|both)
10051 ;;
10052 *)
10053 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10054 ;;
10055 esac
10056 lt_cv_with_aix_soname=$with_aix_soname
10057else
10058 if ${lt_cv_with_aix_soname+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 lt_cv_with_aix_soname=aix
10062fi
10063
10064 with_aix_soname=$lt_cv_with_aix_soname
10065fi
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10068$as_echo "$with_aix_soname" >&6; }
10069 if test aix != "$with_aix_soname"; then
10070 # For the AIX way of multilib, we name the shared archive member
10071 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10072 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10073 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10074 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10075 if test 64 = "${OBJECT_MODE-32}"; then
10076 shared_archive_member_spec=shr_64
10077 else
10078 shared_archive_member_spec=shr
10079 fi
10080 fi
10081 ;;
10082*)
10083 with_aix_soname=aix
10084 ;;
10085esac
10086
10087
10088
10089
10090
10091
10092
Nick Kralevichf73ff172014-09-27 12:41:49 -070010093
10094
10095
10096# This can be used to rebuild libtool when needed
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010097LIBTOOL_DEPS=$ltmain
Nick Kralevichf73ff172014-09-27 12:41:49 -070010098
10099# Always use our own libtool.
10100LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131test -z "$LN_S" && LN_S="ln -s"
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010146if test -n "${ZSH_VERSION+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010147 setopt NO_GLOB_SUBST
10148fi
10149
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10151$as_echo_n "checking for objdir... " >&6; }
10152if ${lt_cv_objdir+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154else
10155 rm -f .libs 2>/dev/null
10156mkdir .libs 2>/dev/null
10157if test -d .libs; then
10158 lt_cv_objdir=.libs
10159else
10160 # MS-DOS does not allow filenames that begin with a dot.
10161 lt_cv_objdir=_libs
10162fi
10163rmdir .libs 2>/dev/null
10164fi
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10166$as_echo "$lt_cv_objdir" >&6; }
10167objdir=$lt_cv_objdir
10168
10169
10170
10171
10172
10173cat >>confdefs.h <<_ACEOF
10174#define LT_OBJDIR "$lt_cv_objdir/"
10175_ACEOF
10176
10177
10178
10179
10180case $host_os in
10181aix3*)
10182 # AIX sometimes has problems with the GCC collect2 program. For some
10183 # reason, if we set the COLLECT_NAMES environment variable, the problems
10184 # vanish in a puff of smoke.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010185 if test set != "${COLLECT_NAMES+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010186 COLLECT_NAMES=
10187 export COLLECT_NAMES
10188 fi
10189 ;;
10190esac
10191
10192# Global variables:
10193ofile=libtool
10194can_build_shared=yes
10195
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010196# All known linkers require a '.a' archive for static linking (except MSVC,
Nick Kralevichf73ff172014-09-27 12:41:49 -070010197# which needs '.lib').
10198libext=a
10199
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010200with_gnu_ld=$lt_cv_prog_gnu_ld
Nick Kralevichf73ff172014-09-27 12:41:49 -070010201
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010202old_CC=$CC
10203old_CFLAGS=$CFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070010204
10205# Set sane defaults for various variables
10206test -z "$CC" && CC=cc
10207test -z "$LTCC" && LTCC=$CC
10208test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10209test -z "$LD" && LD=ld
10210test -z "$ac_objext" && ac_objext=o
10211
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010212func_cc_basename $compiler
10213cc_basename=$func_cc_basename_result
Nick Kralevichf73ff172014-09-27 12:41:49 -070010214
10215
10216# Only perform the check for file, if the check method requires it
10217test -z "$MAGIC_CMD" && MAGIC_CMD=file
10218case $deplibs_check_method in
10219file_magic*)
10220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10222$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10223if ${lt_cv_path_MAGIC_CMD+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225else
10226 case $MAGIC_CMD in
10227[\\/*] | ?:[\\/]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010228 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Nick Kralevichf73ff172014-09-27 12:41:49 -070010229 ;;
10230*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010231 lt_save_MAGIC_CMD=$MAGIC_CMD
10232 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Nick Kralevichf73ff172014-09-27 12:41:49 -070010233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10234 for ac_dir in $ac_dummy; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010235 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070010236 test -z "$ac_dir" && ac_dir=.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010237 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10238 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Nick Kralevichf73ff172014-09-27 12:41:49 -070010239 if test -n "$file_magic_test_file"; then
10240 case $deplibs_check_method in
10241 "file_magic "*)
10242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010243 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10245 $EGREP "$file_magic_regex" > /dev/null; then
10246 :
10247 else
10248 cat <<_LT_EOF 1>&2
10249
10250*** Warning: the command libtool uses to detect shared libraries,
10251*** $file_magic_cmd, produces output that libtool cannot recognize.
10252*** The result is that libtool may fail to recognize shared libraries
10253*** as such. This will affect the creation of libtool libraries that
10254*** depend on shared libraries, but programs linked with such libtool
10255*** libraries will work regardless of this problem. Nevertheless, you
10256*** may want to report the problem to your system manager and/or to
10257*** bug-libtool@gnu.org
10258
10259_LT_EOF
10260 fi ;;
10261 esac
10262 fi
10263 break
10264 fi
10265 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010266 IFS=$lt_save_ifs
10267 MAGIC_CMD=$lt_save_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010268 ;;
10269esac
10270fi
10271
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010272MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010273if test -n "$MAGIC_CMD"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10275$as_echo "$MAGIC_CMD" >&6; }
10276else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278$as_echo "no" >&6; }
10279fi
10280
10281
10282
10283
10284
10285if test -z "$lt_cv_path_MAGIC_CMD"; then
10286 if test -n "$ac_tool_prefix"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10288$as_echo_n "checking for file... " >&6; }
10289if ${lt_cv_path_MAGIC_CMD+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291else
10292 case $MAGIC_CMD in
10293[\\/*] | ?:[\\/]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010294 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Nick Kralevichf73ff172014-09-27 12:41:49 -070010295 ;;
10296*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010297 lt_save_MAGIC_CMD=$MAGIC_CMD
10298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Nick Kralevichf73ff172014-09-27 12:41:49 -070010299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10300 for ac_dir in $ac_dummy; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010301 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070010302 test -z "$ac_dir" && ac_dir=.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010303 if test -f "$ac_dir/file"; then
10304 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Nick Kralevichf73ff172014-09-27 12:41:49 -070010305 if test -n "$file_magic_test_file"; then
10306 case $deplibs_check_method in
10307 "file_magic "*)
10308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10311 $EGREP "$file_magic_regex" > /dev/null; then
10312 :
10313 else
10314 cat <<_LT_EOF 1>&2
10315
10316*** Warning: the command libtool uses to detect shared libraries,
10317*** $file_magic_cmd, produces output that libtool cannot recognize.
10318*** The result is that libtool may fail to recognize shared libraries
10319*** as such. This will affect the creation of libtool libraries that
10320*** depend on shared libraries, but programs linked with such libtool
10321*** libraries will work regardless of this problem. Nevertheless, you
10322*** may want to report the problem to your system manager and/or to
10323*** bug-libtool@gnu.org
10324
10325_LT_EOF
10326 fi ;;
10327 esac
10328 fi
10329 break
10330 fi
10331 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010332 IFS=$lt_save_ifs
10333 MAGIC_CMD=$lt_save_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010334 ;;
10335esac
10336fi
10337
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010338MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Nick Kralevichf73ff172014-09-27 12:41:49 -070010339if test -n "$MAGIC_CMD"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10341$as_echo "$MAGIC_CMD" >&6; }
10342else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
10345fi
10346
10347
10348 else
10349 MAGIC_CMD=:
10350 fi
10351fi
10352
10353 fi
10354 ;;
10355esac
10356
10357# Use C for the default configuration in the libtool script
10358
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010359lt_save_CC=$CC
Nick Kralevichf73ff172014-09-27 12:41:49 -070010360ac_ext=c
10361ac_cpp='$CPP $CPPFLAGS'
10362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366
10367# Source file extension for C test sources.
10368ac_ext=c
10369
10370# Object file extension for compiled C test sources.
10371objext=o
10372objext=$objext
10373
10374# Code to be used in simple compile tests
10375lt_simple_compile_test_code="int some_variable = 0;"
10376
10377# Code to be used in simple link tests
10378lt_simple_link_test_code='int main(){return(0);}'
10379
10380
10381
10382
10383
10384
10385
10386# If no C compiler was specified, use CC.
10387LTCC=${LTCC-"$CC"}
10388
10389# If no C compiler flags were specified, use CFLAGS.
10390LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10391
10392# Allow CC to be a program name with arguments.
10393compiler=$CC
10394
10395# Save the default compiler, since it gets overwritten when the other
10396# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10397compiler_DEFAULT=$CC
10398
10399# save warnings/boilerplate of simple test code
10400ac_outfile=conftest.$ac_objext
10401echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10402eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10403_lt_compiler_boilerplate=`cat conftest.err`
10404$RM conftest*
10405
10406ac_outfile=conftest.$ac_objext
10407echo "$lt_simple_link_test_code" >conftest.$ac_ext
10408eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10409_lt_linker_boilerplate=`cat conftest.err`
10410$RM -r conftest*
10411
10412
10413## CAVEAT EMPTOR:
10414## There is no encapsulation within the following macros, do not change
10415## the running order or otherwise move them around unless you know exactly
10416## what you are doing...
10417if test -n "$compiler"; then
10418
10419lt_prog_compiler_no_builtin_flag=
10420
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010421if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010422 case $cc_basename in
10423 nvcc*)
10424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10425 *)
10426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10427 esac
10428
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10430$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10431if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434 lt_cv_prog_compiler_rtti_exceptions=no
10435 ac_outfile=conftest.$ac_objext
10436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010437 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Nick Kralevichf73ff172014-09-27 12:41:49 -070010438 # Insert the option either (1) after the last *FLAGS variable, or
10439 # (2) before a word containing "conftest.", or (3) at the end.
10440 # Note that $ac_compile itself does not contain backslashes and begins
10441 # with a dollar sign (not a hyphen), so the echo should work correctly.
10442 # The option is referenced via a variable to avoid confusing sed.
10443 lt_compile=`echo "$ac_compile" | $SED \
10444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10446 -e 's:$: $lt_compiler_flag:'`
10447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10448 (eval "$lt_compile" 2>conftest.err)
10449 ac_status=$?
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 if (exit $ac_status) && test -s "$ac_outfile"; then
10453 # The compiler can only warn and ignore the option if not recognized
10454 # So say no if there are warnings other than the usual output.
10455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler_rtti_exceptions=yes
10459 fi
10460 fi
10461 $RM conftest*
10462
10463fi
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10465$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10466
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010467if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10469else
10470 :
10471fi
10472
10473fi
10474
10475
10476
10477
10478
10479
10480 lt_prog_compiler_wl=
10481lt_prog_compiler_pic=
10482lt_prog_compiler_static=
10483
10484
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010485 if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010486 lt_prog_compiler_wl='-Wl,'
10487 lt_prog_compiler_static='-static'
10488
10489 case $host_os in
10490 aix*)
10491 # All AIX code is PIC.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010492 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010493 # AIX 5 now supports IA64 processor
10494 lt_prog_compiler_static='-Bstatic'
10495 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010496 lt_prog_compiler_pic='-fPIC'
Nick Kralevichf73ff172014-09-27 12:41:49 -070010497 ;;
10498
10499 amigaos*)
10500 case $host_cpu in
10501 powerpc)
10502 # see comment about AmigaOS4 .so support
10503 lt_prog_compiler_pic='-fPIC'
10504 ;;
10505 m68k)
10506 # FIXME: we need at least 68020 code to build shared libraries, but
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010507 # adding the '-m68020' flag to GCC prevents building anything better,
10508 # like '-m68040'.
Nick Kralevichf73ff172014-09-27 12:41:49 -070010509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10510 ;;
10511 esac
10512 ;;
10513
10514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10515 # PIC is the default for these OSes.
10516 ;;
10517
10518 mingw* | cygwin* | pw32* | os2* | cegcc*)
10519 # This hack is so that the source file can tell whether it is being
10520 # built for inclusion in a dll (and should export symbols for example).
10521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10522 # (--disable-auto-import) libraries
10523 lt_prog_compiler_pic='-DDLL_EXPORT'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010524 case $host_os in
10525 os2*)
10526 lt_prog_compiler_static='$wl-static'
10527 ;;
10528 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070010529 ;;
10530
10531 darwin* | rhapsody*)
10532 # PIC is the default on this platform
10533 # Common symbols not allowed in MH_DYLIB files
10534 lt_prog_compiler_pic='-fno-common'
10535 ;;
10536
10537 haiku*)
10538 # PIC is the default for Haiku.
10539 # The "-static" flag exists, but is broken.
10540 lt_prog_compiler_static=
10541 ;;
10542
10543 hpux*)
10544 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10545 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10546 # sets the default TLS model and affects inlining.
10547 case $host_cpu in
10548 hppa*64*)
10549 # +Z the default
10550 ;;
10551 *)
10552 lt_prog_compiler_pic='-fPIC'
10553 ;;
10554 esac
10555 ;;
10556
10557 interix[3-9]*)
10558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10559 # Instead, we relocate shared libraries at runtime.
10560 ;;
10561
10562 msdosdjgpp*)
10563 # Just because we use GCC doesn't mean we suddenly get shared libraries
10564 # on systems that don't support them.
10565 lt_prog_compiler_can_build_shared=no
10566 enable_shared=no
10567 ;;
10568
10569 *nto* | *qnx*)
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10573 ;;
10574
10575 sysv4*MP*)
10576 if test -d /usr/nec; then
10577 lt_prog_compiler_pic=-Kconform_pic
10578 fi
10579 ;;
10580
10581 *)
10582 lt_prog_compiler_pic='-fPIC'
10583 ;;
10584 esac
10585
10586 case $cc_basename in
10587 nvcc*) # Cuda Compiler Driver 2.2
10588 lt_prog_compiler_wl='-Xlinker '
10589 if test -n "$lt_prog_compiler_pic"; then
10590 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10591 fi
10592 ;;
10593 esac
10594 else
10595 # PORTME Check for flag to pass linker flags through the system compiler.
10596 case $host_os in
10597 aix*)
10598 lt_prog_compiler_wl='-Wl,'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010599 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static='-Bstatic'
10602 else
10603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10604 fi
10605 ;;
10606
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010607 darwin* | rhapsody*)
10608 # PIC is the default on this platform
10609 # Common symbols not allowed in MH_DYLIB files
10610 lt_prog_compiler_pic='-fno-common'
10611 case $cc_basename in
10612 nagfor*)
10613 # NAG Fortran compiler
10614 lt_prog_compiler_wl='-Wl,-Wl,,'
10615 lt_prog_compiler_pic='-PIC'
10616 lt_prog_compiler_static='-Bstatic'
10617 ;;
10618 esac
10619 ;;
10620
Nick Kralevichf73ff172014-09-27 12:41:49 -070010621 mingw* | cygwin* | pw32* | os2* | cegcc*)
10622 # This hack is so that the source file can tell whether it is being
10623 # built for inclusion in a dll (and should export symbols for example).
10624 lt_prog_compiler_pic='-DDLL_EXPORT'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010625 case $host_os in
10626 os2*)
10627 lt_prog_compiler_static='$wl-static'
10628 ;;
10629 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070010630 ;;
10631
10632 hpux9* | hpux10* | hpux11*)
10633 lt_prog_compiler_wl='-Wl,'
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10636 case $host_cpu in
10637 hppa*64*|ia64*)
10638 # +Z the default
10639 ;;
10640 *)
10641 lt_prog_compiler_pic='+Z'
10642 ;;
10643 esac
10644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010645 lt_prog_compiler_static='$wl-a ${wl}archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070010646 ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649 lt_prog_compiler_wl='-Wl,'
10650 # PIC (with -KPIC) is the default.
10651 lt_prog_compiler_static='-non_shared'
10652 ;;
10653
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070010655 case $cc_basename in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010656 # old Intel for x86_64, which still supported -KPIC.
Nick Kralevichf73ff172014-09-27 12:41:49 -070010657 ecc*)
10658 lt_prog_compiler_wl='-Wl,'
10659 lt_prog_compiler_pic='-KPIC'
10660 lt_prog_compiler_static='-static'
10661 ;;
10662 # icc used to be incompatible with GCC.
10663 # ICC 10 doesn't accept -KPIC any more.
10664 icc* | ifort*)
10665 lt_prog_compiler_wl='-Wl,'
10666 lt_prog_compiler_pic='-fPIC'
10667 lt_prog_compiler_static='-static'
10668 ;;
10669 # Lahey Fortran 8.1.
10670 lf95*)
10671 lt_prog_compiler_wl='-Wl,'
10672 lt_prog_compiler_pic='--shared'
10673 lt_prog_compiler_static='--static'
10674 ;;
10675 nagfor*)
10676 # NAG Fortran compiler
10677 lt_prog_compiler_wl='-Wl,-Wl,,'
10678 lt_prog_compiler_pic='-PIC'
10679 lt_prog_compiler_static='-Bstatic'
10680 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010681 tcc*)
10682 # Fabrice Bellard et al's Tiny C Compiler
10683 lt_prog_compiler_wl='-Wl,'
10684 lt_prog_compiler_pic='-fPIC'
10685 lt_prog_compiler_static='-static'
10686 ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070010687 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10688 # Portland Group compilers (*not* the Pentium gcc compiler,
10689 # which looks to be a dead project)
10690 lt_prog_compiler_wl='-Wl,'
10691 lt_prog_compiler_pic='-fpic'
10692 lt_prog_compiler_static='-Bstatic'
10693 ;;
10694 ccc*)
10695 lt_prog_compiler_wl='-Wl,'
10696 # All Alpha code is PIC.
10697 lt_prog_compiler_static='-non_shared'
10698 ;;
10699 xl* | bgxl* | bgf* | mpixl*)
10700 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_pic='-qpic'
10703 lt_prog_compiler_static='-qstaticlink'
10704 ;;
10705 *)
10706 case `$CC -V 2>&1 | sed 5q` in
10707 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10708 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10709 lt_prog_compiler_pic='-KPIC'
10710 lt_prog_compiler_static='-Bstatic'
10711 lt_prog_compiler_wl=''
10712 ;;
10713 *Sun\ F* | *Sun*Fortran*)
10714 lt_prog_compiler_pic='-KPIC'
10715 lt_prog_compiler_static='-Bstatic'
10716 lt_prog_compiler_wl='-Qoption ld '
10717 ;;
10718 *Sun\ C*)
10719 # Sun C 5.9
10720 lt_prog_compiler_pic='-KPIC'
10721 lt_prog_compiler_static='-Bstatic'
10722 lt_prog_compiler_wl='-Wl,'
10723 ;;
10724 *Intel*\ [CF]*Compiler*)
10725 lt_prog_compiler_wl='-Wl,'
10726 lt_prog_compiler_pic='-fPIC'
10727 lt_prog_compiler_static='-static'
10728 ;;
10729 *Portland\ Group*)
10730 lt_prog_compiler_wl='-Wl,'
10731 lt_prog_compiler_pic='-fpic'
10732 lt_prog_compiler_static='-Bstatic'
10733 ;;
10734 esac
10735 ;;
10736 esac
10737 ;;
10738
10739 newsos6)
10740 lt_prog_compiler_pic='-KPIC'
10741 lt_prog_compiler_static='-Bstatic'
10742 ;;
10743
10744 *nto* | *qnx*)
10745 # QNX uses GNU C++, but need to define -shared option too, otherwise
10746 # it will coredump.
10747 lt_prog_compiler_pic='-fPIC -shared'
10748 ;;
10749
10750 osf3* | osf4* | osf5*)
10751 lt_prog_compiler_wl='-Wl,'
10752 # All OSF/1 code is PIC.
10753 lt_prog_compiler_static='-non_shared'
10754 ;;
10755
10756 rdos*)
10757 lt_prog_compiler_static='-non_shared'
10758 ;;
10759
10760 solaris*)
10761 lt_prog_compiler_pic='-KPIC'
10762 lt_prog_compiler_static='-Bstatic'
10763 case $cc_basename in
10764 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10765 lt_prog_compiler_wl='-Qoption ld ';;
10766 *)
10767 lt_prog_compiler_wl='-Wl,';;
10768 esac
10769 ;;
10770
10771 sunos4*)
10772 lt_prog_compiler_wl='-Qoption ld '
10773 lt_prog_compiler_pic='-PIC'
10774 lt_prog_compiler_static='-Bstatic'
10775 ;;
10776
10777 sysv4 | sysv4.2uw2* | sysv4.3*)
10778 lt_prog_compiler_wl='-Wl,'
10779 lt_prog_compiler_pic='-KPIC'
10780 lt_prog_compiler_static='-Bstatic'
10781 ;;
10782
10783 sysv4*MP*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010784 if test -d /usr/nec; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010785 lt_prog_compiler_pic='-Kconform_pic'
10786 lt_prog_compiler_static='-Bstatic'
10787 fi
10788 ;;
10789
10790 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10791 lt_prog_compiler_wl='-Wl,'
10792 lt_prog_compiler_pic='-KPIC'
10793 lt_prog_compiler_static='-Bstatic'
10794 ;;
10795
10796 unicos*)
10797 lt_prog_compiler_wl='-Wl,'
10798 lt_prog_compiler_can_build_shared=no
10799 ;;
10800
10801 uts4*)
10802 lt_prog_compiler_pic='-pic'
10803 lt_prog_compiler_static='-Bstatic'
10804 ;;
10805
10806 *)
10807 lt_prog_compiler_can_build_shared=no
10808 ;;
10809 esac
10810 fi
10811
10812case $host_os in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010813 # For platforms that do not support PIC, -DPIC is meaningless:
Nick Kralevichf73ff172014-09-27 12:41:49 -070010814 *djgpp*)
10815 lt_prog_compiler_pic=
10816 ;;
10817 *)
10818 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10819 ;;
10820esac
10821
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10823$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10824if ${lt_cv_prog_compiler_pic+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826else
10827 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10828fi
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10830$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10831lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10832
10833#
10834# Check to make sure the PIC flag actually works.
10835#
10836if test -n "$lt_prog_compiler_pic"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10838$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10839if ${lt_cv_prog_compiler_pic_works+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841else
10842 lt_cv_prog_compiler_pic_works=no
10843 ac_outfile=conftest.$ac_objext
10844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Nick Kralevichf73ff172014-09-27 12:41:49 -070010846 # Insert the option either (1) after the last *FLAGS variable, or
10847 # (2) before a word containing "conftest.", or (3) at the end.
10848 # Note that $ac_compile itself does not contain backslashes and begins
10849 # with a dollar sign (not a hyphen), so the echo should work correctly.
10850 # The option is referenced via a variable to avoid confusing sed.
10851 lt_compile=`echo "$ac_compile" | $SED \
10852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10854 -e 's:$: $lt_compiler_flag:'`
10855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10856 (eval "$lt_compile" 2>conftest.err)
10857 ac_status=$?
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 if (exit $ac_status) && test -s "$ac_outfile"; then
10861 # The compiler can only warn and ignore the option if not recognized
10862 # So say no if there are warnings other than the usual output.
10863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10866 lt_cv_prog_compiler_pic_works=yes
10867 fi
10868 fi
10869 $RM conftest*
10870
10871fi
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10873$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10874
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010875if test yes = "$lt_cv_prog_compiler_pic_works"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010876 case $lt_prog_compiler_pic in
10877 "" | " "*) ;;
10878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10879 esac
10880else
10881 lt_prog_compiler_pic=
10882 lt_prog_compiler_can_build_shared=no
10883fi
10884
10885fi
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897#
10898# Check to make sure the static flag actually works.
10899#
10900wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10902$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10903if ${lt_cv_prog_compiler_static_works+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905else
10906 lt_cv_prog_compiler_static_works=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010907 save_LDFLAGS=$LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070010908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10911 # The linker can only warn and ignore the option if not recognized
10912 # So say no if there are warnings
10913 if test -s conftest.err; then
10914 # Append any errors to the config.log.
10915 cat conftest.err 1>&5
10916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10918 if diff conftest.exp conftest.er2 >/dev/null; then
10919 lt_cv_prog_compiler_static_works=yes
10920 fi
10921 else
10922 lt_cv_prog_compiler_static_works=yes
10923 fi
10924 fi
10925 $RM -r conftest*
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010926 LDFLAGS=$save_LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070010927
10928fi
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10930$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10931
Elliott Hughes8366e8b2015-08-14 20:48:15 -070010932if test yes = "$lt_cv_prog_compiler_static_works"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070010933 :
10934else
10935 lt_prog_compiler_static=
10936fi
10937
10938
10939
10940
10941
10942
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10946if ${lt_cv_prog_compiler_c_o+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948else
10949 lt_cv_prog_compiler_c_o=no
10950 $RM -r conftest 2>/dev/null
10951 mkdir conftest
10952 cd conftest
10953 mkdir out
10954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10955
10956 lt_compiler_flag="-o out/conftest2.$ac_objext"
10957 # Insert the option either (1) after the last *FLAGS variable, or
10958 # (2) before a word containing "conftest.", or (3) at the end.
10959 # Note that $ac_compile itself does not contain backslashes and begins
10960 # with a dollar sign (not a hyphen), so the echo should work correctly.
10961 lt_compile=`echo "$ac_compile" | $SED \
10962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10964 -e 's:$: $lt_compiler_flag:'`
10965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10966 (eval "$lt_compile" 2>out/conftest.err)
10967 ac_status=$?
10968 cat out/conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10971 then
10972 # The compiler can only warn and ignore the option if not recognized
10973 # So say no if there are warnings
10974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10977 lt_cv_prog_compiler_c_o=yes
10978 fi
10979 fi
10980 chmod u+w . 2>&5
10981 $RM conftest*
10982 # SGI C++ compiler will create directory out/ii_files/ for
10983 # template instantiation
10984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10985 $RM out/* && rmdir out
10986 cd ..
10987 $RM -r conftest
10988 $RM conftest*
10989
10990fi
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10992$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10993
10994
10995
10996
10997
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11000$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11001if ${lt_cv_prog_compiler_c_o+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003else
11004 lt_cv_prog_compiler_c_o=no
11005 $RM -r conftest 2>/dev/null
11006 mkdir conftest
11007 cd conftest
11008 mkdir out
11009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11010
11011 lt_compiler_flag="-o out/conftest2.$ac_objext"
11012 # Insert the option either (1) after the last *FLAGS variable, or
11013 # (2) before a word containing "conftest.", or (3) at the end.
11014 # Note that $ac_compile itself does not contain backslashes and begins
11015 # with a dollar sign (not a hyphen), so the echo should work correctly.
11016 lt_compile=`echo "$ac_compile" | $SED \
11017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11019 -e 's:$: $lt_compiler_flag:'`
11020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11021 (eval "$lt_compile" 2>out/conftest.err)
11022 ac_status=$?
11023 cat out/conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11026 then
11027 # The compiler can only warn and ignore the option if not recognized
11028 # So say no if there are warnings
11029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11032 lt_cv_prog_compiler_c_o=yes
11033 fi
11034 fi
11035 chmod u+w . 2>&5
11036 $RM conftest*
11037 # SGI C++ compiler will create directory out/ii_files/ for
11038 # template instantiation
11039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11040 $RM out/* && rmdir out
11041 cd ..
11042 $RM -r conftest
11043 $RM conftest*
11044
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11047$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11048
11049
11050
11051
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011052hard_links=nottested
11053if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011054 # do not overwrite the value of need_locks provided by the user
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11056$as_echo_n "checking if we can lock with hard links... " >&6; }
11057 hard_links=yes
11058 $RM conftest*
11059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11060 touch conftest.a
11061 ln conftest.a conftest.b 2>&5 || hard_links=no
11062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11064$as_echo "$hard_links" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011065 if test no = "$hard_links"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11067$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Nick Kralevichf73ff172014-09-27 12:41:49 -070011068 need_locks=warn
11069 fi
11070else
11071 need_locks=no
11072fi
11073
11074
11075
11076
11077
11078
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11080$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11081
11082 runpath_var=
11083 allow_undefined_flag=
11084 always_export_symbols=no
11085 archive_cmds=
11086 archive_expsym_cmds=
11087 compiler_needs_object=no
11088 enable_shared_with_static_runtimes=no
11089 export_dynamic_flag_spec=
11090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11091 hardcode_automatic=no
11092 hardcode_direct=no
11093 hardcode_direct_absolute=no
11094 hardcode_libdir_flag_spec=
11095 hardcode_libdir_separator=
11096 hardcode_minus_L=no
11097 hardcode_shlibpath_var=unsupported
11098 inherit_rpath=no
11099 link_all_deplibs=unknown
11100 module_cmds=
11101 module_expsym_cmds=
11102 old_archive_from_new_cmds=
11103 old_archive_from_expsyms_cmds=
11104 thread_safe_flag_spec=
11105 whole_archive_flag_spec=
11106 # include_expsyms should be a list of space-separated symbols to be *always*
11107 # included in the symbol list
11108 include_expsyms=
11109 # exclude_expsyms can be an extended regexp of symbols to exclude
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011110 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11111 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11112 # as well as any symbol that contains 'd'.
Nick Kralevichf73ff172014-09-27 12:41:49 -070011113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11115 # platforms (ab)use it in PIC code, but their linkers get confused if
11116 # the symbol is explicitly referenced. Since portable code cannot
11117 # rely on this symbol name, it's probably fine to never include it in
11118 # preloaded symbol tables.
11119 # Exclude shared library initialization/finalization symbols.
11120 extract_expsyms_cmds=
11121
11122 case $host_os in
11123 cygwin* | mingw* | pw32* | cegcc*)
11124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11125 # When not using gcc, we currently assume that we are using
11126 # Microsoft Visual C++.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011127 if test yes != "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011128 with_gnu_ld=no
11129 fi
11130 ;;
11131 interix*)
11132 # we just hope/assume this is gcc and not c89 (= MSVC++)
11133 with_gnu_ld=yes
11134 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011135 openbsd* | bitrig*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070011136 with_gnu_ld=no
11137 ;;
11138 esac
11139
11140 ld_shlibs=yes
11141
11142 # On some targets, GNU ld is compatible enough with the native linker
11143 # that we're better off using the native interface for both.
11144 lt_use_gnu_ld_interface=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011145 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011146 case $host_os in
11147 aix*)
11148 # The AIX port of GNU ld has always aspired to compatibility
11149 # with the native linker. However, as the warning in the GNU ld
11150 # block says, versions before 2.19.5* couldn't really create working
11151 # shared libraries, regardless of the interface used.
11152 case `$LD -v 2>&1` in
11153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11156 *)
11157 lt_use_gnu_ld_interface=yes
11158 ;;
11159 esac
11160 ;;
11161 *)
11162 lt_use_gnu_ld_interface=yes
11163 ;;
11164 esac
11165 fi
11166
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011167 if test yes = "$lt_use_gnu_ld_interface"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011168 # If archive_cmds runs LD, not CC, wlarc should be empty
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011169 wlarc='$wl'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011170
11171 # Set some defaults for GNU ld with shared library support. These
11172 # are reset later if shared libraries are not supported. Putting them
11173 # here allows them to be overridden if necessary.
11174 runpath_var=LD_RUN_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11176 export_dynamic_flag_spec='$wl--export-dynamic'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011177 # ancient GNU ld didn't support --whole-archive et. al.
11178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011179 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011180 else
11181 whole_archive_flag_spec=
11182 fi
11183 supports_anon_versioning=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011184 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Nick Kralevichf73ff172014-09-27 12:41:49 -070011185 *GNU\ gold*) supports_anon_versioning=yes ;;
11186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11189 *\ 2.11.*) ;; # other 2.11 versions
11190 *) supports_anon_versioning=yes ;;
11191 esac
11192
11193 # See if GNU ld supports shared libraries.
11194 case $host_os in
11195 aix[3-9]*)
11196 # On AIX/PPC, the GNU linker is very broken
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011197 if test ia64 != "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011198 ld_shlibs=no
11199 cat <<_LT_EOF 1>&2
11200
11201*** Warning: the GNU linker, at least up to release 2.19, is reported
11202*** to be unable to reliably create shared libraries on AIX.
11203*** Therefore, libtool is disabling shared libraries support. If you
11204*** really care for shared libraries, you may want to install binutils
11205*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11206*** You will then need to restart the configuration process.
11207
11208_LT_EOF
11209 fi
11210 ;;
11211
11212 amigaos*)
11213 case $host_cpu in
11214 powerpc)
11215 # see comment about AmigaOS4 .so support
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011217 archive_expsym_cmds=''
11218 ;;
11219 m68k)
11220 archive_cmds='$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)'
11221 hardcode_libdir_flag_spec='-L$libdir'
11222 hardcode_minus_L=yes
11223 ;;
11224 esac
11225 ;;
11226
11227 beos*)
11228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229 allow_undefined_flag=unsupported
11230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11231 # support --undefined. This deserves some investigation. FIXME
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011233 else
11234 ld_shlibs=no
11235 fi
11236 ;;
11237
11238 cygwin* | mingw* | pw32* | cegcc*)
11239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11240 # as there is no search path for DLLs.
11241 hardcode_libdir_flag_spec='-L$libdir'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011242 export_dynamic_flag_spec='$wl--export-all-symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011243 allow_undefined_flag=unsupported
11244 always_export_symbols=no
11245 enable_shared_with_static_runtimes=yes
11246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11247 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11248
11249 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11251 # If the export-symbols file already is a .def file, use it as
11252 # is; otherwise, prepend EXPORTS...
11253 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11254 cp $export_symbols $output_objdir/$soname.def;
11255 else
11256 echo EXPORTS > $output_objdir/$soname.def;
11257 cat $export_symbols >> $output_objdir/$soname.def;
11258 fi~
11259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011260 else
11261 ld_shlibs=no
11262 fi
11263 ;;
11264
11265 haiku*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011267 link_all_deplibs=yes
11268 ;;
11269
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011270 os2*)
11271 hardcode_libdir_flag_spec='-L$libdir'
11272 hardcode_minus_L=yes
11273 allow_undefined_flag=unsupported
11274 shrext_cmds=.dll
11275 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11278 $ECHO EXPORTS >> $output_objdir/$libname.def~
11279 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11281 emximp -o $lib $output_objdir/$libname.def'
11282 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11285 $ECHO EXPORTS >> $output_objdir/$libname.def~
11286 prefix_cmds="$SED"~
11287 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11288 prefix_cmds="$prefix_cmds -e 1d";
11289 fi~
11290 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11291 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11293 emximp -o $lib $output_objdir/$libname.def'
11294 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11295 enable_shared_with_static_runtimes=yes
11296 ;;
11297
Nick Kralevichf73ff172014-09-27 12:41:49 -070011298 interix[3-9]*)
11299 hardcode_direct=no
11300 hardcode_shlibpath_var=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011301 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11302 export_dynamic_flag_spec='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11304 # Instead, shared libraries are loaded at an image base (0x10000000 by
11305 # default) and relocated if they conflict, which is a slow very memory
11306 # consuming and fragmenting process. To avoid this, we pick a random,
11307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11310 archive_expsym_cmds='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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011311 ;;
11312
11313 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11314 tmp_diet=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011315 if test linux-dietlibc = "$host_os"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011316 case $cc_basename in
11317 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11318 esac
11319 fi
11320 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011321 && test no = "$tmp_diet"
Nick Kralevichf73ff172014-09-27 12:41:49 -070011322 then
11323 tmp_addflag=' $pic_flag'
11324 tmp_sharedflag='-shared'
11325 case $cc_basename,$host_cpu in
11326 pgcc*) # Portland Group C compiler
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011327 whole_archive_flag_spec='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011328 tmp_addflag=' $pic_flag'
11329 ;;
11330 pgf77* | pgf90* | pgf95* | pgfortran*)
11331 # Portland Group f77 and f90 compilers
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011332 whole_archive_flag_spec='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011333 tmp_addflag=' $pic_flag -Mnomain' ;;
11334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11335 tmp_addflag=' -i_dynamic' ;;
11336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11337 tmp_addflag=' -i_dynamic -nofor_main' ;;
11338 ifc* | ifort*) # Intel Fortran compiler
11339 tmp_addflag=' -nofor_main' ;;
11340 lf95*) # Lahey Fortran 8.1
11341 whole_archive_flag_spec=
11342 tmp_sharedflag='--shared' ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011343 nagfor*) # NAGFOR 5.3
11344 tmp_sharedflag='-Wl,-shared' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070011345 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11346 tmp_sharedflag='-qmkshrobj'
11347 tmp_addflag= ;;
11348 nvcc*) # Cuda Compiler Driver 2.2
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011349 whole_archive_flag_spec='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011350 compiler_needs_object=yes
11351 ;;
11352 esac
11353 case `$CC -V 2>&1 | sed 5q` in
11354 *Sun\ C*) # Sun C 5.9
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011355 whole_archive_flag_spec='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011356 compiler_needs_object=yes
11357 tmp_sharedflag='-G' ;;
11358 *Sun\ F*) # Sun Fortran 8.3
11359 tmp_sharedflag='-G' ;;
11360 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011361 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011362
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011363 if test yes = "$supports_anon_versioning"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011364 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11366 echo "local: *; };" >> $output_objdir/$libname.ver~
11367 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011368 fi
11369
11370 case $cc_basename in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011371 tcc*)
11372 export_dynamic_flag_spec='-rdynamic'
11373 ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070011374 xlf* | bgf* | bgxlf* | mpixlf*)
11375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011377 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011378 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011379 if test yes = "$supports_anon_versioning"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11382 echo "local: *; };" >> $output_objdir/$libname.ver~
11383 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011384 fi
11385 ;;
11386 esac
11387 else
11388 ld_shlibs=no
11389 fi
11390 ;;
11391
11392 netbsd*)
11393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11395 wlarc=
11396 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011399 fi
11400 ;;
11401
11402 solaris*)
11403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11404 ld_shlibs=no
11405 cat <<_LT_EOF 1>&2
11406
11407*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11408*** create shared libraries on Solaris systems. Therefore, libtool
11409*** is disabling shared libraries support. We urge you to upgrade GNU
11410*** binutils to release 2.9.1 or newer. Another option is to modify
11411*** your PATH or compiler configuration so that the native linker is
11412*** used, and then restart.
11413
11414_LT_EOF
11415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011418 else
11419 ld_shlibs=no
11420 fi
11421 ;;
11422
11423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11424 case `$LD -v 2>&1` in
11425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11426 ld_shlibs=no
11427 cat <<_LT_EOF 1>&2
11428
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011429*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Nick Kralevichf73ff172014-09-27 12:41:49 -070011430*** reliably create shared libraries on SCO systems. Therefore, libtool
11431*** is disabling shared libraries support. We urge you to upgrade GNU
11432*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11433*** your PATH or compiler configuration so that the native linker is
11434*** used, and then restart.
11435
11436_LT_EOF
11437 ;;
11438 *)
11439 # For security reasons, it is highly recommended that you always
11440 # use absolute paths for naming shared libraries, and exclude the
11441 # DT_RUNPATH tag from executables and libraries. But doing so
11442 # requires that you compile everything twice, which is a pain.
11443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011447 else
11448 ld_shlibs=no
11449 fi
11450 ;;
11451 esac
11452 ;;
11453
11454 sunos4*)
11455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11456 wlarc=
11457 hardcode_direct=yes
11458 hardcode_shlibpath_var=no
11459 ;;
11460
11461 *)
11462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011465 else
11466 ld_shlibs=no
11467 fi
11468 ;;
11469 esac
11470
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011471 if test no = "$ld_shlibs"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011472 runpath_var=
11473 hardcode_libdir_flag_spec=
11474 export_dynamic_flag_spec=
11475 whole_archive_flag_spec=
11476 fi
11477 else
11478 # PORTME fill in a description of your system's linker (not GNU ld)
11479 case $host_os in
11480 aix3*)
11481 allow_undefined_flag=unsupported
11482 always_export_symbols=yes
11483 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11484 # Note: this linker hardcodes the directories in LIBPATH if there
11485 # are no directories specified by -L.
11486 hardcode_minus_L=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011487 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011488 # Neither direct hardcoding nor static linking is supported with a
11489 # broken collect2.
11490 hardcode_direct=unsupported
11491 fi
11492 ;;
11493
11494 aix[4-9]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011495 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011496 # On IA64, the linker does run time linking by default, so we don't
11497 # have to do anything special.
11498 aix_use_runtimelinking=no
11499 exp_sym_flag='-Bexport'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011500 no_entry_flag=
Nick Kralevichf73ff172014-09-27 12:41:49 -070011501 else
11502 # If we're using GNU nm, then we don't want the "-C" option.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011503 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11504 # Without the "-l" option, or with the "-B" option, AIX nm treats
11505 # weak defined symbols like other global defined symbols, whereas
11506 # GNU nm marks them as "W".
11507 # While the 'weak' keyword is ignored in the Export File, we need
11508 # it in the Import File for the 'aix-soname' feature, so we have
11509 # to replace the "-B" option with "-P" for AIX nm.
Nick Kralevichf73ff172014-09-27 12:41:49 -070011510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011511 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011512 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011513 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011514 fi
11515 aix_use_runtimelinking=no
11516
11517 # Test if we are trying to use run time linking or normal
11518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011519 # have runtime linking enabled, and use it for executables.
11520 # For shared libraries, we enable/disable runtime linking
11521 # depending on the kind of the shared library created -
11522 # when "with_aix_soname,aix_use_runtimelinking" is:
11523 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11524 # "aix,yes" lib.so shared, rtl:yes, for executables
11525 # lib.a static archive
11526 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11527 # lib.a(lib.so.V) shared, rtl:no, for executables
11528 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11529 # lib.a(lib.so.V) shared, rtl:no
11530 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11531 # lib.a static archive
Nick Kralevichf73ff172014-09-27 12:41:49 -070011532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11533 for ld_flag in $LDFLAGS; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011534 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011535 aix_use_runtimelinking=yes
11536 break
11537 fi
11538 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011539 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11540 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11541 # so we don't have lib.a shared libs to link our executables.
11542 # We have to force runtime linking in this case.
11543 aix_use_runtimelinking=yes
11544 LDFLAGS="$LDFLAGS -Wl,-brtl"
11545 fi
Nick Kralevichf73ff172014-09-27 12:41:49 -070011546 ;;
11547 esac
11548
11549 exp_sym_flag='-bexport'
11550 no_entry_flag='-bnoentry'
11551 fi
11552
11553 # When large executables or shared objects are built, AIX ld can
11554 # have problems creating the table of contents. If linking a library
11555 # or program results in "error TOC overflow" add -mminimal-toc to
11556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11558
11559 archive_cmds=''
11560 hardcode_direct=yes
11561 hardcode_direct_absolute=yes
11562 hardcode_libdir_separator=':'
11563 link_all_deplibs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011564 file_list_spec='$wl-f,'
11565 case $with_aix_soname,$aix_use_runtimelinking in
11566 aix,*) ;; # traditional, no import file
11567 svr4,* | *,yes) # use import file
11568 # The Import File defines what to hardcode.
11569 hardcode_direct=no
11570 hardcode_direct_absolute=no
11571 ;;
11572 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070011573
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011574 if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011575 case $host_os in aix4.[012]|aix4.[012].*)
11576 # We only want to do this on AIX 4.2 and lower, the check
11577 # below for broken collect2 doesn't work under 4.3+
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011578 collect2name=`$CC -print-prog-name=collect2`
Nick Kralevichf73ff172014-09-27 12:41:49 -070011579 if test -f "$collect2name" &&
11580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11581 then
11582 # We have reworked collect2
11583 :
11584 else
11585 # We have old collect2
11586 hardcode_direct=unsupported
11587 # It fails to find uninstalled libraries when the uninstalled
11588 # path is not listed in the libpath. Setting hardcode_minus_L
11589 # to unsupported forces relinking
11590 hardcode_minus_L=yes
11591 hardcode_libdir_flag_spec='-L$libdir'
11592 hardcode_libdir_separator=
11593 fi
11594 ;;
11595 esac
11596 shared_flag='-shared'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011597 if test yes = "$aix_use_runtimelinking"; then
11598 shared_flag="$shared_flag "'$wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011599 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011600 # Need to ensure runtime linking is disabled for the traditional
11601 # shared library, or the linker may eventually find shared libraries
11602 # /with/ Import File - we do not want to mix them.
11603 shared_flag_aix='-shared'
11604 shared_flag_svr4='-shared $wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011605 else
11606 # not using gcc
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011607 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11609 # chokes on -Wl,-G. The following line is correct:
11610 shared_flag='-G'
11611 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011612 if test yes = "$aix_use_runtimelinking"; then
11613 shared_flag='$wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011614 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011615 shared_flag='$wl-bM:SRE'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011616 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011617 shared_flag_aix='$wl-bM:SRE'
11618 shared_flag_svr4='$wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011619 fi
11620 fi
11621
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011622 export_dynamic_flag_spec='$wl-bexpall'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011623 # It seems that -bexpall does not export symbols beginning with
11624 # underscore (_), so it is better to generate a list of symbols to export.
11625 always_export_symbols=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011626 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011627 # Warning - without using the other runtime loading flags (-brtl),
11628 # -berok will link without error, but may produce a broken library.
11629 allow_undefined_flag='-berok'
11630 # Determine the default libpath from the value encoded in an
11631 # empty executable.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011632 if test set = "${lt_cv_aix_libpath+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011633 aix_libpath=$lt_cv_aix_libpath
11634else
11635 if ${lt_cv_aix_libpath_+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637else
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h. */
11640
11641int
11642main ()
11643{
11644
11645 ;
11646 return 0;
11647}
11648_ACEOF
11649if ac_fn_c_try_link "$LINENO"; then :
11650
11651 lt_aix_libpath_sed='
11652 /Import File Strings/,/^$/ {
11653 /^0/ {
11654 s/^0 *\([^ ]*\) *$/\1/
11655 p
11656 }
11657 }'
11658 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11659 # Check for a 64-bit object if we didn't find anything.
11660 if test -z "$lt_cv_aix_libpath_"; then
11661 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662 fi
11663fi
11664rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 if test -z "$lt_cv_aix_libpath_"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011667 lt_cv_aix_libpath_=/usr/lib:/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070011668 fi
11669
11670fi
11671
11672 aix_libpath=$lt_cv_aix_libpath_
11673fi
11674
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011675 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11676 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Nick Kralevichf73ff172014-09-27 12:41:49 -070011677 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011678 if test ia64 = "$host_cpu"; then
11679 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011680 allow_undefined_flag="-z nodefs"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011681 archive_expsym_cmds="\$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"
Nick Kralevichf73ff172014-09-27 12:41:49 -070011682 else
11683 # Determine the default libpath from the value encoded in an
11684 # empty executable.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011685 if test set = "${lt_cv_aix_libpath+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011686 aix_libpath=$lt_cv_aix_libpath
11687else
11688 if ${lt_cv_aix_libpath_+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690else
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692/* end confdefs.h. */
11693
11694int
11695main ()
11696{
11697
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_link "$LINENO"; then :
11703
11704 lt_aix_libpath_sed='
11705 /Import File Strings/,/^$/ {
11706 /^0/ {
11707 s/^0 *\([^ ]*\) *$/\1/
11708 p
11709 }
11710 }'
11711 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 # Check for a 64-bit object if we didn't find anything.
11713 if test -z "$lt_cv_aix_libpath_"; then
11714 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11715 fi
11716fi
11717rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 if test -z "$lt_cv_aix_libpath_"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011720 lt_cv_aix_libpath_=/usr/lib:/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070011721 fi
11722
11723fi
11724
11725 aix_libpath=$lt_cv_aix_libpath_
11726fi
11727
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011728 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Nick Kralevichf73ff172014-09-27 12:41:49 -070011729 # Warning - without using the other run time loading flags,
11730 # -berok will link without error, but may produce a broken library.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011731 no_undefined_flag=' $wl-bernotok'
11732 allow_undefined_flag=' $wl-berok'
11733 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011734 # We only use this code for GNU lds that support --whole-archive.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011735 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011736 else
11737 # Exported symbols can be pulled into shared objects from archives
11738 whole_archive_flag_spec='$convenience'
11739 fi
11740 archive_cmds_need_lc=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011741 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11742 # -brtl affects multiple linker settings, -berok does not and is overridden later
11743 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11744 if test svr4 != "$with_aix_soname"; then
11745 # This is similar to how AIX traditionally builds its shared libraries.
11746 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11747 fi
11748 if test aix != "$with_aix_soname"; then
11749 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11750 else
11751 # used by -dlpreopen to get the symbols
11752 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11753 fi
11754 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011755 fi
11756 fi
11757 ;;
11758
11759 amigaos*)
11760 case $host_cpu in
11761 powerpc)
11762 # see comment about AmigaOS4 .so support
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011764 archive_expsym_cmds=''
11765 ;;
11766 m68k)
11767 archive_cmds='$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)'
11768 hardcode_libdir_flag_spec='-L$libdir'
11769 hardcode_minus_L=yes
11770 ;;
11771 esac
11772 ;;
11773
11774 bsdi[45]*)
11775 export_dynamic_flag_spec=-rdynamic
11776 ;;
11777
11778 cygwin* | mingw* | pw32* | cegcc*)
11779 # When not using gcc, we currently assume that we are using
11780 # Microsoft Visual C++.
11781 # hardcode_libdir_flag_spec is actually meaningless, as there is
11782 # no search path for DLLs.
11783 case $cc_basename in
11784 cl*)
11785 # Native MSVC
11786 hardcode_libdir_flag_spec=' '
11787 allow_undefined_flag=unsupported
11788 always_export_symbols=yes
11789 file_list_spec='@'
11790 # Tell ltmain to make .lib files, not .a files.
11791 libext=lib
11792 # Tell ltmain to make .dll files, not .so files.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011793 shrext_cmds=.dll
Nick Kralevichf73ff172014-09-27 12:41:49 -070011794 # FIXME: Setting linknames here is a bad hack.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011795 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11796 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11797 cp "$export_symbols" "$output_objdir/$soname.def";
11798 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11799 else
11800 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11801 fi~
11802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11803 linknames='
Nick Kralevichf73ff172014-09-27 12:41:49 -070011804 # The linker will not automatically build a static lib if we build a DLL.
11805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11806 enable_shared_with_static_runtimes=yes
11807 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11809 # Don't use ranlib
11810 old_postinstall_cmds='chmod 644 $oldlib'
11811 postlink_cmds='lt_outputfile="@OUTPUT@"~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011812 lt_tool_outputfile="@TOOL_OUTPUT@"~
11813 case $lt_outputfile in
11814 *.exe|*.EXE) ;;
11815 *)
11816 lt_outputfile=$lt_outputfile.exe
11817 lt_tool_outputfile=$lt_tool_outputfile.exe
11818 ;;
11819 esac~
11820 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11821 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11822 $RM "$lt_outputfile.manifest";
11823 fi'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011824 ;;
11825 *)
11826 # Assume MSVC wrapper
11827 hardcode_libdir_flag_spec=' '
11828 allow_undefined_flag=unsupported
11829 # Tell ltmain to make .lib files, not .a files.
11830 libext=lib
11831 # Tell ltmain to make .dll files, not .so files.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011832 shrext_cmds=.dll
Nick Kralevichf73ff172014-09-27 12:41:49 -070011833 # FIXME: Setting linknames here is a bad hack.
11834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11835 # The linker will automatically build a .lib file if we build a DLL.
11836 old_archive_from_new_cmds='true'
11837 # FIXME: Should let the user specify the lib program.
11838 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11839 enable_shared_with_static_runtimes=yes
11840 ;;
11841 esac
11842 ;;
11843
11844 darwin* | rhapsody*)
11845
11846
11847 archive_cmds_need_lc=no
11848 hardcode_direct=no
11849 hardcode_automatic=yes
11850 hardcode_shlibpath_var=unsupported
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011851 if test yes = "$lt_cv_ld_force_load"; then
11852 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011853
11854 else
11855 whole_archive_flag_spec=''
11856 fi
11857 link_all_deplibs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011858 allow_undefined_flag=$_lt_dar_allow_undefined
Nick Kralevichf73ff172014-09-27 12:41:49 -070011859 case $cc_basename in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011860 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070011861 *) _lt_dar_can_shared=$GCC ;;
11862 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011863 if test yes = "$_lt_dar_can_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011864 output_verbose_link_cmd=func_echo_all
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011865 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11866 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11867 archive_expsym_cmds="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"
11868 module_expsym_cmds="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"
Nick Kralevichf73ff172014-09-27 12:41:49 -070011869
11870 else
11871 ld_shlibs=no
11872 fi
11873
11874 ;;
11875
11876 dgux*)
11877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11878 hardcode_libdir_flag_spec='-L$libdir'
11879 hardcode_shlibpath_var=no
11880 ;;
11881
11882 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11883 # support. Future versions do this automatically, but an explicit c++rt0.o
11884 # does not break anything, and helps significantly (at the cost of a little
11885 # extra space).
11886 freebsd2.2*)
11887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11888 hardcode_libdir_flag_spec='-R$libdir'
11889 hardcode_direct=yes
11890 hardcode_shlibpath_var=no
11891 ;;
11892
11893 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11894 freebsd2.*)
11895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_direct=yes
11897 hardcode_minus_L=yes
11898 hardcode_shlibpath_var=no
11899 ;;
11900
11901 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11902 freebsd* | dragonfly*)
11903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11904 hardcode_libdir_flag_spec='-R$libdir'
11905 hardcode_direct=yes
11906 hardcode_shlibpath_var=no
11907 ;;
11908
11909 hpux9*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011910 if test yes = "$GCC"; then
11911 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011912 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011913 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011914 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011915 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011916 hardcode_libdir_separator=:
11917 hardcode_direct=yes
11918
11919 # hardcode_minus_L: Not really in the search PATH,
11920 # but as the default location of the library.
11921 hardcode_minus_L=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011922 export_dynamic_flag_spec='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011923 ;;
11924
11925 hpux10*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011926 if test yes,no = "$GCC,$with_gnu_ld"; then
11927 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011928 else
11929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11930 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011931 if test no = "$with_gnu_ld"; then
11932 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011933 hardcode_libdir_separator=:
11934 hardcode_direct=yes
11935 hardcode_direct_absolute=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011936 export_dynamic_flag_spec='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011937 # hardcode_minus_L: Not really in the search PATH,
11938 # but as the default location of the library.
11939 hardcode_minus_L=yes
11940 fi
11941 ;;
11942
11943 hpux11*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011944 if test yes,no = "$GCC,$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070011945 case $host_cpu in
11946 hppa*64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011947 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011948 ;;
11949 ia64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011950 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011951 ;;
11952 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011953 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011954 ;;
11955 esac
11956 else
11957 case $host_cpu in
11958 hppa*64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011959 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011960 ;;
11961 ia64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011962 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070011963 ;;
11964 *)
11965
11966 # Older versions of the 11.00 compiler do not understand -b yet
11967 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11969$as_echo_n "checking if $CC understands -b... " >&6; }
11970if ${lt_cv_prog_compiler__b+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972else
11973 lt_cv_prog_compiler__b=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011974 save_LDFLAGS=$LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070011975 LDFLAGS="$LDFLAGS -b"
11976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11978 # The linker can only warn and ignore the option if not recognized
11979 # So say no if there are warnings
11980 if test -s conftest.err; then
11981 # Append any errors to the config.log.
11982 cat conftest.err 1>&5
11983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11985 if diff conftest.exp conftest.er2 >/dev/null; then
11986 lt_cv_prog_compiler__b=yes
11987 fi
11988 else
11989 lt_cv_prog_compiler__b=yes
11990 fi
11991 fi
11992 $RM -r conftest*
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011993 LDFLAGS=$save_LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070011994
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11997$as_echo "$lt_cv_prog_compiler__b" >&6; }
11998
Elliott Hughes8366e8b2015-08-14 20:48:15 -070011999if test yes = "$lt_cv_prog_compiler__b"; then
12000 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012001else
12002 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12003fi
12004
12005 ;;
12006 esac
12007 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012008 if test no = "$with_gnu_ld"; then
12009 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012010 hardcode_libdir_separator=:
12011
12012 case $host_cpu in
12013 hppa*64*|ia64*)
12014 hardcode_direct=no
12015 hardcode_shlibpath_var=no
12016 ;;
12017 *)
12018 hardcode_direct=yes
12019 hardcode_direct_absolute=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012020 export_dynamic_flag_spec='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012021
12022 # hardcode_minus_L: Not really in the search PATH,
12023 # but as the default location of the library.
12024 hardcode_minus_L=yes
12025 ;;
12026 esac
12027 fi
12028 ;;
12029
12030 irix5* | irix6* | nonstopux*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012031 if test yes = "$GCC"; then
12032 archive_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012033 # Try to use the -exported_symbol ld option, if it does not
12034 # work, assume that -exports_file does not work either and
12035 # implicitly export all symbols.
12036 # This should be the same for all languages, so no per-tag cache variable.
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12038$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12039if ${lt_cv_irix_exported_symbol+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012042 save_LDFLAGS=$LDFLAGS
12043 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Nick Kralevichf73ff172014-09-27 12:41:49 -070012044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h. */
12046int foo (void) { return 0; }
12047_ACEOF
12048if ac_fn_c_try_link "$LINENO"; then :
12049 lt_cv_irix_exported_symbol=yes
12050else
12051 lt_cv_irix_exported_symbol=no
12052fi
12053rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012055 LDFLAGS=$save_LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070012056fi
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12058$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012059 if test yes = "$lt_cv_irix_exported_symbol"; then
12060 archive_expsym_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012061 fi
12062 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012063 archive_cmds='$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'
12064 archive_expsym_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012065 fi
12066 archive_cmds_need_lc='no'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012068 hardcode_libdir_separator=:
12069 inherit_rpath=yes
12070 link_all_deplibs=yes
12071 ;;
12072
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012073 linux*)
12074 case $cc_basename in
12075 tcc*)
12076 # Fabrice Bellard et al's Tiny C Compiler
12077 ld_shlibs=yes
12078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12079 ;;
12080 esac
12081 ;;
12082
Nick Kralevichf73ff172014-09-27 12:41:49 -070012083 netbsd*)
12084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12086 else
12087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12088 fi
12089 hardcode_libdir_flag_spec='-R$libdir'
12090 hardcode_direct=yes
12091 hardcode_shlibpath_var=no
12092 ;;
12093
12094 newsos6)
12095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12096 hardcode_direct=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012098 hardcode_libdir_separator=:
12099 hardcode_shlibpath_var=no
12100 ;;
12101
12102 *nto* | *qnx*)
12103 ;;
12104
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012105 openbsd* | bitrig*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070012106 if test -f /usr/libexec/ld.so; then
12107 hardcode_direct=yes
12108 hardcode_shlibpath_var=no
12109 hardcode_direct_absolute=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012112 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12113 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12114 export_dynamic_flag_spec='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012115 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12117 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012118 fi
12119 else
12120 ld_shlibs=no
12121 fi
12122 ;;
12123
12124 os2*)
12125 hardcode_libdir_flag_spec='-L$libdir'
12126 hardcode_minus_L=yes
12127 allow_undefined_flag=unsupported
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012128 shrext_cmds=.dll
12129 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12130 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12131 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12132 $ECHO EXPORTS >> $output_objdir/$libname.def~
12133 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12134 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12135 emximp -o $lib $output_objdir/$libname.def'
12136 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12137 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12138 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12139 $ECHO EXPORTS >> $output_objdir/$libname.def~
12140 prefix_cmds="$SED"~
12141 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12142 prefix_cmds="$prefix_cmds -e 1d";
12143 fi~
12144 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12145 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12147 emximp -o $lib $output_objdir/$libname.def'
12148 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12149 enable_shared_with_static_runtimes=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070012150 ;;
12151
12152 osf3*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012153 if test yes = "$GCC"; then
12154 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12155 archive_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012156 else
12157 allow_undefined_flag=' -expect_unresolved \*'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012158 archive_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012159 fi
12160 archive_cmds_need_lc='no'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012162 hardcode_libdir_separator=:
12163 ;;
12164
12165 osf4* | osf5*) # as osf3* with the addition of -msym flag
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012166 if test yes = "$GCC"; then
12167 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12168 archive_cmds='$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'
12169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012170 else
12171 allow_undefined_flag=' -expect_unresolved \*'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012172 archive_cmds='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012173 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012174 $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012175
12176 # Both c and cxx compiler support -rpath directly
12177 hardcode_libdir_flag_spec='-rpath $libdir'
12178 fi
12179 archive_cmds_need_lc='no'
12180 hardcode_libdir_separator=:
12181 ;;
12182
12183 solaris*)
12184 no_undefined_flag=' -z defs'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012185 if test yes = "$GCC"; then
12186 wlarc='$wl'
12187 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012189 $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012190 else
12191 case `$CC -V 2>&1` in
12192 *"Compilers 5.0"*)
12193 wlarc=''
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012194 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012196 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012197 ;;
12198 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012199 wlarc='$wl'
12200 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012202 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012203 ;;
12204 esac
12205 fi
12206 hardcode_libdir_flag_spec='-R$libdir'
12207 hardcode_shlibpath_var=no
12208 case $host_os in
12209 solaris2.[0-5] | solaris2.[0-5].*) ;;
12210 *)
12211 # The compiler driver will combine and reorder linker options,
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012212 # but understands '-z linker_flag'. GCC discards it without '$wl',
Nick Kralevichf73ff172014-09-27 12:41:49 -070012213 # but is careful enough not to reorder.
12214 # Supported since Solaris 2.6 (maybe 2.5.1?)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012215 if test yes = "$GCC"; then
12216 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012217 else
12218 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12219 fi
12220 ;;
12221 esac
12222 link_all_deplibs=yes
12223 ;;
12224
12225 sunos4*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012226 if test sequent = "$host_vendor"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012227 # Use $CC to link under sequent, because it throws in some extra .o
12228 # files that make .init and .fini sections work.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012229 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012230 else
12231 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12232 fi
12233 hardcode_libdir_flag_spec='-L$libdir'
12234 hardcode_direct=yes
12235 hardcode_minus_L=yes
12236 hardcode_shlibpath_var=no
12237 ;;
12238
12239 sysv4)
12240 case $host_vendor in
12241 sni)
12242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12243 hardcode_direct=yes # is this really true???
12244 ;;
12245 siemens)
12246 ## LD is ld it makes a PLAMLIB
12247 ## CC just makes a GrossModule.
12248 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12249 reload_cmds='$CC -r -o $output$reload_objs'
12250 hardcode_direct=no
12251 ;;
12252 motorola)
12253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12254 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12255 ;;
12256 esac
12257 runpath_var='LD_RUN_PATH'
12258 hardcode_shlibpath_var=no
12259 ;;
12260
12261 sysv4.3*)
12262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263 hardcode_shlibpath_var=no
12264 export_dynamic_flag_spec='-Bexport'
12265 ;;
12266
12267 sysv4*MP*)
12268 if test -d /usr/nec; then
12269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12270 hardcode_shlibpath_var=no
12271 runpath_var=LD_RUN_PATH
12272 hardcode_runpath_var=yes
12273 ld_shlibs=yes
12274 fi
12275 ;;
12276
12277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012278 no_undefined_flag='$wl-z,text'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012279 archive_cmds_need_lc=no
12280 hardcode_shlibpath_var=no
12281 runpath_var='LD_RUN_PATH'
12282
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012283 if test yes = "$GCC"; then
12284 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012286 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012287 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012289 fi
12290 ;;
12291
12292 sysv5* | sco3.2v5* | sco5v6*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012293 # Note: We CANNOT use -z defs as we might desire, because we do not
Nick Kralevichf73ff172014-09-27 12:41:49 -070012294 # link with -lc, and that would cause any symbols used from libc to
12295 # always be unresolved, which means just about no library would
12296 # ever link correctly. If we're not using GNU ld we use -z text
12297 # though, which does catch some bad symbols but isn't as heavy-handed
12298 # as -z defs.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012299 no_undefined_flag='$wl-z,text'
12300 allow_undefined_flag='$wl-z,nodefs'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012301 archive_cmds_need_lc=no
12302 hardcode_shlibpath_var=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012303 hardcode_libdir_flag_spec='$wl-R,$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012304 hardcode_libdir_separator=':'
12305 link_all_deplibs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012306 export_dynamic_flag_spec='$wl-Bexport'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012307 runpath_var='LD_RUN_PATH'
12308
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012309 if test yes = "$GCC"; then
12310 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012312 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012313 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012315 fi
12316 ;;
12317
12318 uts4*)
12319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_libdir_flag_spec='-L$libdir'
12321 hardcode_shlibpath_var=no
12322 ;;
12323
12324 *)
12325 ld_shlibs=no
12326 ;;
12327 esac
12328
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012329 if test sni = "$host_vendor"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012330 case $host in
12331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012332 export_dynamic_flag_spec='$wl-Blargedynsym'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012333 ;;
12334 esac
12335 fi
12336 fi
12337
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12339$as_echo "$ld_shlibs" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012340test no = "$ld_shlibs" && can_build_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070012341
12342with_gnu_ld=$with_gnu_ld
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358#
12359# Do we need to explicitly link libc?
12360#
12361case "x$archive_cmds_need_lc" in
12362x|xyes)
12363 # Assume -lc should be added
12364 archive_cmds_need_lc=yes
12365
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012366 if test yes,yes = "$GCC,$enable_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012367 case $archive_cmds in
12368 *'~'*)
12369 # FIXME: we may have to deal with multi-command sequences.
12370 ;;
12371 '$CC '*)
12372 # Test whether the compiler implicitly links with -lc since on some
12373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12374 # to ld, don't add -lc before -lgcc.
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12376$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12377if ${lt_cv_archive_cmds_need_lc+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379else
12380 $RM conftest*
12381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12382
12383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12384 (eval $ac_compile) 2>&5
12385 ac_status=$?
12386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12387 test $ac_status = 0; } 2>conftest.err; then
12388 soname=conftest
12389 lib=conftest
12390 libobjs=conftest.$ac_objext
12391 deplibs=
12392 wl=$lt_prog_compiler_wl
12393 pic_flag=$lt_prog_compiler_pic
12394 compiler_flags=-v
12395 linker_flags=-v
12396 verstring=
12397 output_objdir=.
12398 libname=conftest
12399 lt_save_allow_undefined_flag=$allow_undefined_flag
12400 allow_undefined_flag=
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12402 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; }
12406 then
12407 lt_cv_archive_cmds_need_lc=no
12408 else
12409 lt_cv_archive_cmds_need_lc=yes
12410 fi
12411 allow_undefined_flag=$lt_save_allow_undefined_flag
12412 else
12413 cat conftest.err 1>&5
12414 fi
12415 $RM conftest*
12416
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12419$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12420 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12421 ;;
12422 esac
12423 fi
12424 ;;
12425esac
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12579$as_echo_n "checking dynamic linker characteristics... " >&6; }
12580
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012581if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012582 case $host_os in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012583 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12584 *) lt_awk_arg='/^libraries:/' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070012585 esac
12586 case $host_os in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012587 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12588 *) lt_sed_strip_eq='s|=/|/|g' ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070012589 esac
12590 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12591 case $lt_search_path_spec in
12592 *\;*)
12593 # if the path contains ";" then we assume it to be the separator
12594 # otherwise default to the standard path separator (i.e. ":") - it is
12595 # assumed that no part of a normal pathname contains ";" but that should
12596 # okay in the real world where ";" in dirpaths is itself problematic.
12597 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12598 ;;
12599 *)
12600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12601 ;;
12602 esac
12603 # Ok, now we have the path, separated by spaces, we can step through it
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012604 # and add multilib dir if necessary...
Nick Kralevichf73ff172014-09-27 12:41:49 -070012605 lt_tmp_lt_search_path_spec=
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012606 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12607 # ...but if some path component already ends with the multilib dir we assume
12608 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12609 case "$lt_multi_os_dir; $lt_search_path_spec " in
12610 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12611 lt_multi_os_dir=
12612 ;;
12613 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070012614 for lt_sys_path in $lt_search_path_spec; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012615 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12616 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12617 elif test -n "$lt_multi_os_dir"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012618 test -d "$lt_sys_path" && \
12619 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12620 fi
12621 done
12622 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012623BEGIN {RS = " "; FS = "/|\n";} {
12624 lt_foo = "";
12625 lt_count = 0;
Nick Kralevichf73ff172014-09-27 12:41:49 -070012626 for (lt_i = NF; lt_i > 0; lt_i--) {
12627 if ($lt_i != "" && $lt_i != ".") {
12628 if ($lt_i == "..") {
12629 lt_count++;
12630 } else {
12631 if (lt_count == 0) {
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012632 lt_foo = "/" $lt_i lt_foo;
Nick Kralevichf73ff172014-09-27 12:41:49 -070012633 } else {
12634 lt_count--;
12635 }
12636 }
12637 }
12638 }
12639 if (lt_foo != "") { lt_freq[lt_foo]++; }
12640 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12641}'`
12642 # AWK program above erroneously prepends '/' to C:/dos/paths
12643 # for these hosts.
12644 case $host_os in
12645 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012646 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070012647 esac
12648 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12649else
12650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12651fi
12652library_names_spec=
12653libname_spec='lib$name'
12654soname_spec=
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012655shrext_cmds=.so
Nick Kralevichf73ff172014-09-27 12:41:49 -070012656postinstall_cmds=
12657postuninstall_cmds=
12658finish_cmds=
12659finish_eval=
12660shlibpath_var=
12661shlibpath_overrides_runpath=unknown
12662version_type=none
12663dynamic_linker="$host_os ld.so"
12664sys_lib_dlsearch_path_spec="/lib /usr/lib"
12665need_lib_prefix=unknown
12666hardcode_into_libs=no
12667
12668# when you set need_version to no, make sure it does not cause -set_version
12669# flags to be left without arguments
12670need_version=unknown
12671
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012672
12673
Nick Kralevichf73ff172014-09-27 12:41:49 -070012674case $host_os in
12675aix3*)
12676 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012677 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012678 shlibpath_var=LIBPATH
12679
12680 # AIX 3 has no versioning support, so we append a major version to the name.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012681 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012682 ;;
12683
12684aix[4-9]*)
12685 version_type=linux # correct to gnu/linux during the next big refactor
12686 need_lib_prefix=no
12687 need_version=no
12688 hardcode_into_libs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012689 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012690 # AIX 5 supports IA64
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012691 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012692 shlibpath_var=LD_LIBRARY_PATH
12693 else
12694 # With GCC up to 2.95.x, collect2 would create an import file
12695 # for dependence libraries. The import file would start with
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012696 # the line '#! .'. This would cause the generated library to
12697 # depend on '.', always an invalid library. This was fixed in
Nick Kralevichf73ff172014-09-27 12:41:49 -070012698 # development snapshots of GCC prior to 3.0.
12699 case $host_os in
12700 aix4 | aix4.[01] | aix4.[01].*)
12701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12702 echo ' yes '
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012703 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070012704 :
12705 else
12706 can_build_shared=no
12707 fi
12708 ;;
12709 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012710 # Using Import Files as archive members, it is possible to support
12711 # filename-based versioning of shared library archives on AIX. While
12712 # this would work for both with and without runtime linking, it will
12713 # prevent static linking of such archives. So we do filename-based
12714 # shared library versioning with .so extension only, which is used
12715 # when both runtime linking and shared linking is enabled.
12716 # Unfortunately, runtime linking may impact performance, so we do
12717 # not want this to be the default eventually. Also, we use the
12718 # versioned .so libs for executables only if there is the -brtl
12719 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12720 # To allow for filename-based versioning support, we need to create
12721 # libNAME.so.V as an archive file, containing:
12722 # *) an Import File, referring to the versioned filename of the
12723 # archive as well as the shared archive member, telling the
12724 # bitwidth (32 or 64) of that shared object, and providing the
12725 # list of exported symbols of that shared object, eventually
12726 # decorated with the 'weak' keyword
12727 # *) the shared object with the F_LOADONLY flag set, to really avoid
12728 # it being seen by the linker.
12729 # At run time we better use the real file rather than another symlink,
12730 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12731
12732 case $with_aix_soname,$aix_use_runtimelinking in
12733 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Nick Kralevichf73ff172014-09-27 12:41:49 -070012734 # soname into executable. Probably we can add versioning support to
12735 # collect2, so additional links can be useful in future.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012736 aix,yes) # traditional libtool
12737 dynamic_linker='AIX unversionable lib.so'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012738 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12739 # instead of lib<name>.a to let people know that these are not
12740 # typical AIX shared libraries.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12742 ;;
12743 aix,no) # traditional AIX only
12744 dynamic_linker='AIX lib.a(lib.so.V)'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012745 # We preserve .a as extension for shared libraries through AIX4.2
12746 # and later when we are not doing run time linking.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012747 library_names_spec='$libname$release.a $libname.a'
12748 soname_spec='$libname$release$shared_ext$major'
12749 ;;
12750 svr4,*) # full svr4 only
12751 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12752 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12753 # We do not specify a path in Import Files, so LIBPATH fires.
12754 shlibpath_overrides_runpath=yes
12755 ;;
12756 *,yes) # both, prefer svr4
12757 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12758 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12759 # unpreferred sharedlib libNAME.a needs extra handling
12760 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12761 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12762 # We do not specify a path in Import Files, so LIBPATH fires.
12763 shlibpath_overrides_runpath=yes
12764 ;;
12765 *,no) # both, prefer aix
12766 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12767 library_names_spec='$libname$release.a $libname.a'
12768 soname_spec='$libname$release$shared_ext$major'
12769 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12770 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12771 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12772 ;;
12773 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070012774 shlibpath_var=LIBPATH
12775 fi
12776 ;;
12777
12778amigaos*)
12779 case $host_cpu in
12780 powerpc)
12781 # Since July 2007 AmigaOS4 officially supports .so libraries.
12782 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012784 ;;
12785 m68k)
12786 library_names_spec='$libname.ixlibrary $libname.a'
12787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012788 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012789 ;;
12790 esac
12791 ;;
12792
12793beos*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012794 library_names_spec='$libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012795 dynamic_linker="$host_os ld.so"
12796 shlibpath_var=LIBRARY_PATH
12797 ;;
12798
12799bsdi[45]*)
12800 version_type=linux # correct to gnu/linux during the next big refactor
12801 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12803 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12808 # the default ld.so.conf also contains /usr/contrib/lib and
12809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12810 # libtool to hard-code these into programs
12811 ;;
12812
12813cygwin* | mingw* | pw32* | cegcc*)
12814 version_type=windows
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012815 shrext_cmds=.dll
Nick Kralevichf73ff172014-09-27 12:41:49 -070012816 need_version=no
12817 need_lib_prefix=no
12818
12819 case $GCC,$cc_basename in
12820 yes,*)
12821 # gcc
12822 library_names_spec='$libname.dll.a'
12823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012824 postinstall_cmds='base_file=`basename \$file`~
12825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Nick Kralevichf73ff172014-09-27 12:41:49 -070012826 dldir=$destdir/`dirname \$dlpath`~
12827 test -d \$dldir || mkdir -p \$dldir~
12828 $install_prog $dir/$dlname \$dldir/$dlname~
12829 chmod a+x \$dldir/$dlname~
12830 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12831 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12832 fi'
12833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12834 dlpath=$dir/\$dldll~
12835 $RM \$dlpath'
12836 shlibpath_overrides_runpath=yes
12837
12838 case $host_os in
12839 cygwin*)
12840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012841 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012842
12843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12844 ;;
12845 mingw* | cegcc*)
12846 # MinGW DLLs use traditional 'lib' prefix
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012847 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012848 ;;
12849 pw32*)
12850 # pw32 DLLs use 'pw' prefix rather than 'lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012851 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012852 ;;
12853 esac
12854 dynamic_linker='Win32 ld.exe'
12855 ;;
12856
12857 *,cl*)
12858 # Native MSVC
12859 libname_spec='$name'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012860 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12861 library_names_spec='$libname.dll.lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012862
12863 case $build_os in
12864 mingw*)
12865 sys_lib_search_path_spec=
12866 lt_save_ifs=$IFS
12867 IFS=';'
12868 for lt_path in $LIB
12869 do
12870 IFS=$lt_save_ifs
12871 # Let DOS variable expansion print the short 8.3 style file name.
12872 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12873 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12874 done
12875 IFS=$lt_save_ifs
12876 # Convert to MSYS style.
12877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12878 ;;
12879 cygwin*)
12880 # Convert to unix form, then to dos form, then back to unix form
12881 # but this time dos style (no spaces!) so that the unix form looks
12882 # like /cygdrive/c/PROGRA~1:/cygdr...
12883 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12884 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12885 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12886 ;;
12887 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012888 sys_lib_search_path_spec=$LIB
Nick Kralevichf73ff172014-09-27 12:41:49 -070012889 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12890 # It is most probably a Windows format PATH.
12891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12892 else
12893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12894 fi
12895 # FIXME: find the short name or the path components, as spaces are
12896 # common. (e.g. "Program Files" -> "PROGRA~1")
12897 ;;
12898 esac
12899
12900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012901 postinstall_cmds='base_file=`basename \$file`~
12902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Nick Kralevichf73ff172014-09-27 12:41:49 -070012903 dldir=$destdir/`dirname \$dlpath`~
12904 test -d \$dldir || mkdir -p \$dldir~
12905 $install_prog $dir/$dlname \$dldir/$dlname'
12906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12907 dlpath=$dir/\$dldll~
12908 $RM \$dlpath'
12909 shlibpath_overrides_runpath=yes
12910 dynamic_linker='Win32 link.exe'
12911 ;;
12912
12913 *)
12914 # Assume MSVC wrapper
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012915 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012916 dynamic_linker='Win32 ld.exe'
12917 ;;
12918 esac
12919 # FIXME: first we should search . and the directory the executable is in
12920 shlibpath_var=PATH
12921 ;;
12922
12923darwin* | rhapsody*)
12924 dynamic_linker="$host_os dyld"
12925 version_type=darwin
12926 need_lib_prefix=no
12927 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012928 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12929 soname_spec='$libname$release$major$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012930 shlibpath_overrides_runpath=yes
12931 shlibpath_var=DYLD_LIBRARY_PATH
12932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12933
12934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12936 ;;
12937
12938dgux*)
12939 version_type=linux # correct to gnu/linux during the next big refactor
12940 need_lib_prefix=no
12941 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012944 shlibpath_var=LD_LIBRARY_PATH
12945 ;;
12946
12947freebsd* | dragonfly*)
12948 # DragonFly does not have aout. When/if they implement a new
12949 # versioning mechanism, adjust this.
12950 if test -x /usr/bin/objformat; then
12951 objformat=`/usr/bin/objformat`
12952 else
12953 case $host_os in
12954 freebsd[23].*) objformat=aout ;;
12955 *) objformat=elf ;;
12956 esac
12957 fi
12958 version_type=freebsd-$objformat
12959 case $version_type in
12960 freebsd-elf*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12962 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012963 need_version=no
12964 need_lib_prefix=no
12965 ;;
12966 freebsd-*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012968 need_version=yes
12969 ;;
12970 esac
12971 shlibpath_var=LD_LIBRARY_PATH
12972 case $host_os in
12973 freebsd2.*)
12974 shlibpath_overrides_runpath=yes
12975 ;;
12976 freebsd3.[01]* | freebsdelf3.[01]*)
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12979 ;;
12980 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12981 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12982 shlibpath_overrides_runpath=no
12983 hardcode_into_libs=yes
12984 ;;
12985 *) # from 4.6 on, and DragonFly
12986 shlibpath_overrides_runpath=yes
12987 hardcode_into_libs=yes
12988 ;;
12989 esac
12990 ;;
12991
Nick Kralevichf73ff172014-09-27 12:41:49 -070012992haiku*)
12993 version_type=linux # correct to gnu/linux during the next big refactor
12994 need_lib_prefix=no
12995 need_version=no
12996 dynamic_linker="$host_os runtime_loader"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070012997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12998 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070012999 shlibpath_var=LIBRARY_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013000 shlibpath_overrides_runpath=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070013001 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13002 hardcode_into_libs=yes
13003 ;;
13004
13005hpux9* | hpux10* | hpux11*)
13006 # Give a soname corresponding to the major version so that dld.sl refuses to
13007 # link against other versions.
13008 version_type=sunos
13009 need_lib_prefix=no
13010 need_version=no
13011 case $host_cpu in
13012 ia64*)
13013 shrext_cmds='.so'
13014 hardcode_into_libs=yes
13015 dynamic_linker="$host_os dld.so"
13016 shlibpath_var=LD_LIBRARY_PATH
13017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13019 soname_spec='$libname$release$shared_ext$major'
13020 if test 32 = "$HPUX_IA64_MODE"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013022 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Nick Kralevichf73ff172014-09-27 12:41:49 -070013023 else
13024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013025 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Nick Kralevichf73ff172014-09-27 12:41:49 -070013026 fi
Nick Kralevichf73ff172014-09-27 12:41:49 -070013027 ;;
13028 hppa*64*)
13029 shrext_cmds='.sl'
13030 hardcode_into_libs=yes
13031 dynamic_linker="$host_os dld.sl"
13032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13035 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13038 ;;
13039 *)
13040 shrext_cmds='.sl'
13041 dynamic_linker="$host_os dld.sl"
13042 shlibpath_var=SHLIB_PATH
13043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13045 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013046 ;;
13047 esac
13048 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13049 postinstall_cmds='chmod 555 $lib'
13050 # or fails outright, so override atomically:
13051 install_override_mode=555
13052 ;;
13053
13054interix[3-9]*)
13055 version_type=linux # correct to gnu/linux during the next big refactor
13056 need_lib_prefix=no
13057 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13059 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13061 shlibpath_var=LD_LIBRARY_PATH
13062 shlibpath_overrides_runpath=no
13063 hardcode_into_libs=yes
13064 ;;
13065
13066irix5* | irix6* | nonstopux*)
13067 case $host_os in
13068 nonstopux*) version_type=nonstopux ;;
13069 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013070 if test yes = "$lt_cv_prog_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013071 version_type=linux # correct to gnu/linux during the next big refactor
13072 else
13073 version_type=irix
13074 fi ;;
13075 esac
13076 need_lib_prefix=no
13077 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013078 soname_spec='$libname$release$shared_ext$major'
13079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013080 case $host_os in
13081 irix5* | nonstopux*)
13082 libsuff= shlibsuff=
13083 ;;
13084 *)
13085 case $LD in # libtool.m4 will add one of these switches to LD
13086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13087 libsuff= shlibsuff= libmagic=32-bit;;
13088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13089 libsuff=32 shlibsuff=N32 libmagic=N32;;
13090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13092 *) libsuff= shlibsuff= libmagic=never-match;;
13093 esac
13094 ;;
13095 esac
13096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13097 shlibpath_overrides_runpath=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013098 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13099 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Nick Kralevichf73ff172014-09-27 12:41:49 -070013100 hardcode_into_libs=yes
13101 ;;
13102
13103# No shared lib support for Linux oldld, aout, or coff.
13104linux*oldld* | linux*aout* | linux*coff*)
13105 dynamic_linker=no
13106 ;;
13107
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013108linux*android*)
13109 version_type=none # Android doesn't support versioned libraries.
13110 need_lib_prefix=no
13111 need_version=no
13112 library_names_spec='$libname$release$shared_ext'
13113 soname_spec='$libname$release$shared_ext'
13114 finish_cmds=
13115 shlibpath_var=LD_LIBRARY_PATH
13116 shlibpath_overrides_runpath=yes
13117
13118 # This implies no fast_install, which is unacceptable.
13119 # Some rework will be needed to allow for fast_install
13120 # before this can be enabled.
13121 hardcode_into_libs=yes
13122
13123 dynamic_linker='Android linker'
13124 # Don't embed -rpath directories since the linker doesn't support them.
13125 hardcode_libdir_flag_spec='-L$libdir'
13126 ;;
13127
Nick Kralevichf73ff172014-09-27 12:41:49 -070013128# This must be glibc/ELF.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013129linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070013130 version_type=linux # correct to gnu/linux during the next big refactor
13131 need_lib_prefix=no
13132 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13136 shlibpath_var=LD_LIBRARY_PATH
13137 shlibpath_overrides_runpath=no
13138
13139 # Some binutils ld are patched to set DT_RUNPATH
13140 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142else
13143 lt_cv_shlibpath_overrides_runpath=no
13144 save_LDFLAGS=$LDFLAGS
13145 save_libdir=$libdir
13146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151int
13152main ()
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_link "$LINENO"; then :
13160 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13161 lt_cv_shlibpath_overrides_runpath=yes
13162fi
13163fi
13164rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LDFLAGS=$save_LDFLAGS
13167 libdir=$save_libdir
13168
13169fi
13170
13171 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13172
13173 # This implies no fast_install, which is unacceptable.
13174 # Some rework will be needed to allow for fast_install
13175 # before this can be enabled.
13176 hardcode_into_libs=yes
13177
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013178 # Ideally, we could use ldconfig to report *all* directores which are
13179 # searched for libraries, however this is still not possible. Aside from not
13180 # being certain /sbin/ldconfig is available, command
13181 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13182 # even though it is searched at run-time. Try to do the best guess by
13183 # appending ld.so.conf contents (and includes) to the search path.
Nick Kralevichf73ff172014-09-27 12:41:49 -070013184 if test -f /etc/ld.so.conf; then
13185 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' ' '`
13186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13187 fi
13188
13189 # We used to test for /lib/ld.so.1 and disable shared libraries on
13190 # powerpc, because MkLinux only supported shared libraries with the
13191 # GNU dynamic linker. Since this was broken with cross compilers,
13192 # most powerpc-linux boxes support dynamic linking these days and
13193 # people can always --disable-shared, the test was removed, and we
13194 # assume the GNU/Linux dynamic linker is in use.
13195 dynamic_linker='GNU/Linux ld.so'
13196 ;;
13197
13198netbsd*)
13199 version_type=sunos
13200 need_lib_prefix=no
13201 need_version=no
13202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013203 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13205 dynamic_linker='NetBSD (a.out) ld.so'
13206 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13208 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013209 dynamic_linker='NetBSD ld.elf_so'
13210 fi
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13214 ;;
13215
13216newsos6)
13217 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013219 shlibpath_var=LD_LIBRARY_PATH
13220 shlibpath_overrides_runpath=yes
13221 ;;
13222
13223*nto* | *qnx*)
13224 version_type=qnx
13225 need_lib_prefix=no
13226 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013229 shlibpath_var=LD_LIBRARY_PATH
13230 shlibpath_overrides_runpath=no
13231 hardcode_into_libs=yes
13232 dynamic_linker='ldqnx.so'
13233 ;;
13234
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013235openbsd* | bitrig*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070013236 version_type=sunos
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013237 sys_lib_dlsearch_path_spec=/usr/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070013238 need_lib_prefix=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13240 need_version=no
13241 else
13242 need_version=yes
13243 fi
13244 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13246 shlibpath_var=LD_LIBRARY_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013247 shlibpath_overrides_runpath=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070013248 ;;
13249
13250os2*)
13251 libname_spec='$name'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013252 version_type=windows
13253 shrext_cmds=.dll
13254 need_version=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070013255 need_lib_prefix=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013256 # OS/2 can only load a DLL with a base name of 8 characters or less.
13257 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13258 v=$($ECHO $release$versuffix | tr -d .-);
13259 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13260 $ECHO $n$v`$shared_ext'
13261 library_names_spec='${libname}_dll.$libext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013262 dynamic_linker='OS/2 ld.exe'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013263 shlibpath_var=BEGINLIBPATH
13264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13266 postinstall_cmds='base_file=`basename \$file`~
13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13268 dldir=$destdir/`dirname \$dlpath`~
13269 test -d \$dldir || mkdir -p \$dldir~
13270 $install_prog $dir/$dlname \$dldir/$dlname~
13271 chmod a+x \$dldir/$dlname~
13272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13274 fi'
13275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13276 dlpath=$dir/\$dldll~
13277 $RM \$dlpath'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013278 ;;
13279
13280osf3* | osf4* | osf5*)
13281 version_type=osf
13282 need_lib_prefix=no
13283 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013284 soname_spec='$libname$release$shared_ext$major'
13285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013286 shlibpath_var=LD_LIBRARY_PATH
13287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070013289 ;;
13290
13291rdos*)
13292 dynamic_linker=no
13293 ;;
13294
13295solaris*)
13296 version_type=linux # correct to gnu/linux during the next big refactor
13297 need_lib_prefix=no
13298 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13300 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 hardcode_into_libs=yes
13304 # ldd complains unless libraries are executable
13305 postinstall_cmds='chmod +x $lib'
13306 ;;
13307
13308sunos4*)
13309 version_type=sunos
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013310 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13312 shlibpath_var=LD_LIBRARY_PATH
13313 shlibpath_overrides_runpath=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013314 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013315 need_lib_prefix=no
13316 fi
13317 need_version=yes
13318 ;;
13319
13320sysv4 | sysv4.3*)
13321 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13323 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013324 shlibpath_var=LD_LIBRARY_PATH
13325 case $host_vendor in
13326 sni)
13327 shlibpath_overrides_runpath=no
13328 need_lib_prefix=no
13329 runpath_var=LD_RUN_PATH
13330 ;;
13331 siemens)
13332 need_lib_prefix=no
13333 ;;
13334 motorola)
13335 need_lib_prefix=no
13336 need_version=no
13337 shlibpath_overrides_runpath=no
13338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13339 ;;
13340 esac
13341 ;;
13342
13343sysv4*MP*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013344 if test -d /usr/nec; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013345 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013346 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13347 soname_spec='$libname$shared_ext.$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013348 shlibpath_var=LD_LIBRARY_PATH
13349 fi
13350 ;;
13351
13352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013353 version_type=sco
Nick Kralevichf73ff172014-09-27 12:41:49 -070013354 need_lib_prefix=no
13355 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13357 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013361 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13363 else
13364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13365 case $host_os in
13366 sco3.2v5*)
13367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13368 ;;
13369 esac
13370 fi
13371 sys_lib_dlsearch_path_spec='/usr/lib'
13372 ;;
13373
13374tpf*)
13375 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13376 version_type=linux # correct to gnu/linux during the next big refactor
13377 need_lib_prefix=no
13378 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13383 ;;
13384
13385uts4*)
13386 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13388 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070013389 shlibpath_var=LD_LIBRARY_PATH
13390 ;;
13391
13392*)
13393 dynamic_linker=no
13394 ;;
13395esac
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13397$as_echo "$dynamic_linker" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013398test no = "$dynamic_linker" && can_build_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070013399
13400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013401if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13403fi
13404
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013405if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13406 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070013407fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013408
13409if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13410 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070013411fi
13412
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013413# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13414configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13415
13416# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13417func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13418
13419# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13420configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13421
13422
13423
13424
13425
13426
Nick Kralevichf73ff172014-09-27 12:41:49 -070013427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13519$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13520hardcode_action=
13521if test -n "$hardcode_libdir_flag_spec" ||
13522 test -n "$runpath_var" ||
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013523 test yes = "$hardcode_automatic"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013524
13525 # We can hardcode non-existent directories.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013526 if test no != "$hardcode_direct" &&
Nick Kralevichf73ff172014-09-27 12:41:49 -070013527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13528 # have to relink, otherwise we might link with an installed library
13529 # when we should be linking with a yet-to-be-installed one
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013530 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13531 test no != "$hardcode_minus_L"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013532 # Linking always hardcodes the temporary library directory.
13533 hardcode_action=relink
13534 else
13535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13536 hardcode_action=immediate
13537 fi
13538else
13539 # We cannot hardcode anything, or else we can only hardcode existing
13540 # directories.
13541 hardcode_action=unsupported
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13544$as_echo "$hardcode_action" >&6; }
13545
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013546if test relink = "$hardcode_action" ||
13547 test yes = "$inherit_rpath"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013548 # Fast installation is not supported
13549 enable_fast_install=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013550elif test yes = "$shlibpath_overrides_runpath" ||
13551 test no = "$enable_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013552 # Fast installation is not necessary
13553 enable_fast_install=needless
13554fi
13555
13556
13557
13558
13559
13560
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013561 if test yes != "$enable_dlopen"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013562 enable_dlopen=unknown
13563 enable_dlopen_self=unknown
13564 enable_dlopen_self_static=unknown
13565else
13566 lt_cv_dlopen=no
13567 lt_cv_dlopen_libs=
13568
13569 case $host_os in
13570 beos*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013571 lt_cv_dlopen=load_add_on
Nick Kralevichf73ff172014-09-27 12:41:49 -070013572 lt_cv_dlopen_libs=
13573 lt_cv_dlopen_self=yes
13574 ;;
13575
13576 mingw* | pw32* | cegcc*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013577 lt_cv_dlopen=LoadLibrary
Nick Kralevichf73ff172014-09-27 12:41:49 -070013578 lt_cv_dlopen_libs=
13579 ;;
13580
13581 cygwin*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013582 lt_cv_dlopen=dlopen
Nick Kralevichf73ff172014-09-27 12:41:49 -070013583 lt_cv_dlopen_libs=
13584 ;;
13585
13586 darwin*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013587 # if libdl is installed we need to link against it
Nick Kralevichf73ff172014-09-27 12:41:49 -070013588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13589$as_echo_n "checking for dlopen in -ldl... " >&6; }
13590if ${ac_cv_lib_dl_dlopen+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592else
13593 ac_check_lib_save_LIBS=$LIBS
13594LIBS="-ldl $LIBS"
13595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h. */
13597
13598/* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13601#ifdef __cplusplus
13602extern "C"
13603#endif
13604char dlopen ();
13605int
13606main ()
13607{
13608return dlopen ();
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613if ac_fn_c_try_link "$LINENO"; then :
13614 ac_cv_lib_dl_dlopen=yes
13615else
13616 ac_cv_lib_dl_dlopen=no
13617fi
13618rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620LIBS=$ac_check_lib_save_LIBS
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13623$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13624if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013625 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Nick Kralevichf73ff172014-09-27 12:41:49 -070013626else
13627
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013628 lt_cv_dlopen=dyld
Nick Kralevichf73ff172014-09-27 12:41:49 -070013629 lt_cv_dlopen_libs=
13630 lt_cv_dlopen_self=yes
13631
13632fi
13633
13634 ;;
13635
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013636 tpf*)
13637 # Don't try to run any link tests for TPF. We know it's impossible
13638 # because TPF is a cross-compiler, and we know how we open DSOs.
13639 lt_cv_dlopen=dlopen
13640 lt_cv_dlopen_libs=
13641 lt_cv_dlopen_self=no
13642 ;;
13643
Nick Kralevichf73ff172014-09-27 12:41:49 -070013644 *)
13645 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13646if test "x$ac_cv_func_shl_load" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013647 lt_cv_dlopen=shl_load
Nick Kralevichf73ff172014-09-27 12:41:49 -070013648else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13650$as_echo_n "checking for shl_load in -ldld... " >&6; }
13651if ${ac_cv_lib_dld_shl_load+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653else
13654 ac_check_lib_save_LIBS=$LIBS
13655LIBS="-ldld $LIBS"
13656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657/* end confdefs.h. */
13658
13659/* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13662#ifdef __cplusplus
13663extern "C"
13664#endif
13665char shl_load ();
13666int
13667main ()
13668{
13669return shl_load ();
13670 ;
13671 return 0;
13672}
13673_ACEOF
13674if ac_fn_c_try_link "$LINENO"; then :
13675 ac_cv_lib_dld_shl_load=yes
13676else
13677 ac_cv_lib_dld_shl_load=no
13678fi
13679rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681LIBS=$ac_check_lib_save_LIBS
13682fi
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13684$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13685if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013686 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Nick Kralevichf73ff172014-09-27 12:41:49 -070013687else
13688 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13689if test "x$ac_cv_func_dlopen" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013690 lt_cv_dlopen=dlopen
Nick Kralevichf73ff172014-09-27 12:41:49 -070013691else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13693$as_echo_n "checking for dlopen in -ldl... " >&6; }
13694if ${ac_cv_lib_dl_dlopen+:} false; then :
13695 $as_echo_n "(cached) " >&6
13696else
13697 ac_check_lib_save_LIBS=$LIBS
13698LIBS="-ldl $LIBS"
13699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h. */
13701
13702/* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13705#ifdef __cplusplus
13706extern "C"
13707#endif
13708char dlopen ();
13709int
13710main ()
13711{
13712return dlopen ();
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717if ac_fn_c_try_link "$LINENO"; then :
13718 ac_cv_lib_dl_dlopen=yes
13719else
13720 ac_cv_lib_dl_dlopen=no
13721fi
13722rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724LIBS=$ac_check_lib_save_LIBS
13725fi
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013729 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Nick Kralevichf73ff172014-09-27 12:41:49 -070013730else
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13732$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13733if ${ac_cv_lib_svld_dlopen+:} false; then :
13734 $as_echo_n "(cached) " >&6
13735else
13736 ac_check_lib_save_LIBS=$LIBS
13737LIBS="-lsvld $LIBS"
13738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h. */
13740
13741/* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13744#ifdef __cplusplus
13745extern "C"
13746#endif
13747char dlopen ();
13748int
13749main ()
13750{
13751return dlopen ();
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_lib_svld_dlopen=yes
13758else
13759 ac_cv_lib_svld_dlopen=no
13760fi
13761rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763LIBS=$ac_check_lib_save_LIBS
13764fi
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13766$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13767if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013768 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Nick Kralevichf73ff172014-09-27 12:41:49 -070013769else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13771$as_echo_n "checking for dld_link in -ldld... " >&6; }
13772if ${ac_cv_lib_dld_dld_link+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774else
13775 ac_check_lib_save_LIBS=$LIBS
13776LIBS="-ldld $LIBS"
13777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h. */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char dld_link ();
13787int
13788main ()
13789{
13790return dld_link ();
13791 ;
13792 return 0;
13793}
13794_ACEOF
13795if ac_fn_c_try_link "$LINENO"; then :
13796 ac_cv_lib_dld_dld_link=yes
13797else
13798 ac_cv_lib_dld_dld_link=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13802LIBS=$ac_check_lib_save_LIBS
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13805$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13806if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013807 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Nick Kralevichf73ff172014-09-27 12:41:49 -070013808fi
13809
13810
13811fi
13812
13813
13814fi
13815
13816
13817fi
13818
13819
13820fi
13821
13822
13823fi
13824
13825 ;;
13826 esac
13827
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013828 if test no = "$lt_cv_dlopen"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013829 enable_dlopen=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013830 else
13831 enable_dlopen=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070013832 fi
13833
13834 case $lt_cv_dlopen in
13835 dlopen)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013836 save_CPPFLAGS=$CPPFLAGS
13837 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Nick Kralevichf73ff172014-09-27 12:41:49 -070013838
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013839 save_LDFLAGS=$LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070013840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13841
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013842 save_LIBS=$LIBS
Nick Kralevichf73ff172014-09-27 12:41:49 -070013843 LIBS="$lt_cv_dlopen_libs $LIBS"
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13846$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13847if ${lt_cv_dlopen_self+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013850 if test yes = "$cross_compiling"; then :
Nick Kralevichf73ff172014-09-27 12:41:49 -070013851 lt_cv_dlopen_self=cross
13852else
13853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13854 lt_status=$lt_dlunknown
13855 cat > conftest.$ac_ext <<_LT_EOF
13856#line $LINENO "configure"
13857#include "confdefs.h"
13858
13859#if HAVE_DLFCN_H
13860#include <dlfcn.h>
13861#endif
13862
13863#include <stdio.h>
13864
13865#ifdef RTLD_GLOBAL
13866# define LT_DLGLOBAL RTLD_GLOBAL
13867#else
13868# ifdef DL_GLOBAL
13869# define LT_DLGLOBAL DL_GLOBAL
13870# else
13871# define LT_DLGLOBAL 0
13872# endif
13873#endif
13874
13875/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13876 find out it does not work in some platform. */
13877#ifndef LT_DLLAZY_OR_NOW
13878# ifdef RTLD_LAZY
13879# define LT_DLLAZY_OR_NOW RTLD_LAZY
13880# else
13881# ifdef DL_LAZY
13882# define LT_DLLAZY_OR_NOW DL_LAZY
13883# else
13884# ifdef RTLD_NOW
13885# define LT_DLLAZY_OR_NOW RTLD_NOW
13886# else
13887# ifdef DL_NOW
13888# define LT_DLLAZY_OR_NOW DL_NOW
13889# else
13890# define LT_DLLAZY_OR_NOW 0
13891# endif
13892# endif
13893# endif
13894# endif
13895#endif
13896
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013897/* When -fvisibility=hidden is used, assume the code has been annotated
Nick Kralevichf73ff172014-09-27 12:41:49 -070013898 correspondingly for the symbols needed. */
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013899#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Nick Kralevichf73ff172014-09-27 12:41:49 -070013900int fnord () __attribute__((visibility("default")));
13901#endif
13902
13903int fnord () { return 42; }
13904int main ()
13905{
13906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13907 int status = $lt_dlunknown;
13908
13909 if (self)
13910 {
13911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13912 else
13913 {
13914 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13915 else puts (dlerror ());
13916 }
13917 /* dlclose (self); */
13918 }
13919 else
13920 puts (dlerror ());
13921
13922 return status;
13923}
13924_LT_EOF
13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13926 (eval $ac_link) 2>&5
13927 ac_status=$?
13928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013929 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013930 (./conftest; exit; ) >&5 2>/dev/null
13931 lt_status=$?
13932 case x$lt_status in
13933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13936 esac
13937 else :
13938 # compilation failed
13939 lt_cv_dlopen_self=no
13940 fi
13941fi
13942rm -fr conftest*
13943
13944
13945fi
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13947$as_echo "$lt_cv_dlopen_self" >&6; }
13948
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013949 if test yes = "$lt_cv_dlopen_self"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070013950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13952$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13953if ${lt_cv_dlopen_self_static+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070013956 if test yes = "$cross_compiling"; then :
Nick Kralevichf73ff172014-09-27 12:41:49 -070013957 lt_cv_dlopen_self_static=cross
13958else
13959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13960 lt_status=$lt_dlunknown
13961 cat > conftest.$ac_ext <<_LT_EOF
13962#line $LINENO "configure"
13963#include "confdefs.h"
13964
13965#if HAVE_DLFCN_H
13966#include <dlfcn.h>
13967#endif
13968
13969#include <stdio.h>
13970
13971#ifdef RTLD_GLOBAL
13972# define LT_DLGLOBAL RTLD_GLOBAL
13973#else
13974# ifdef DL_GLOBAL
13975# define LT_DLGLOBAL DL_GLOBAL
13976# else
13977# define LT_DLGLOBAL 0
13978# endif
13979#endif
13980
13981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13982 find out it does not work in some platform. */
13983#ifndef LT_DLLAZY_OR_NOW
13984# ifdef RTLD_LAZY
13985# define LT_DLLAZY_OR_NOW RTLD_LAZY
13986# else
13987# ifdef DL_LAZY
13988# define LT_DLLAZY_OR_NOW DL_LAZY
13989# else
13990# ifdef RTLD_NOW
13991# define LT_DLLAZY_OR_NOW RTLD_NOW
13992# else
13993# ifdef DL_NOW
13994# define LT_DLLAZY_OR_NOW DL_NOW
13995# else
13996# define LT_DLLAZY_OR_NOW 0
13997# endif
13998# endif
13999# endif
14000# endif
14001#endif
14002
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014003/* When -fvisibility=hidden is used, assume the code has been annotated
Nick Kralevichf73ff172014-09-27 12:41:49 -070014004 correspondingly for the symbols needed. */
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014005#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Nick Kralevichf73ff172014-09-27 12:41:49 -070014006int fnord () __attribute__((visibility("default")));
14007#endif
14008
14009int fnord () { return 42; }
14010int main ()
14011{
14012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14013 int status = $lt_dlunknown;
14014
14015 if (self)
14016 {
14017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14018 else
14019 {
14020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14021 else puts (dlerror ());
14022 }
14023 /* dlclose (self); */
14024 }
14025 else
14026 puts (dlerror ());
14027
14028 return status;
14029}
14030_LT_EOF
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14032 (eval $ac_link) 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014036 (./conftest; exit; ) >&5 2>/dev/null
14037 lt_status=$?
14038 case x$lt_status in
14039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14042 esac
14043 else :
14044 # compilation failed
14045 lt_cv_dlopen_self_static=no
14046 fi
14047fi
14048rm -fr conftest*
14049
14050
14051fi
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14053$as_echo "$lt_cv_dlopen_self_static" >&6; }
14054 fi
14055
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014056 CPPFLAGS=$save_CPPFLAGS
14057 LDFLAGS=$save_LDFLAGS
14058 LIBS=$save_LIBS
Nick Kralevichf73ff172014-09-27 12:41:49 -070014059 ;;
14060 esac
14061
14062 case $lt_cv_dlopen_self in
14063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14064 *) enable_dlopen_self=unknown ;;
14065 esac
14066
14067 case $lt_cv_dlopen_self_static in
14068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14069 *) enable_dlopen_self_static=unknown ;;
14070 esac
14071fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089striplib=
14090old_striplib=
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14092$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14093if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14097$as_echo "yes" >&6; }
14098else
14099# FIXME - insert some real tests, host_os isn't really good enough
14100 case $host_os in
14101 darwin*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014102 if test -n "$STRIP"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014103 striplib="$STRIP -x"
14104 old_striplib="$STRIP -S"
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14106$as_echo "yes" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109$as_echo "no" >&6; }
14110 fi
14111 ;;
14112 *)
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114$as_echo "no" >&6; }
14115 ;;
14116 esac
14117fi
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014130 # Report what library types will actually be built
Nick Kralevichf73ff172014-09-27 12:41:49 -070014131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14132$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14134$as_echo "$can_build_shared" >&6; }
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14137$as_echo_n "checking whether to build shared libraries... " >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014138 test no = "$can_build_shared" && enable_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070014139
14140 # On AIX, shared libraries and static libraries use the same namespace, and
14141 # are all built from PIC.
14142 case $host_os in
14143 aix3*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014144 test yes = "$enable_shared" && enable_static=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070014145 if test -n "$RANLIB"; then
14146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14147 postinstall_cmds='$RANLIB $lib'
14148 fi
14149 ;;
14150
14151 aix[4-9]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014152 if test ia64 != "$host_cpu"; then
14153 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14154 yes,aix,yes) ;; # shared object as lib.so file only
14155 yes,svr4,*) ;; # shared object as lib.so archive member only
14156 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14157 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070014158 fi
14159 ;;
14160 esac
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14162$as_echo "$enable_shared" >&6; }
14163
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14165$as_echo_n "checking whether to build static libraries... " >&6; }
14166 # Make sure either enable_shared or enable_static is yes.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014167 test yes = "$enable_shared" || enable_static=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070014168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14169$as_echo "$enable_static" >&6; }
14170
14171
14172
14173
14174fi
14175ac_ext=c
14176ac_cpp='$CPP $CPPFLAGS'
14177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014181CC=$lt_save_CC
Nick Kralevichf73ff172014-09-27 12:41:49 -070014182
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014183 if test -n "$CXX" && ( test no != "$CXX" &&
14184 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14185 (test g++ != "$CXX"))); then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014186 ac_ext=cpp
14187ac_cpp='$CXXCPP $CPPFLAGS'
14188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14192$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14193if test -z "$CXXCPP"; then
14194 if ${ac_cv_prog_CXXCPP+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196else
14197 # Double quotes because CXXCPP needs to be expanded
14198 for CXXCPP in "$CXX -E" "/lib/cpp"
14199 do
14200 ac_preproc_ok=false
14201for ac_cxx_preproc_warn_flag in '' yes
14202do
14203 # Use a header file that comes with gcc, so configuring glibc
14204 # with a fresh cross-compiler works.
14205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206 # <limits.h> exists even on freestanding compilers.
14207 # On the NeXT, cc -E runs the code through the compiler's parser,
14208 # not just through cpp. "Syntax error" is here to catch this case.
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h. */
14211#ifdef __STDC__
14212# include <limits.h>
14213#else
14214# include <assert.h>
14215#endif
14216 Syntax error
14217_ACEOF
14218if ac_fn_cxx_try_cpp "$LINENO"; then :
14219
14220else
14221 # Broken: fails on valid input.
14222continue
14223fi
14224rm -f conftest.err conftest.i conftest.$ac_ext
14225
14226 # OK, works on sane cases. Now check whether nonexistent headers
14227 # can be detected and how.
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h. */
14230#include <ac_nonexistent.h>
14231_ACEOF
14232if ac_fn_cxx_try_cpp "$LINENO"; then :
14233 # Broken: success on invalid input.
14234continue
14235else
14236 # Passes both tests.
14237ac_preproc_ok=:
14238break
14239fi
14240rm -f conftest.err conftest.i conftest.$ac_ext
14241
14242done
14243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14244rm -f conftest.i conftest.err conftest.$ac_ext
14245if $ac_preproc_ok; then :
14246 break
14247fi
14248
14249 done
14250 ac_cv_prog_CXXCPP=$CXXCPP
14251
14252fi
14253 CXXCPP=$ac_cv_prog_CXXCPP
14254else
14255 ac_cv_prog_CXXCPP=$CXXCPP
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14258$as_echo "$CXXCPP" >&6; }
14259ac_preproc_ok=false
14260for ac_cxx_preproc_warn_flag in '' yes
14261do
14262 # Use a header file that comes with gcc, so configuring glibc
14263 # with a fresh cross-compiler works.
14264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14265 # <limits.h> exists even on freestanding compilers.
14266 # On the NeXT, cc -E runs the code through the compiler's parser,
14267 # not just through cpp. "Syntax error" is here to catch this case.
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269/* end confdefs.h. */
14270#ifdef __STDC__
14271# include <limits.h>
14272#else
14273# include <assert.h>
14274#endif
14275 Syntax error
14276_ACEOF
14277if ac_fn_cxx_try_cpp "$LINENO"; then :
14278
14279else
14280 # Broken: fails on valid input.
14281continue
14282fi
14283rm -f conftest.err conftest.i conftest.$ac_ext
14284
14285 # OK, works on sane cases. Now check whether nonexistent headers
14286 # can be detected and how.
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288/* end confdefs.h. */
14289#include <ac_nonexistent.h>
14290_ACEOF
14291if ac_fn_cxx_try_cpp "$LINENO"; then :
14292 # Broken: success on invalid input.
14293continue
14294else
14295 # Passes both tests.
14296ac_preproc_ok=:
14297break
14298fi
14299rm -f conftest.err conftest.i conftest.$ac_ext
14300
14301done
14302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14303rm -f conftest.i conftest.err conftest.$ac_ext
14304if $ac_preproc_ok; then :
14305
14306else
14307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14309as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14310See \`config.log' for more details" "$LINENO" 5; }
14311fi
14312
14313ac_ext=c
14314ac_cpp='$CPP $CPPFLAGS'
14315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317ac_compiler_gnu=$ac_cv_c_compiler_gnu
14318
14319else
14320 _lt_caught_CXX_error=yes
14321fi
14322
14323ac_ext=cpp
14324ac_cpp='$CXXCPP $CPPFLAGS'
14325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14328
14329archive_cmds_need_lc_CXX=no
14330allow_undefined_flag_CXX=
14331always_export_symbols_CXX=no
14332archive_expsym_cmds_CXX=
14333compiler_needs_object_CXX=no
14334export_dynamic_flag_spec_CXX=
14335hardcode_direct_CXX=no
14336hardcode_direct_absolute_CXX=no
14337hardcode_libdir_flag_spec_CXX=
14338hardcode_libdir_separator_CXX=
14339hardcode_minus_L_CXX=no
14340hardcode_shlibpath_var_CXX=unsupported
14341hardcode_automatic_CXX=no
14342inherit_rpath_CXX=no
14343module_cmds_CXX=
14344module_expsym_cmds_CXX=
14345link_all_deplibs_CXX=unknown
14346old_archive_cmds_CXX=$old_archive_cmds
14347reload_flag_CXX=$reload_flag
14348reload_cmds_CXX=$reload_cmds
14349no_undefined_flag_CXX=
14350whole_archive_flag_spec_CXX=
14351enable_shared_with_static_runtimes_CXX=no
14352
14353# Source file extension for C++ test sources.
14354ac_ext=cpp
14355
14356# Object file extension for compiled C++ test sources.
14357objext=o
14358objext_CXX=$objext
14359
14360# No sense in running all these tests if we already determined that
14361# the CXX compiler isn't working. Some variables (like enable_shared)
14362# are currently assumed to apply to all compilers on this platform,
14363# and will be corrupted by setting them based on a non-working compiler.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014364if test yes != "$_lt_caught_CXX_error"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014365 # Code to be used in simple compile tests
14366 lt_simple_compile_test_code="int some_variable = 0;"
14367
14368 # Code to be used in simple link tests
14369 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14370
14371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14372
14373
14374
14375
14376
14377
14378# If no C compiler was specified, use CC.
14379LTCC=${LTCC-"$CC"}
14380
14381# If no C compiler flags were specified, use CFLAGS.
14382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14383
14384# Allow CC to be a program name with arguments.
14385compiler=$CC
14386
14387
14388 # save warnings/boilerplate of simple test code
14389 ac_outfile=conftest.$ac_objext
14390echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14392_lt_compiler_boilerplate=`cat conftest.err`
14393$RM conftest*
14394
14395 ac_outfile=conftest.$ac_objext
14396echo "$lt_simple_link_test_code" >conftest.$ac_ext
14397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14398_lt_linker_boilerplate=`cat conftest.err`
14399$RM -r conftest*
14400
14401
14402 # Allow CC to be a program name with arguments.
14403 lt_save_CC=$CC
14404 lt_save_CFLAGS=$CFLAGS
14405 lt_save_LD=$LD
14406 lt_save_GCC=$GCC
14407 GCC=$GXX
14408 lt_save_with_gnu_ld=$with_gnu_ld
14409 lt_save_path_LD=$lt_cv_path_LD
14410 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14411 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14412 else
14413 $as_unset lt_cv_prog_gnu_ld
14414 fi
14415 if test -n "${lt_cv_path_LDCXX+set}"; then
14416 lt_cv_path_LD=$lt_cv_path_LDCXX
14417 else
14418 $as_unset lt_cv_path_LD
14419 fi
14420 test -z "${LDCXX+set}" || LD=$LDCXX
14421 CC=${CXX-"c++"}
14422 CFLAGS=$CXXFLAGS
14423 compiler=$CC
14424 compiler_CXX=$CC
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014425 func_cc_basename $compiler
14426cc_basename=$func_cc_basename_result
Nick Kralevichf73ff172014-09-27 12:41:49 -070014427
14428
14429 if test -n "$compiler"; then
14430 # We don't want -fno-exception when compiling C++ code, so set the
14431 # no_builtin_flag separately
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014432 if test yes = "$GXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014433 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14434 else
14435 lt_prog_compiler_no_builtin_flag_CXX=
14436 fi
14437
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014438 if test yes = "$GXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014439 # Set up default GNU C++ configuration
14440
14441
14442
14443# Check whether --with-gnu-ld was given.
14444if test "${with_gnu_ld+set}" = set; then :
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014445 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070014446else
14447 with_gnu_ld=no
14448fi
14449
14450ac_prog=ld
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014451if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014452 # Check if gcc -print-prog-name=ld gives a path.
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14454$as_echo_n "checking for ld used by $CC... " >&6; }
14455 case $host in
14456 *-*-mingw*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014457 # gcc leaves a trailing carriage return, which upsets mingw
Nick Kralevichf73ff172014-09-27 12:41:49 -070014458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14459 *)
14460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14461 esac
14462 case $ac_prog in
14463 # Accept absolute paths.
14464 [\\/]* | ?:[\\/]*)
14465 re_direlt='/[^/][^/]*/\.\./'
14466 # Canonicalize the pathname of ld
14467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14470 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014471 test -z "$LD" && LD=$ac_prog
Nick Kralevichf73ff172014-09-27 12:41:49 -070014472 ;;
14473 "")
14474 # If it fails, then pretend we aren't using GCC.
14475 ac_prog=ld
14476 ;;
14477 *)
14478 # If it is relative, then search for the first ld in PATH.
14479 with_gnu_ld=unknown
14480 ;;
14481 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014482elif test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14484$as_echo_n "checking for GNU ld... " >&6; }
14485else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14487$as_echo_n "checking for non-GNU ld... " >&6; }
14488fi
14489if ${lt_cv_path_LD+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491else
14492 if test -z "$LD"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Nick Kralevichf73ff172014-09-27 12:41:49 -070014494 for ac_dir in $PATH; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014495 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070014496 test -z "$ac_dir" && ac_dir=.
14497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014498 lt_cv_path_LD=$ac_dir/$ac_prog
Nick Kralevichf73ff172014-09-27 12:41:49 -070014499 # Check to see if the program is GNU ld. I'd rather use --version,
14500 # but apparently some variants of GNU ld only accept -v.
14501 # Break only if it was the GNU/non-GNU ld that we prefer.
14502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14503 *GNU* | *'with BFD'*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014504 test no != "$with_gnu_ld" && break
Nick Kralevichf73ff172014-09-27 12:41:49 -070014505 ;;
14506 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014507 test yes != "$with_gnu_ld" && break
Nick Kralevichf73ff172014-09-27 12:41:49 -070014508 ;;
14509 esac
14510 fi
14511 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014512 IFS=$lt_save_ifs
Nick Kralevichf73ff172014-09-27 12:41:49 -070014513else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014514 lt_cv_path_LD=$LD # Let the user override the test with a path.
Nick Kralevichf73ff172014-09-27 12:41:49 -070014515fi
14516fi
14517
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014518LD=$lt_cv_path_LD
Nick Kralevichf73ff172014-09-27 12:41:49 -070014519if test -n "$LD"; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14521$as_echo "$LD" >&6; }
14522else
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524$as_echo "no" >&6; }
14525fi
14526test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14529if ${lt_cv_prog_gnu_ld+:} false; then :
14530 $as_echo_n "(cached) " >&6
14531else
14532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14533case `$LD -v 2>&1 </dev/null` in
14534*GNU* | *'with BFD'*)
14535 lt_cv_prog_gnu_ld=yes
14536 ;;
14537*)
14538 lt_cv_prog_gnu_ld=no
14539 ;;
14540esac
14541fi
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14543$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14544with_gnu_ld=$lt_cv_prog_gnu_ld
14545
14546
14547
14548
14549
14550
14551
14552 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14553 # archiving commands below assume that GNU ld is being used.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014554 if test yes = "$with_gnu_ld"; then
14555 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14556 archive_expsym_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014557
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014558 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14559 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014560
14561 # If archive_cmds runs LD, not CC, wlarc should be empty
14562 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14563 # investigate it a little bit more. (MM)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014564 wlarc='$wl'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014565
14566 # ancient GNU ld didn't support --whole-archive et. al.
14567 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14568 $GREP 'no-whole-archive' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014569 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014570 else
14571 whole_archive_flag_spec_CXX=
14572 fi
14573 else
14574 with_gnu_ld=no
14575 wlarc=
14576
14577 # A generic and very simple default shared library creation
14578 # command for GNU C++ for the case where it uses the native
14579 # linker, instead of GNU ld. If possible, this setting should
14580 # overridden to take advantage of the native linker features on
14581 # the platform it is being used on.
14582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14583 fi
14584
14585 # Commands to make compiler produce verbose output that lists
14586 # what "hidden" libraries, object files and flags are used when
14587 # linking a shared library.
14588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14589
14590 else
14591 GXX=no
14592 with_gnu_ld=no
14593 wlarc=
14594 fi
14595
14596 # PORTME: fill in a description of your system's C++ link characteristics
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14598$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14599 ld_shlibs_CXX=yes
14600 case $host_os in
14601 aix3*)
14602 # FIXME: insert proper C++ library support
14603 ld_shlibs_CXX=no
14604 ;;
14605 aix[4-9]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014606 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014607 # On IA64, the linker does run time linking by default, so we don't
14608 # have to do anything special.
14609 aix_use_runtimelinking=no
14610 exp_sym_flag='-Bexport'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014611 no_entry_flag=
Nick Kralevichf73ff172014-09-27 12:41:49 -070014612 else
14613 aix_use_runtimelinking=no
14614
14615 # Test if we are trying to use run time linking or normal
14616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014617 # have runtime linking enabled, and use it for executables.
14618 # For shared libraries, we enable/disable runtime linking
14619 # depending on the kind of the shared library created -
14620 # when "with_aix_soname,aix_use_runtimelinking" is:
14621 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14622 # "aix,yes" lib.so shared, rtl:yes, for executables
14623 # lib.a static archive
14624 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14625 # lib.a(lib.so.V) shared, rtl:no, for executables
14626 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14627 # lib.a(lib.so.V) shared, rtl:no
14628 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14629 # lib.a static archive
Nick Kralevichf73ff172014-09-27 12:41:49 -070014630 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14631 for ld_flag in $LDFLAGS; do
14632 case $ld_flag in
14633 *-brtl*)
14634 aix_use_runtimelinking=yes
14635 break
14636 ;;
14637 esac
14638 done
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014639 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14640 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14641 # so we don't have lib.a shared libs to link our executables.
14642 # We have to force runtime linking in this case.
14643 aix_use_runtimelinking=yes
14644 LDFLAGS="$LDFLAGS -Wl,-brtl"
14645 fi
Nick Kralevichf73ff172014-09-27 12:41:49 -070014646 ;;
14647 esac
14648
14649 exp_sym_flag='-bexport'
14650 no_entry_flag='-bnoentry'
14651 fi
14652
14653 # When large executables or shared objects are built, AIX ld can
14654 # have problems creating the table of contents. If linking a library
14655 # or program results in "error TOC overflow" add -mminimal-toc to
14656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14658
14659 archive_cmds_CXX=''
14660 hardcode_direct_CXX=yes
14661 hardcode_direct_absolute_CXX=yes
14662 hardcode_libdir_separator_CXX=':'
14663 link_all_deplibs_CXX=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014664 file_list_spec_CXX='$wl-f,'
14665 case $with_aix_soname,$aix_use_runtimelinking in
14666 aix,*) ;; # no import file
14667 svr4,* | *,yes) # use import file
14668 # The Import File defines what to hardcode.
14669 hardcode_direct_CXX=no
14670 hardcode_direct_absolute_CXX=no
14671 ;;
14672 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070014673
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014674 if test yes = "$GXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014675 case $host_os in aix4.[012]|aix4.[012].*)
14676 # We only want to do this on AIX 4.2 and lower, the check
14677 # below for broken collect2 doesn't work under 4.3+
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014678 collect2name=`$CC -print-prog-name=collect2`
Nick Kralevichf73ff172014-09-27 12:41:49 -070014679 if test -f "$collect2name" &&
14680 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14681 then
14682 # We have reworked collect2
14683 :
14684 else
14685 # We have old collect2
14686 hardcode_direct_CXX=unsupported
14687 # It fails to find uninstalled libraries when the uninstalled
14688 # path is not listed in the libpath. Setting hardcode_minus_L
14689 # to unsupported forces relinking
14690 hardcode_minus_L_CXX=yes
14691 hardcode_libdir_flag_spec_CXX='-L$libdir'
14692 hardcode_libdir_separator_CXX=
14693 fi
14694 esac
14695 shared_flag='-shared'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014696 if test yes = "$aix_use_runtimelinking"; then
14697 shared_flag=$shared_flag' $wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014698 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014699 # Need to ensure runtime linking is disabled for the traditional
14700 # shared library, or the linker may eventually find shared libraries
14701 # /with/ Import File - we do not want to mix them.
14702 shared_flag_aix='-shared'
14703 shared_flag_svr4='-shared $wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014704 else
14705 # not using gcc
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014706 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14708 # chokes on -Wl,-G. The following line is correct:
14709 shared_flag='-G'
14710 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014711 if test yes = "$aix_use_runtimelinking"; then
14712 shared_flag='$wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014713 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014714 shared_flag='$wl-bM:SRE'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014715 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014716 shared_flag_aix='$wl-bM:SRE'
14717 shared_flag_svr4='$wl-G'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014718 fi
14719 fi
14720
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014721 export_dynamic_flag_spec_CXX='$wl-bexpall'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014722 # It seems that -bexpall does not export symbols beginning with
14723 # underscore (_), so it is better to generate a list of symbols to
14724 # export.
14725 always_export_symbols_CXX=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014726 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014727 # Warning - without using the other runtime loading flags (-brtl),
14728 # -berok will link without error, but may produce a broken library.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014729 # The "-G" linker flag allows undefined symbols.
14730 no_undefined_flag_CXX='-bernotok'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014731 # Determine the default libpath from the value encoded in an empty
14732 # executable.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014733 if test set = "${lt_cv_aix_libpath+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014734 aix_libpath=$lt_cv_aix_libpath
14735else
14736 if ${lt_cv_aix_libpath__CXX+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h. */
14741
14742int
14743main ()
14744{
14745
14746 ;
14747 return 0;
14748}
14749_ACEOF
14750if ac_fn_cxx_try_link "$LINENO"; then :
14751
14752 lt_aix_libpath_sed='
14753 /Import File Strings/,/^$/ {
14754 /^0/ {
14755 s/^0 *\([^ ]*\) *$/\1/
14756 p
14757 }
14758 }'
14759 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14760 # Check for a 64-bit object if we didn't find anything.
14761 if test -z "$lt_cv_aix_libpath__CXX"; then
14762 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14763 fi
14764fi
14765rm -f core conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14767 if test -z "$lt_cv_aix_libpath__CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014768 lt_cv_aix_libpath__CXX=/usr/lib:/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070014769 fi
14770
14771fi
14772
14773 aix_libpath=$lt_cv_aix_libpath__CXX
14774fi
14775
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014776 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
Nick Kralevichf73ff172014-09-27 12:41:49 -070014777
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014778 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Nick Kralevichf73ff172014-09-27 12:41:49 -070014779 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014780 if test ia64 = "$host_cpu"; then
14781 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014782 allow_undefined_flag_CXX="-z nodefs"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014783 archive_expsym_cmds_CXX="\$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"
Nick Kralevichf73ff172014-09-27 12:41:49 -070014784 else
14785 # Determine the default libpath from the value encoded in an
14786 # empty executable.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014787 if test set = "${lt_cv_aix_libpath+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014788 aix_libpath=$lt_cv_aix_libpath
14789else
14790 if ${lt_cv_aix_libpath__CXX+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792else
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794/* end confdefs.h. */
14795
14796int
14797main ()
14798{
14799
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804if ac_fn_cxx_try_link "$LINENO"; then :
14805
14806 lt_aix_libpath_sed='
14807 /Import File Strings/,/^$/ {
14808 /^0/ {
14809 s/^0 *\([^ ]*\) *$/\1/
14810 p
14811 }
14812 }'
14813 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14814 # Check for a 64-bit object if we didn't find anything.
14815 if test -z "$lt_cv_aix_libpath__CXX"; then
14816 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14817 fi
14818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 if test -z "$lt_cv_aix_libpath__CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014822 lt_cv_aix_libpath__CXX=/usr/lib:/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070014823 fi
14824
14825fi
14826
14827 aix_libpath=$lt_cv_aix_libpath__CXX
14828fi
14829
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014830 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
Nick Kralevichf73ff172014-09-27 12:41:49 -070014831 # Warning - without using the other run time loading flags,
14832 # -berok will link without error, but may produce a broken library.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014833 no_undefined_flag_CXX=' $wl-bernotok'
14834 allow_undefined_flag_CXX=' $wl-berok'
14835 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014836 # We only use this code for GNU lds that support --whole-archive.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014837 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014838 else
14839 # Exported symbols can be pulled into shared objects from archives
14840 whole_archive_flag_spec_CXX='$convenience'
14841 fi
14842 archive_cmds_need_lc_CXX=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014843 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14844 # -brtl affects multiple linker settings, -berok does not and is overridden later
14845 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14846 if test svr4 != "$with_aix_soname"; then
14847 # This is similar to how AIX traditionally builds its shared
14848 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14849 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14850 fi
14851 if test aix != "$with_aix_soname"; then
14852 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14853 else
14854 # used by -dlpreopen to get the symbols
14855 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14856 fi
14857 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014858 fi
14859 fi
14860 ;;
14861
14862 beos*)
14863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14864 allow_undefined_flag_CXX=unsupported
14865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14866 # support --undefined. This deserves some investigation. FIXME
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014867 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014868 else
14869 ld_shlibs_CXX=no
14870 fi
14871 ;;
14872
14873 chorus*)
14874 case $cc_basename in
14875 *)
14876 # FIXME: insert proper C++ library support
14877 ld_shlibs_CXX=no
14878 ;;
14879 esac
14880 ;;
14881
14882 cygwin* | mingw* | pw32* | cegcc*)
14883 case $GXX,$cc_basename in
14884 ,cl* | no,cl*)
14885 # Native MSVC
14886 # hardcode_libdir_flag_spec is actually meaningless, as there is
14887 # no search path for DLLs.
14888 hardcode_libdir_flag_spec_CXX=' '
14889 allow_undefined_flag_CXX=unsupported
14890 always_export_symbols_CXX=yes
14891 file_list_spec_CXX='@'
14892 # Tell ltmain to make .lib files, not .a files.
14893 libext=lib
14894 # Tell ltmain to make .dll files, not .so files.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014895 shrext_cmds=.dll
Nick Kralevichf73ff172014-09-27 12:41:49 -070014896 # FIXME: Setting linknames here is a bad hack.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014897 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14898 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14899 cp "$export_symbols" "$output_objdir/$soname.def";
14900 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14901 else
14902 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14903 fi~
14904 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14905 linknames='
Nick Kralevichf73ff172014-09-27 12:41:49 -070014906 # The linker will not automatically build a static lib if we build a DLL.
14907 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14908 enable_shared_with_static_runtimes_CXX=yes
14909 # Don't use ranlib
14910 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14911 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014912 lt_tool_outputfile="@TOOL_OUTPUT@"~
14913 case $lt_outputfile in
14914 *.exe|*.EXE) ;;
14915 *)
14916 lt_outputfile=$lt_outputfile.exe
14917 lt_tool_outputfile=$lt_tool_outputfile.exe
14918 ;;
14919 esac~
14920 func_to_tool_file "$lt_outputfile"~
14921 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14922 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14923 $RM "$lt_outputfile.manifest";
14924 fi'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014925 ;;
14926 *)
14927 # g++
14928 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14929 # as there is no search path for DLLs.
14930 hardcode_libdir_flag_spec_CXX='-L$libdir'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014931 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014932 allow_undefined_flag_CXX=unsupported
14933 always_export_symbols_CXX=no
14934 enable_shared_with_static_runtimes_CXX=yes
14935
14936 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014937 archive_cmds_CXX='$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'
14938 # If the export-symbols file already is a .def file, use it as
14939 # is; otherwise, prepend EXPORTS...
14940 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14941 cp $export_symbols $output_objdir/$soname.def;
14942 else
14943 echo EXPORTS > $output_objdir/$soname.def;
14944 cat $export_symbols >> $output_objdir/$soname.def;
14945 fi~
14946 $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014947 else
14948 ld_shlibs_CXX=no
14949 fi
14950 ;;
14951 esac
14952 ;;
14953 darwin* | rhapsody*)
14954
14955
14956 archive_cmds_need_lc_CXX=no
14957 hardcode_direct_CXX=no
14958 hardcode_automatic_CXX=yes
14959 hardcode_shlibpath_var_CXX=unsupported
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014960 if test yes = "$lt_cv_ld_force_load"; then
14961 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070014962
14963 else
14964 whole_archive_flag_spec_CXX=''
14965 fi
14966 link_all_deplibs_CXX=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014967 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
Nick Kralevichf73ff172014-09-27 12:41:49 -070014968 case $cc_basename in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014969 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070014970 *) _lt_dar_can_shared=$GCC ;;
14971 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014972 if test yes = "$_lt_dar_can_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070014973 output_verbose_link_cmd=func_echo_all
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014974 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14975 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14976 archive_expsym_cmds_CXX="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"
14977 module_expsym_cmds_CXX="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"
14978 if test yes != "$lt_cv_apple_cc_single_mod"; then
14979 archive_cmds_CXX="\$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"
14980 archive_expsym_cmds_CXX="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"
Nick Kralevichf73ff172014-09-27 12:41:49 -070014981 fi
14982
14983 else
14984 ld_shlibs_CXX=no
14985 fi
14986
14987 ;;
14988
Elliott Hughes8366e8b2015-08-14 20:48:15 -070014989 os2*)
14990 hardcode_libdir_flag_spec_CXX='-L$libdir'
14991 hardcode_minus_L_CXX=yes
14992 allow_undefined_flag_CXX=unsupported
14993 shrext_cmds=.dll
14994 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14995 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14996 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14997 $ECHO EXPORTS >> $output_objdir/$libname.def~
14998 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14999 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15000 emximp -o $lib $output_objdir/$libname.def'
15001 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15002 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15003 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15004 $ECHO EXPORTS >> $output_objdir/$libname.def~
15005 prefix_cmds="$SED"~
15006 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15007 prefix_cmds="$prefix_cmds -e 1d";
15008 fi~
15009 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15010 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15011 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15012 emximp -o $lib $output_objdir/$libname.def'
15013 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15014 enable_shared_with_static_runtimes_CXX=yes
15015 ;;
15016
Nick Kralevichf73ff172014-09-27 12:41:49 -070015017 dgux*)
15018 case $cc_basename in
15019 ec++*)
15020 # FIXME: insert proper C++ library support
15021 ld_shlibs_CXX=no
15022 ;;
15023 ghcx*)
15024 # Green Hills C++ Compiler
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 *)
15029 # FIXME: insert proper C++ library support
15030 ld_shlibs_CXX=no
15031 ;;
15032 esac
15033 ;;
15034
15035 freebsd2.*)
15036 # C++ shared libraries reported to be fairly broken before
15037 # switch to ELF
15038 ld_shlibs_CXX=no
15039 ;;
15040
15041 freebsd-elf*)
15042 archive_cmds_need_lc_CXX=no
15043 ;;
15044
15045 freebsd* | dragonfly*)
15046 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15047 # conventions
15048 ld_shlibs_CXX=yes
15049 ;;
15050
Nick Kralevichf73ff172014-09-27 12:41:49 -070015051 haiku*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015052 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015053 link_all_deplibs_CXX=yes
15054 ;;
15055
15056 hpux9*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015057 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015058 hardcode_libdir_separator_CXX=:
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015059 export_dynamic_flag_spec_CXX='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015060 hardcode_direct_CXX=yes
15061 hardcode_minus_L_CXX=yes # Not in the search PATH,
15062 # but as the default
15063 # location of the library.
15064
15065 case $cc_basename in
15066 CC*)
15067 # FIXME: insert proper C++ library support
15068 ld_shlibs_CXX=no
15069 ;;
15070 aCC*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015071 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015072 # Commands to make compiler produce verbose output that lists
15073 # what "hidden" libraries, object files and flags are used when
15074 # linking a shared library.
15075 #
15076 # There doesn't appear to be a way to prevent this compiler from
15077 # explicitly linking system object files so we need to strip them
15078 # from the output so that they don't get included in the library
15079 # dependencies.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015080 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"'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015081 ;;
15082 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015083 if test yes = "$GXX"; then
15084 archive_cmds_CXX='$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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015085 else
15086 # FIXME: insert proper C++ library support
15087 ld_shlibs_CXX=no
15088 fi
15089 ;;
15090 esac
15091 ;;
15092
15093 hpux10*|hpux11*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015094 if test no = "$with_gnu_ld"; then
15095 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015096 hardcode_libdir_separator_CXX=:
15097
15098 case $host_cpu in
15099 hppa*64*|ia64*)
15100 ;;
15101 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015102 export_dynamic_flag_spec_CXX='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015103 ;;
15104 esac
15105 fi
15106 case $host_cpu in
15107 hppa*64*|ia64*)
15108 hardcode_direct_CXX=no
15109 hardcode_shlibpath_var_CXX=no
15110 ;;
15111 *)
15112 hardcode_direct_CXX=yes
15113 hardcode_direct_absolute_CXX=yes
15114 hardcode_minus_L_CXX=yes # Not in the search PATH,
15115 # but as the default
15116 # location of the library.
15117 ;;
15118 esac
15119
15120 case $cc_basename in
15121 CC*)
15122 # FIXME: insert proper C++ library support
15123 ld_shlibs_CXX=no
15124 ;;
15125 aCC*)
15126 case $host_cpu in
15127 hppa*64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015128 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015129 ;;
15130 ia64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015131 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015132 ;;
15133 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015134 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015135 ;;
15136 esac
15137 # Commands to make compiler produce verbose output that lists
15138 # what "hidden" libraries, object files and flags are used when
15139 # linking a shared library.
15140 #
15141 # There doesn't appear to be a way to prevent this compiler from
15142 # explicitly linking system object files so we need to strip them
15143 # from the output so that they don't get included in the library
15144 # dependencies.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015145 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"'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015146 ;;
15147 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015148 if test yes = "$GXX"; then
15149 if test no = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015150 case $host_cpu in
15151 hppa*64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015152 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015153 ;;
15154 ia64*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015155 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015156 ;;
15157 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015158 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015159 ;;
15160 esac
15161 fi
15162 else
15163 # FIXME: insert proper C++ library support
15164 ld_shlibs_CXX=no
15165 fi
15166 ;;
15167 esac
15168 ;;
15169
15170 interix[3-9]*)
15171 hardcode_direct_CXX=no
15172 hardcode_shlibpath_var_CXX=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015173 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15174 export_dynamic_flag_spec_CXX='$wl-E'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15176 # Instead, shared libraries are loaded at an image base (0x10000000 by
15177 # default) and relocated if they conflict, which is a slow very memory
15178 # consuming and fragmenting process. To avoid this, we pick a random,
15179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015181 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15182 archive_expsym_cmds_CXX='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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015183 ;;
15184 irix5* | irix6*)
15185 case $cc_basename in
15186 CC*)
15187 # SGI C++
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015188 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015189
15190 # Archives containing C++ object files must be created using
15191 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15192 # necessary to make sure instantiated templates are included
15193 # in the archive.
15194 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15195 ;;
15196 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015197 if test yes = "$GXX"; then
15198 if test no = "$with_gnu_ld"; then
15199 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015200 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015201 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015202 fi
15203 fi
15204 link_all_deplibs_CXX=yes
15205 ;;
15206 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015207 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015208 hardcode_libdir_separator_CXX=:
15209 inherit_rpath_CXX=yes
15210 ;;
15211
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015212 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070015213 case $cc_basename in
15214 KCC*)
15215 # Kuck and Associates, Inc. (KAI) C++ Compiler
15216
15217 # KCC will only create a shared library if the output file
15218 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15219 # to its proper name (with version) after linking.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015220 archive_cmds_CXX='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'
15221 archive_expsym_cmds_CXX='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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015222 # Commands to make compiler produce verbose output that lists
15223 # what "hidden" libraries, object files and flags are used when
15224 # linking a shared library.
15225 #
15226 # There doesn't appear to be a way to prevent this compiler from
15227 # explicitly linking system object files so we need to strip them
15228 # from the output so that they don't get included in the library
15229 # dependencies.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015230 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"'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015231
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015232 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15233 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015234
15235 # Archives containing C++ object files must be created using
15236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15238 ;;
15239 icpc* | ecpc* )
15240 # Intel C++
15241 with_gnu_ld=yes
15242 # version 8.0 and above of icpc choke on multiply defined symbols
15243 # if we add $predep_objects and $postdep_objects, however 7.1 and
15244 # earlier do not add the objects themselves.
15245 case `$CC -V 2>&1` in
15246 *"Version 7."*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15248 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015249 ;;
15250 *) # Version 8.0 or newer
15251 tmp_idyn=
15252 case $host_cpu in
15253 ia64*) tmp_idyn=' -i_dynamic';;
15254 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015255 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15256 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015257 ;;
15258 esac
15259 archive_cmds_need_lc_CXX=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015260 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15261 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15262 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015263 ;;
15264 pgCC* | pgcpp*)
15265 # Portland Group C++ compiler
15266 case `$CC -V` in
15267 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15268 prelink_cmds_CXX='tpldir=Template.dir~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015269 rm -rf $tpldir~
15270 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15271 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015272 old_archive_cmds_CXX='tpldir=Template.dir~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015273 rm -rf $tpldir~
15274 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15275 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15276 $RANLIB $oldlib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015277 archive_cmds_CXX='tpldir=Template.dir~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015278 rm -rf $tpldir~
15279 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15280 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015281 archive_expsym_cmds_CXX='tpldir=Template.dir~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015282 rm -rf $tpldir~
15283 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15284 $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015285 ;;
15286 *) # Version 6 and above use weak symbols
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015287 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15288 archive_expsym_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015289 ;;
15290 esac
15291
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015292 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15293 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15294 whole_archive_flag_spec_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015295 ;;
15296 cxx*)
15297 # Compaq C++
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15299 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015300
15301 runpath_var=LD_RUN_PATH
15302 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15303 hardcode_libdir_separator_CXX=:
15304
15305 # Commands to make compiler produce verbose output that lists
15306 # what "hidden" libraries, object files and flags are used when
15307 # linking a shared library.
15308 #
15309 # There doesn't appear to be a way to prevent this compiler from
15310 # explicitly linking system object files so we need to strip them
15311 # from the output so that they don't get included in the library
15312 # dependencies.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015313 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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015314 ;;
15315 xl* | mpixl* | bgxl*)
15316 # IBM XL 8.0 on PPC, with GNU ld
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015317 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15318 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15319 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15320 if test yes = "$supports_anon_versioning"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015321 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15323 echo "local: *; };" >> $output_objdir/$libname.ver~
15324 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015325 fi
15326 ;;
15327 *)
15328 case `$CC -V 2>&1 | sed 5q` in
15329 *Sun\ C*)
15330 # Sun C++ 5.9
15331 no_undefined_flag_CXX=' -zdefs'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015332 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15333 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015334 hardcode_libdir_flag_spec_CXX='-R$libdir'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015335 whole_archive_flag_spec_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015336 compiler_needs_object_CXX=yes
15337
15338 # Not sure whether something based on
15339 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15340 # would be better.
15341 output_verbose_link_cmd='func_echo_all'
15342
15343 # Archives containing C++ object files must be created using
15344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15345 # necessary to make sure instantiated templates are included
15346 # in the archive.
15347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15348 ;;
15349 esac
15350 ;;
15351 esac
15352 ;;
15353
15354 lynxos*)
15355 # FIXME: insert proper C++ library support
15356 ld_shlibs_CXX=no
15357 ;;
15358
15359 m88k*)
15360 # FIXME: insert proper C++ library support
15361 ld_shlibs_CXX=no
15362 ;;
15363
15364 mvs*)
15365 case $cc_basename in
15366 cxx*)
15367 # FIXME: insert proper C++ library support
15368 ld_shlibs_CXX=no
15369 ;;
15370 *)
15371 # FIXME: insert proper C++ library support
15372 ld_shlibs_CXX=no
15373 ;;
15374 esac
15375 ;;
15376
15377 netbsd*)
15378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15379 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15380 wlarc=
15381 hardcode_libdir_flag_spec_CXX='-R$libdir'
15382 hardcode_direct_CXX=yes
15383 hardcode_shlibpath_var_CXX=no
15384 fi
15385 # Workaround some broken pre-1.5 toolchains
15386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15387 ;;
15388
15389 *nto* | *qnx*)
15390 ld_shlibs_CXX=yes
15391 ;;
15392
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015393 openbsd* | bitrig*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070015394 if test -f /usr/libexec/ld.so; then
15395 hardcode_direct_CXX=yes
15396 hardcode_shlibpath_var_CXX=no
15397 hardcode_direct_absolute_CXX=yes
15398 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015399 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15401 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15402 export_dynamic_flag_spec_CXX='$wl-E'
15403 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015404 fi
15405 output_verbose_link_cmd=func_echo_all
15406 else
15407 ld_shlibs_CXX=no
15408 fi
15409 ;;
15410
15411 osf3* | osf4* | osf5*)
15412 case $cc_basename in
15413 KCC*)
15414 # Kuck and Associates, Inc. (KAI) C++ Compiler
15415
15416 # KCC will only create a shared library if the output file
15417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15418 # to its proper name (with version) after linking.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015419 archive_cmds_CXX='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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015420
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015422 hardcode_libdir_separator_CXX=:
15423
15424 # Archives containing C++ object files must be created using
15425 # the KAI C++ compiler.
15426 case $host in
15427 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15428 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15429 esac
15430 ;;
15431 RCC*)
15432 # Rational C++ 2.4.1
15433 # FIXME: insert proper C++ library support
15434 ld_shlibs_CXX=no
15435 ;;
15436 cxx*)
15437 case $host in
15438 osf3*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015439 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15440 archive_cmds_CXX='$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'
15441 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015442 ;;
15443 *)
15444 allow_undefined_flag_CXX=' -expect_unresolved \*'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015445 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015446 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015447 echo "-hidden">> $lib.exp~
15448 $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~
15449 $RM $lib.exp'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015450 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15451 ;;
15452 esac
15453
15454 hardcode_libdir_separator_CXX=:
15455
15456 # Commands to make compiler produce verbose output that lists
15457 # what "hidden" libraries, object files and flags are used when
15458 # linking a shared library.
15459 #
15460 # There doesn't appear to be a way to prevent this compiler from
15461 # explicitly linking system object files so we need to strip them
15462 # from the output so that they don't get included in the library
15463 # dependencies.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015464 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"'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015465 ;;
15466 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015467 if test yes,no = "$GXX,$with_gnu_ld"; then
15468 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015469 case $host in
15470 osf3*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015471 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015472 ;;
15473 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015474 archive_cmds_CXX='$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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015475 ;;
15476 esac
15477
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015478 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015479 hardcode_libdir_separator_CXX=:
15480
15481 # Commands to make compiler produce verbose output that lists
15482 # what "hidden" libraries, object files and flags are used when
15483 # linking a shared library.
15484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15485
15486 else
15487 # FIXME: insert proper C++ library support
15488 ld_shlibs_CXX=no
15489 fi
15490 ;;
15491 esac
15492 ;;
15493
15494 psos*)
15495 # FIXME: insert proper C++ library support
15496 ld_shlibs_CXX=no
15497 ;;
15498
15499 sunos4*)
15500 case $cc_basename in
15501 CC*)
15502 # Sun C++ 4.x
15503 # FIXME: insert proper C++ library support
15504 ld_shlibs_CXX=no
15505 ;;
15506 lcc*)
15507 # Lucid
15508 # FIXME: insert proper C++ library support
15509 ld_shlibs_CXX=no
15510 ;;
15511 *)
15512 # FIXME: insert proper C++ library support
15513 ld_shlibs_CXX=no
15514 ;;
15515 esac
15516 ;;
15517
15518 solaris*)
15519 case $cc_basename in
15520 CC* | sunCC*)
15521 # Sun C++ 4.2, 5.x and Centerline C++
15522 archive_cmds_need_lc_CXX=yes
15523 no_undefined_flag_CXX=' -zdefs'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015524 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015525 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015526 $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015527
15528 hardcode_libdir_flag_spec_CXX='-R$libdir'
15529 hardcode_shlibpath_var_CXX=no
15530 case $host_os in
15531 solaris2.[0-5] | solaris2.[0-5].*) ;;
15532 *)
15533 # The compiler driver will combine and reorder linker options,
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015534 # but understands '-z linker_flag'.
Nick Kralevichf73ff172014-09-27 12:41:49 -070015535 # Supported since Solaris 2.6 (maybe 2.5.1?)
15536 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15537 ;;
15538 esac
15539 link_all_deplibs_CXX=yes
15540
15541 output_verbose_link_cmd='func_echo_all'
15542
15543 # Archives containing C++ object files must be created using
15544 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15545 # necessary to make sure instantiated templates are included
15546 # in the archive.
15547 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15548 ;;
15549 gcx*)
15550 # Green Hills C++ Compiler
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015552
15553 # The C++ compiler must be used to create the archive.
15554 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15555 ;;
15556 *)
15557 # GNU C++ compiler with Solaris linker
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015558 if test yes,no = "$GXX,$with_gnu_ld"; then
15559 no_undefined_flag_CXX=' $wl-z ${wl}defs'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015560 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015561 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015562 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015563 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015564
15565 # Commands to make compiler produce verbose output that lists
15566 # what "hidden" libraries, object files and flags are used when
15567 # linking a shared library.
15568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15569 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015570 # g++ 2.7 appears to require '-G' NOT '-shared' on this
Nick Kralevichf73ff172014-09-27 12:41:49 -070015571 # platform.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015572 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015573 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015574 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015575
15576 # Commands to make compiler produce verbose output that lists
15577 # what "hidden" libraries, object files and flags are used when
15578 # linking a shared library.
15579 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15580 fi
15581
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015582 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015583 case $host_os in
15584 solaris2.[0-5] | solaris2.[0-5].*) ;;
15585 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015586 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015587 ;;
15588 esac
15589 fi
15590 ;;
15591 esac
15592 ;;
15593
15594 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015595 no_undefined_flag_CXX='$wl-z,text'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015596 archive_cmds_need_lc_CXX=no
15597 hardcode_shlibpath_var_CXX=no
15598 runpath_var='LD_RUN_PATH'
15599
15600 case $cc_basename in
15601 CC*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015602 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015604 ;;
15605 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015606 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015608 ;;
15609 esac
15610 ;;
15611
15612 sysv5* | sco3.2v5* | sco5v6*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015613 # Note: We CANNOT use -z defs as we might desire, because we do not
Nick Kralevichf73ff172014-09-27 12:41:49 -070015614 # link with -lc, and that would cause any symbols used from libc to
15615 # always be unresolved, which means just about no library would
15616 # ever link correctly. If we're not using GNU ld we use -z text
15617 # though, which does catch some bad symbols but isn't as heavy-handed
15618 # as -z defs.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015619 no_undefined_flag_CXX='$wl-z,text'
15620 allow_undefined_flag_CXX='$wl-z,nodefs'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015621 archive_cmds_need_lc_CXX=no
15622 hardcode_shlibpath_var_CXX=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015623 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015624 hardcode_libdir_separator_CXX=':'
15625 link_all_deplibs_CXX=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015626 export_dynamic_flag_spec_CXX='$wl-Bexport'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015627 runpath_var='LD_RUN_PATH'
15628
15629 case $cc_basename in
15630 CC*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015631 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015633 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015634 '"$old_archive_cmds_CXX"
Nick Kralevichf73ff172014-09-27 12:41:49 -070015635 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015636 '"$reload_cmds_CXX"
Nick Kralevichf73ff172014-09-27 12:41:49 -070015637 ;;
15638 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015639 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015641 ;;
15642 esac
15643 ;;
15644
15645 tandem*)
15646 case $cc_basename in
15647 NCC*)
15648 # NonStop-UX NCC 3.20
15649 # FIXME: insert proper C++ library support
15650 ld_shlibs_CXX=no
15651 ;;
15652 *)
15653 # FIXME: insert proper C++ library support
15654 ld_shlibs_CXX=no
15655 ;;
15656 esac
15657 ;;
15658
15659 vxworks*)
15660 # FIXME: insert proper C++ library support
15661 ld_shlibs_CXX=no
15662 ;;
15663
15664 *)
15665 # FIXME: insert proper C++ library support
15666 ld_shlibs_CXX=no
15667 ;;
15668 esac
15669
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15671$as_echo "$ld_shlibs_CXX" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015672 test no = "$ld_shlibs_CXX" && can_build_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070015673
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015674 GCC_CXX=$GXX
15675 LD_CXX=$LD
Nick Kralevichf73ff172014-09-27 12:41:49 -070015676
15677 ## CAVEAT EMPTOR:
15678 ## There is no encapsulation within the following macros, do not change
15679 ## the running order or otherwise move them around unless you know exactly
15680 ## what you are doing...
15681 # Dependencies to place before and after the object being linked:
15682predep_objects_CXX=
15683postdep_objects_CXX=
15684predeps_CXX=
15685postdeps_CXX=
15686compiler_lib_search_path_CXX=
15687
15688cat > conftest.$ac_ext <<_LT_EOF
15689class Foo
15690{
15691public:
15692 Foo (void) { a = 0; }
15693private:
15694 int a;
15695};
15696_LT_EOF
15697
15698
15699_lt_libdeps_save_CFLAGS=$CFLAGS
15700case "$CC $CFLAGS " in #(
15701*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15702*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15703*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15704esac
15705
15706if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15707 (eval $ac_compile) 2>&5
15708 ac_status=$?
15709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710 test $ac_status = 0; }; then
15711 # Parse the compiler output and extract the necessary
15712 # objects, libraries and library flags.
15713
15714 # Sentinel used to keep track of whether or not we are before
15715 # the conftest object file.
15716 pre_test_object_deps_done=no
15717
15718 for p in `eval "$output_verbose_link_cmd"`; do
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015719 case $prev$p in
Nick Kralevichf73ff172014-09-27 12:41:49 -070015720
15721 -L* | -R* | -l*)
15722 # Some compilers place space between "-{L,R}" and the path.
15723 # Remove the space.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015724 if test x-L = "$p" ||
15725 test x-R = "$p"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015726 prev=$p
15727 continue
15728 fi
15729
15730 # Expand the sysroot to ease extracting the directories later.
15731 if test -z "$prev"; then
15732 case $p in
15733 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15734 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15735 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15736 esac
15737 fi
15738 case $p in
15739 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15740 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015741 if test no = "$pre_test_object_deps_done"; then
15742 case $prev in
Nick Kralevichf73ff172014-09-27 12:41:49 -070015743 -L | -R)
15744 # Internal compiler library paths should come after those
15745 # provided the user. The postdeps already come after the
15746 # user supplied libs so there is no need to process them.
15747 if test -z "$compiler_lib_search_path_CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015748 compiler_lib_search_path_CXX=$prev$p
Nick Kralevichf73ff172014-09-27 12:41:49 -070015749 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015750 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
Nick Kralevichf73ff172014-09-27 12:41:49 -070015751 fi
15752 ;;
15753 # The "-l" case would never come before the object being
15754 # linked, so don't bother handling this case.
15755 esac
15756 else
15757 if test -z "$postdeps_CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015758 postdeps_CXX=$prev$p
Nick Kralevichf73ff172014-09-27 12:41:49 -070015759 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015760 postdeps_CXX="${postdeps_CXX} $prev$p"
Nick Kralevichf73ff172014-09-27 12:41:49 -070015761 fi
15762 fi
15763 prev=
15764 ;;
15765
15766 *.lto.$objext) ;; # Ignore GCC LTO objects
15767 *.$objext)
15768 # This assumes that the test object file only shows up
15769 # once in the compiler output.
15770 if test "$p" = "conftest.$objext"; then
15771 pre_test_object_deps_done=yes
15772 continue
15773 fi
15774
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015775 if test no = "$pre_test_object_deps_done"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015776 if test -z "$predep_objects_CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015777 predep_objects_CXX=$p
Nick Kralevichf73ff172014-09-27 12:41:49 -070015778 else
15779 predep_objects_CXX="$predep_objects_CXX $p"
15780 fi
15781 else
15782 if test -z "$postdep_objects_CXX"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015783 postdep_objects_CXX=$p
Nick Kralevichf73ff172014-09-27 12:41:49 -070015784 else
15785 postdep_objects_CXX="$postdep_objects_CXX $p"
15786 fi
15787 fi
15788 ;;
15789
15790 *) ;; # Ignore the rest.
15791
15792 esac
15793 done
15794
15795 # Clean up.
15796 rm -f a.out a.exe
15797else
15798 echo "libtool.m4: error: problem compiling CXX test program"
15799fi
15800
15801$RM -f confest.$objext
15802CFLAGS=$_lt_libdeps_save_CFLAGS
15803
15804# PORTME: override above test on systems where it is broken
15805case $host_os in
15806interix[3-9]*)
15807 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15808 # hack all around it, let's just trust "g++" to DTRT.
15809 predep_objects_CXX=
15810 postdep_objects_CXX=
15811 postdeps_CXX=
15812 ;;
Nick Kralevichf73ff172014-09-27 12:41:49 -070015813esac
15814
15815
15816case " $postdeps_CXX " in
15817*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15818esac
15819 compiler_lib_search_dirs_CXX=
15820if test -n "${compiler_lib_search_path_CXX}"; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015821 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
Nick Kralevichf73ff172014-09-27 12:41:49 -070015822fi
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854 lt_prog_compiler_wl_CXX=
15855lt_prog_compiler_pic_CXX=
15856lt_prog_compiler_static_CXX=
15857
15858
15859 # C++ specific cases for pic, static, wl, etc.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015860 if test yes = "$GXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015861 lt_prog_compiler_wl_CXX='-Wl,'
15862 lt_prog_compiler_static_CXX='-static'
15863
15864 case $host_os in
15865 aix*)
15866 # All AIX code is PIC.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015867 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015868 # AIX 5 now supports IA64 processor
15869 lt_prog_compiler_static_CXX='-Bstatic'
15870 fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015871 lt_prog_compiler_pic_CXX='-fPIC'
Nick Kralevichf73ff172014-09-27 12:41:49 -070015872 ;;
15873
15874 amigaos*)
15875 case $host_cpu in
15876 powerpc)
15877 # see comment about AmigaOS4 .so support
15878 lt_prog_compiler_pic_CXX='-fPIC'
15879 ;;
15880 m68k)
15881 # FIXME: we need at least 68020 code to build shared libraries, but
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015882 # adding the '-m68020' flag to GCC prevents building anything better,
15883 # like '-m68040'.
Nick Kralevichf73ff172014-09-27 12:41:49 -070015884 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15885 ;;
15886 esac
15887 ;;
15888
15889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15890 # PIC is the default for these OSes.
15891 ;;
15892 mingw* | cygwin* | os2* | pw32* | cegcc*)
15893 # This hack is so that the source file can tell whether it is being
15894 # built for inclusion in a dll (and should export symbols for example).
15895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15896 # (--disable-auto-import) libraries
15897 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015898 case $host_os in
15899 os2*)
15900 lt_prog_compiler_static_CXX='$wl-static'
15901 ;;
15902 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070015903 ;;
15904 darwin* | rhapsody*)
15905 # PIC is the default on this platform
15906 # Common symbols not allowed in MH_DYLIB files
15907 lt_prog_compiler_pic_CXX='-fno-common'
15908 ;;
15909 *djgpp*)
15910 # DJGPP does not support shared libraries at all
15911 lt_prog_compiler_pic_CXX=
15912 ;;
15913 haiku*)
15914 # PIC is the default for Haiku.
15915 # The "-static" flag exists, but is broken.
15916 lt_prog_compiler_static_CXX=
15917 ;;
15918 interix[3-9]*)
15919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15920 # Instead, we relocate shared libraries at runtime.
15921 ;;
15922 sysv4*MP*)
15923 if test -d /usr/nec; then
15924 lt_prog_compiler_pic_CXX=-Kconform_pic
15925 fi
15926 ;;
15927 hpux*)
15928 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15929 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15930 # sets the default TLS model and affects inlining.
15931 case $host_cpu in
15932 hppa*64*)
15933 ;;
15934 *)
15935 lt_prog_compiler_pic_CXX='-fPIC'
15936 ;;
15937 esac
15938 ;;
15939 *qnx* | *nto*)
15940 # QNX uses GNU C++, but need to define -shared option too, otherwise
15941 # it will coredump.
15942 lt_prog_compiler_pic_CXX='-fPIC -shared'
15943 ;;
15944 *)
15945 lt_prog_compiler_pic_CXX='-fPIC'
15946 ;;
15947 esac
15948 else
15949 case $host_os in
15950 aix[4-9]*)
15951 # All AIX code is PIC.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015952 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015953 # AIX 5 now supports IA64 processor
15954 lt_prog_compiler_static_CXX='-Bstatic'
15955 else
15956 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15957 fi
15958 ;;
15959 chorus*)
15960 case $cc_basename in
15961 cxch68*)
15962 # Green Hills C++ Compiler
15963 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--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"
15964 ;;
15965 esac
15966 ;;
15967 mingw* | cygwin* | os2* | pw32* | cegcc*)
15968 # This hack is so that the source file can tell whether it is being
15969 # built for inclusion in a dll (and should export symbols for example).
15970 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15971 ;;
15972 dgux*)
15973 case $cc_basename in
15974 ec++*)
15975 lt_prog_compiler_pic_CXX='-KPIC'
15976 ;;
15977 ghcx*)
15978 # Green Hills C++ Compiler
15979 lt_prog_compiler_pic_CXX='-pic'
15980 ;;
15981 *)
15982 ;;
15983 esac
15984 ;;
15985 freebsd* | dragonfly*)
15986 # FreeBSD uses GNU C++
15987 ;;
15988 hpux9* | hpux10* | hpux11*)
15989 case $cc_basename in
15990 CC*)
15991 lt_prog_compiler_wl_CXX='-Wl,'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015992 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15993 if test ia64 != "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070015994 lt_prog_compiler_pic_CXX='+Z'
15995 fi
15996 ;;
15997 aCC*)
15998 lt_prog_compiler_wl_CXX='-Wl,'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070015999 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016000 case $host_cpu in
16001 hppa*64*|ia64*)
16002 # +Z the default
16003 ;;
16004 *)
16005 lt_prog_compiler_pic_CXX='+Z'
16006 ;;
16007 esac
16008 ;;
16009 *)
16010 ;;
16011 esac
16012 ;;
16013 interix*)
16014 # This is c89, which is MS Visual C++ (no shared libs)
16015 # Anyone wants to do a port?
16016 ;;
16017 irix5* | irix6* | nonstopux*)
16018 case $cc_basename in
16019 CC*)
16020 lt_prog_compiler_wl_CXX='-Wl,'
16021 lt_prog_compiler_static_CXX='-non_shared'
16022 # CC pic flag -KPIC is the default.
16023 ;;
16024 *)
16025 ;;
16026 esac
16027 ;;
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016028 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070016029 case $cc_basename in
16030 KCC*)
16031 # KAI C++ Compiler
16032 lt_prog_compiler_wl_CXX='--backend -Wl,'
16033 lt_prog_compiler_pic_CXX='-fPIC'
16034 ;;
16035 ecpc* )
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016036 # old Intel C++ for x86_64, which still supported -KPIC.
Nick Kralevichf73ff172014-09-27 12:41:49 -070016037 lt_prog_compiler_wl_CXX='-Wl,'
16038 lt_prog_compiler_pic_CXX='-KPIC'
16039 lt_prog_compiler_static_CXX='-static'
16040 ;;
16041 icpc* )
16042 # Intel C++, used to be incompatible with GCC.
16043 # ICC 10 doesn't accept -KPIC any more.
16044 lt_prog_compiler_wl_CXX='-Wl,'
16045 lt_prog_compiler_pic_CXX='-fPIC'
16046 lt_prog_compiler_static_CXX='-static'
16047 ;;
16048 pgCC* | pgcpp*)
16049 # Portland Group C++ compiler
16050 lt_prog_compiler_wl_CXX='-Wl,'
16051 lt_prog_compiler_pic_CXX='-fpic'
16052 lt_prog_compiler_static_CXX='-Bstatic'
16053 ;;
16054 cxx*)
16055 # Compaq C++
16056 # Make sure the PIC flag is empty. It appears that all Alpha
16057 # Linux and Compaq Tru64 Unix objects are PIC.
16058 lt_prog_compiler_pic_CXX=
16059 lt_prog_compiler_static_CXX='-non_shared'
16060 ;;
16061 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16062 # IBM XL 8.0, 9.0 on PPC and BlueGene
16063 lt_prog_compiler_wl_CXX='-Wl,'
16064 lt_prog_compiler_pic_CXX='-qpic'
16065 lt_prog_compiler_static_CXX='-qstaticlink'
16066 ;;
16067 *)
16068 case `$CC -V 2>&1 | sed 5q` in
16069 *Sun\ C*)
16070 # Sun C++ 5.9
16071 lt_prog_compiler_pic_CXX='-KPIC'
16072 lt_prog_compiler_static_CXX='-Bstatic'
16073 lt_prog_compiler_wl_CXX='-Qoption ld '
16074 ;;
16075 esac
16076 ;;
16077 esac
16078 ;;
16079 lynxos*)
16080 ;;
16081 m88k*)
16082 ;;
16083 mvs*)
16084 case $cc_basename in
16085 cxx*)
16086 lt_prog_compiler_pic_CXX='-W c,exportall'
16087 ;;
16088 *)
16089 ;;
16090 esac
16091 ;;
16092 netbsd*)
16093 ;;
16094 *qnx* | *nto*)
16095 # QNX uses GNU C++, but need to define -shared option too, otherwise
16096 # it will coredump.
16097 lt_prog_compiler_pic_CXX='-fPIC -shared'
16098 ;;
16099 osf3* | osf4* | osf5*)
16100 case $cc_basename in
16101 KCC*)
16102 lt_prog_compiler_wl_CXX='--backend -Wl,'
16103 ;;
16104 RCC*)
16105 # Rational C++ 2.4.1
16106 lt_prog_compiler_pic_CXX='-pic'
16107 ;;
16108 cxx*)
16109 # Digital/Compaq C++
16110 lt_prog_compiler_wl_CXX='-Wl,'
16111 # Make sure the PIC flag is empty. It appears that all Alpha
16112 # Linux and Compaq Tru64 Unix objects are PIC.
16113 lt_prog_compiler_pic_CXX=
16114 lt_prog_compiler_static_CXX='-non_shared'
16115 ;;
16116 *)
16117 ;;
16118 esac
16119 ;;
16120 psos*)
16121 ;;
16122 solaris*)
16123 case $cc_basename in
16124 CC* | sunCC*)
16125 # Sun C++ 4.2, 5.x and Centerline C++
16126 lt_prog_compiler_pic_CXX='-KPIC'
16127 lt_prog_compiler_static_CXX='-Bstatic'
16128 lt_prog_compiler_wl_CXX='-Qoption ld '
16129 ;;
16130 gcx*)
16131 # Green Hills C++ Compiler
16132 lt_prog_compiler_pic_CXX='-PIC'
16133 ;;
16134 *)
16135 ;;
16136 esac
16137 ;;
16138 sunos4*)
16139 case $cc_basename in
16140 CC*)
16141 # Sun C++ 4.x
16142 lt_prog_compiler_pic_CXX='-pic'
16143 lt_prog_compiler_static_CXX='-Bstatic'
16144 ;;
16145 lcc*)
16146 # Lucid
16147 lt_prog_compiler_pic_CXX='-pic'
16148 ;;
16149 *)
16150 ;;
16151 esac
16152 ;;
16153 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16154 case $cc_basename in
16155 CC*)
16156 lt_prog_compiler_wl_CXX='-Wl,'
16157 lt_prog_compiler_pic_CXX='-KPIC'
16158 lt_prog_compiler_static_CXX='-Bstatic'
16159 ;;
16160 esac
16161 ;;
16162 tandem*)
16163 case $cc_basename in
16164 NCC*)
16165 # NonStop-UX NCC 3.20
16166 lt_prog_compiler_pic_CXX='-KPIC'
16167 ;;
16168 *)
16169 ;;
16170 esac
16171 ;;
16172 vxworks*)
16173 ;;
16174 *)
16175 lt_prog_compiler_can_build_shared_CXX=no
16176 ;;
16177 esac
16178 fi
16179
16180case $host_os in
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016181 # For platforms that do not support PIC, -DPIC is meaningless:
Nick Kralevichf73ff172014-09-27 12:41:49 -070016182 *djgpp*)
16183 lt_prog_compiler_pic_CXX=
16184 ;;
16185 *)
16186 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16187 ;;
16188esac
16189
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16191$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16192if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16193 $as_echo_n "(cached) " >&6
16194else
16195 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16196fi
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16198$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16199lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16200
16201#
16202# Check to make sure the PIC flag actually works.
16203#
16204if test -n "$lt_prog_compiler_pic_CXX"; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16206$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16207if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16208 $as_echo_n "(cached) " >&6
16209else
16210 lt_cv_prog_compiler_pic_works_CXX=no
16211 ac_outfile=conftest.$ac_objext
16212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016213 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
Nick Kralevichf73ff172014-09-27 12:41:49 -070016214 # Insert the option either (1) after the last *FLAGS variable, or
16215 # (2) before a word containing "conftest.", or (3) at the end.
16216 # Note that $ac_compile itself does not contain backslashes and begins
16217 # with a dollar sign (not a hyphen), so the echo should work correctly.
16218 # The option is referenced via a variable to avoid confusing sed.
16219 lt_compile=`echo "$ac_compile" | $SED \
16220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222 -e 's:$: $lt_compiler_flag:'`
16223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16224 (eval "$lt_compile" 2>conftest.err)
16225 ac_status=$?
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 if (exit $ac_status) && test -s "$ac_outfile"; then
16229 # The compiler can only warn and ignore the option if not recognized
16230 # So say no if there are warnings other than the usual output.
16231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16234 lt_cv_prog_compiler_pic_works_CXX=yes
16235 fi
16236 fi
16237 $RM conftest*
16238
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16241$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16242
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016243if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016244 case $lt_prog_compiler_pic_CXX in
16245 "" | " "*) ;;
16246 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16247 esac
16248else
16249 lt_prog_compiler_pic_CXX=
16250 lt_prog_compiler_can_build_shared_CXX=no
16251fi
16252
16253fi
16254
16255
16256
16257
16258
16259#
16260# Check to make sure the static flag actually works.
16261#
16262wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16264$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16265if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16266 $as_echo_n "(cached) " >&6
16267else
16268 lt_cv_prog_compiler_static_works_CXX=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016269 save_LDFLAGS=$LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070016270 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16271 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16272 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16273 # The linker can only warn and ignore the option if not recognized
16274 # So say no if there are warnings
16275 if test -s conftest.err; then
16276 # Append any errors to the config.log.
16277 cat conftest.err 1>&5
16278 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16280 if diff conftest.exp conftest.er2 >/dev/null; then
16281 lt_cv_prog_compiler_static_works_CXX=yes
16282 fi
16283 else
16284 lt_cv_prog_compiler_static_works_CXX=yes
16285 fi
16286 fi
16287 $RM -r conftest*
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016288 LDFLAGS=$save_LDFLAGS
Nick Kralevichf73ff172014-09-27 12:41:49 -070016289
16290fi
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16292$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16293
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016294if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016295 :
16296else
16297 lt_prog_compiler_static_CXX=
16298fi
16299
16300
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16304$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16305if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307else
16308 lt_cv_prog_compiler_c_o_CXX=no
16309 $RM -r conftest 2>/dev/null
16310 mkdir conftest
16311 cd conftest
16312 mkdir out
16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16314
16315 lt_compiler_flag="-o out/conftest2.$ac_objext"
16316 # Insert the option either (1) after the last *FLAGS variable, or
16317 # (2) before a word containing "conftest.", or (3) at the end.
16318 # Note that $ac_compile itself does not contain backslashes and begins
16319 # with a dollar sign (not a hyphen), so the echo should work correctly.
16320 lt_compile=`echo "$ac_compile" | $SED \
16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16323 -e 's:$: $lt_compiler_flag:'`
16324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16325 (eval "$lt_compile" 2>out/conftest.err)
16326 ac_status=$?
16327 cat out/conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16330 then
16331 # The compiler can only warn and ignore the option if not recognized
16332 # So say no if there are warnings
16333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16336 lt_cv_prog_compiler_c_o_CXX=yes
16337 fi
16338 fi
16339 chmod u+w . 2>&5
16340 $RM conftest*
16341 # SGI C++ compiler will create directory out/ii_files/ for
16342 # template instantiation
16343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16344 $RM out/* && rmdir out
16345 cd ..
16346 $RM -r conftest
16347 $RM conftest*
16348
16349fi
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16351$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16352
16353
16354
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16356$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16357if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359else
16360 lt_cv_prog_compiler_c_o_CXX=no
16361 $RM -r conftest 2>/dev/null
16362 mkdir conftest
16363 cd conftest
16364 mkdir out
16365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16366
16367 lt_compiler_flag="-o out/conftest2.$ac_objext"
16368 # Insert the option either (1) after the last *FLAGS variable, or
16369 # (2) before a word containing "conftest.", or (3) at the end.
16370 # Note that $ac_compile itself does not contain backslashes and begins
16371 # with a dollar sign (not a hyphen), so the echo should work correctly.
16372 lt_compile=`echo "$ac_compile" | $SED \
16373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16375 -e 's:$: $lt_compiler_flag:'`
16376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16377 (eval "$lt_compile" 2>out/conftest.err)
16378 ac_status=$?
16379 cat out/conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16382 then
16383 # The compiler can only warn and ignore the option if not recognized
16384 # So say no if there are warnings
16385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16388 lt_cv_prog_compiler_c_o_CXX=yes
16389 fi
16390 fi
16391 chmod u+w . 2>&5
16392 $RM conftest*
16393 # SGI C++ compiler will create directory out/ii_files/ for
16394 # template instantiation
16395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16396 $RM out/* && rmdir out
16397 cd ..
16398 $RM -r conftest
16399 $RM conftest*
16400
16401fi
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16403$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16404
16405
16406
16407
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016408hard_links=nottested
16409if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016410 # do not overwrite the value of need_locks provided by the user
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16412$as_echo_n "checking if we can lock with hard links... " >&6; }
16413 hard_links=yes
16414 $RM conftest*
16415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16416 touch conftest.a
16417 ln conftest.a conftest.b 2>&5 || hard_links=no
16418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16420$as_echo "$hard_links" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016421 if test no = "$hard_links"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16423$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Nick Kralevichf73ff172014-09-27 12:41:49 -070016424 need_locks=warn
16425 fi
16426else
16427 need_locks=no
16428fi
16429
16430
16431
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16433$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16434
16435 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16436 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16437 case $host_os in
16438 aix[4-9]*)
16439 # If we're using GNU nm, then we don't want the "-C" option.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016440 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16441 # Without the "-l" option, or with the "-B" option, AIX nm treats
16442 # weak defined symbols like other global defined symbols, whereas
16443 # GNU nm marks them as "W".
16444 # While the 'weak' keyword is ignored in the Export File, we need
16445 # it in the Import File for the 'aix-soname' feature, so we have
16446 # to replace the "-B" option with "-P" for AIX nm.
Nick Kralevichf73ff172014-09-27 12:41:49 -070016447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016448 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016449 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016450 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016451 fi
16452 ;;
16453 pw32*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016454 export_symbols_cmds_CXX=$ltdll_cmds
Nick Kralevichf73ff172014-09-27 12:41:49 -070016455 ;;
16456 cygwin* | mingw* | cegcc*)
16457 case $cc_basename in
16458 cl*)
16459 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16460 ;;
16461 *)
16462 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16463 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16464 ;;
16465 esac
16466 ;;
16467 *)
16468 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16469 ;;
16470 esac
16471
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16473$as_echo "$ld_shlibs_CXX" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016474test no = "$ld_shlibs_CXX" && can_build_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070016475
16476with_gnu_ld_CXX=$with_gnu_ld
16477
16478
16479
16480
16481
16482
16483#
16484# Do we need to explicitly link libc?
16485#
16486case "x$archive_cmds_need_lc_CXX" in
16487x|xyes)
16488 # Assume -lc should be added
16489 archive_cmds_need_lc_CXX=yes
16490
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016491 if test yes,yes = "$GCC,$enable_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016492 case $archive_cmds_CXX in
16493 *'~'*)
16494 # FIXME: we may have to deal with multi-command sequences.
16495 ;;
16496 '$CC '*)
16497 # Test whether the compiler implicitly links with -lc since on some
16498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16499 # to ld, don't add -lc before -lgcc.
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16501$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16502if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504else
16505 $RM conftest*
16506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16507
16508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16509 (eval $ac_compile) 2>&5
16510 ac_status=$?
16511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16512 test $ac_status = 0; } 2>conftest.err; then
16513 soname=conftest
16514 lib=conftest
16515 libobjs=conftest.$ac_objext
16516 deplibs=
16517 wl=$lt_prog_compiler_wl_CXX
16518 pic_flag=$lt_prog_compiler_pic_CXX
16519 compiler_flags=-v
16520 linker_flags=-v
16521 verstring=
16522 output_objdir=.
16523 libname=conftest
16524 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16525 allow_undefined_flag_CXX=
16526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16527 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16528 ac_status=$?
16529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 test $ac_status = 0; }
16531 then
16532 lt_cv_archive_cmds_need_lc_CXX=no
16533 else
16534 lt_cv_archive_cmds_need_lc_CXX=yes
16535 fi
16536 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16537 else
16538 cat conftest.err 1>&5
16539 fi
16540 $RM conftest*
16541
16542fi
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16544$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16545 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16546 ;;
16547 esac
16548 fi
16549 ;;
16550esac
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16614$as_echo_n "checking dynamic linker characteristics... " >&6; }
16615
16616library_names_spec=
16617libname_spec='lib$name'
16618soname_spec=
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016619shrext_cmds=.so
Nick Kralevichf73ff172014-09-27 12:41:49 -070016620postinstall_cmds=
16621postuninstall_cmds=
16622finish_cmds=
16623finish_eval=
16624shlibpath_var=
16625shlibpath_overrides_runpath=unknown
16626version_type=none
16627dynamic_linker="$host_os ld.so"
16628sys_lib_dlsearch_path_spec="/lib /usr/lib"
16629need_lib_prefix=unknown
16630hardcode_into_libs=no
16631
16632# when you set need_version to no, make sure it does not cause -set_version
16633# flags to be left without arguments
16634need_version=unknown
16635
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016636
16637
Nick Kralevichf73ff172014-09-27 12:41:49 -070016638case $host_os in
16639aix3*)
16640 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016641 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016642 shlibpath_var=LIBPATH
16643
16644 # AIX 3 has no versioning support, so we append a major version to the name.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016645 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016646 ;;
16647
16648aix[4-9]*)
16649 version_type=linux # correct to gnu/linux during the next big refactor
16650 need_lib_prefix=no
16651 need_version=no
16652 hardcode_into_libs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016653 if test ia64 = "$host_cpu"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016654 # AIX 5 supports IA64
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016655 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016656 shlibpath_var=LD_LIBRARY_PATH
16657 else
16658 # With GCC up to 2.95.x, collect2 would create an import file
16659 # for dependence libraries. The import file would start with
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016660 # the line '#! .'. This would cause the generated library to
16661 # depend on '.', always an invalid library. This was fixed in
Nick Kralevichf73ff172014-09-27 12:41:49 -070016662 # development snapshots of GCC prior to 3.0.
16663 case $host_os in
16664 aix4 | aix4.[01] | aix4.[01].*)
16665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16666 echo ' yes '
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016667 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016668 :
16669 else
16670 can_build_shared=no
16671 fi
16672 ;;
16673 esac
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016674 # Using Import Files as archive members, it is possible to support
16675 # filename-based versioning of shared library archives on AIX. While
16676 # this would work for both with and without runtime linking, it will
16677 # prevent static linking of such archives. So we do filename-based
16678 # shared library versioning with .so extension only, which is used
16679 # when both runtime linking and shared linking is enabled.
16680 # Unfortunately, runtime linking may impact performance, so we do
16681 # not want this to be the default eventually. Also, we use the
16682 # versioned .so libs for executables only if there is the -brtl
16683 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16684 # To allow for filename-based versioning support, we need to create
16685 # libNAME.so.V as an archive file, containing:
16686 # *) an Import File, referring to the versioned filename of the
16687 # archive as well as the shared archive member, telling the
16688 # bitwidth (32 or 64) of that shared object, and providing the
16689 # list of exported symbols of that shared object, eventually
16690 # decorated with the 'weak' keyword
16691 # *) the shared object with the F_LOADONLY flag set, to really avoid
16692 # it being seen by the linker.
16693 # At run time we better use the real file rather than another symlink,
16694 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16695
16696 case $with_aix_soname,$aix_use_runtimelinking in
16697 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Nick Kralevichf73ff172014-09-27 12:41:49 -070016698 # soname into executable. Probably we can add versioning support to
16699 # collect2, so additional links can be useful in future.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016700 aix,yes) # traditional libtool
16701 dynamic_linker='AIX unversionable lib.so'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16703 # instead of lib<name>.a to let people know that these are not
16704 # typical AIX shared libraries.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16706 ;;
16707 aix,no) # traditional AIX only
16708 dynamic_linker='AIX lib.a(lib.so.V)'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016709 # We preserve .a as extension for shared libraries through AIX4.2
16710 # and later when we are not doing run time linking.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016711 library_names_spec='$libname$release.a $libname.a'
16712 soname_spec='$libname$release$shared_ext$major'
16713 ;;
16714 svr4,*) # full svr4 only
16715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16717 # We do not specify a path in Import Files, so LIBPATH fires.
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720 *,yes) # both, prefer svr4
16721 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16722 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16723 # unpreferred sharedlib libNAME.a needs extra handling
16724 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16725 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16726 # We do not specify a path in Import Files, so LIBPATH fires.
16727 shlibpath_overrides_runpath=yes
16728 ;;
16729 *,no) # both, prefer aix
16730 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16731 library_names_spec='$libname$release.a $libname.a'
16732 soname_spec='$libname$release$shared_ext$major'
16733 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16734 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16735 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16736 ;;
16737 esac
Nick Kralevichf73ff172014-09-27 12:41:49 -070016738 shlibpath_var=LIBPATH
16739 fi
16740 ;;
16741
16742amigaos*)
16743 case $host_cpu in
16744 powerpc)
16745 # Since July 2007 AmigaOS4 officially supports .so libraries.
16746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016748 ;;
16749 m68k)
16750 library_names_spec='$libname.ixlibrary $libname.a'
16751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016752 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016753 ;;
16754 esac
16755 ;;
16756
16757beos*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016758 library_names_spec='$libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016759 dynamic_linker="$host_os ld.so"
16760 shlibpath_var=LIBRARY_PATH
16761 ;;
16762
16763bsdi[45]*)
16764 version_type=linux # correct to gnu/linux during the next big refactor
16765 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16767 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16772 # the default ld.so.conf also contains /usr/contrib/lib and
16773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16774 # libtool to hard-code these into programs
16775 ;;
16776
16777cygwin* | mingw* | pw32* | cegcc*)
16778 version_type=windows
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016779 shrext_cmds=.dll
Nick Kralevichf73ff172014-09-27 12:41:49 -070016780 need_version=no
16781 need_lib_prefix=no
16782
16783 case $GCC,$cc_basename in
16784 yes,*)
16785 # gcc
16786 library_names_spec='$libname.dll.a'
16787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016788 postinstall_cmds='base_file=`basename \$file`~
16789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Nick Kralevichf73ff172014-09-27 12:41:49 -070016790 dldir=$destdir/`dirname \$dlpath`~
16791 test -d \$dldir || mkdir -p \$dldir~
16792 $install_prog $dir/$dlname \$dldir/$dlname~
16793 chmod a+x \$dldir/$dlname~
16794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16796 fi'
16797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16798 dlpath=$dir/\$dldll~
16799 $RM \$dlpath'
16800 shlibpath_overrides_runpath=yes
16801
16802 case $host_os in
16803 cygwin*)
16804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016805 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016806
16807 ;;
16808 mingw* | cegcc*)
16809 # MinGW DLLs use traditional 'lib' prefix
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016810 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016811 ;;
16812 pw32*)
16813 # pw32 DLLs use 'pw' prefix rather than 'lib'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016814 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016815 ;;
16816 esac
16817 dynamic_linker='Win32 ld.exe'
16818 ;;
16819
16820 *,cl*)
16821 # Native MSVC
16822 libname_spec='$name'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016823 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16824 library_names_spec='$libname.dll.lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016825
16826 case $build_os in
16827 mingw*)
16828 sys_lib_search_path_spec=
16829 lt_save_ifs=$IFS
16830 IFS=';'
16831 for lt_path in $LIB
16832 do
16833 IFS=$lt_save_ifs
16834 # Let DOS variable expansion print the short 8.3 style file name.
16835 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16836 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16837 done
16838 IFS=$lt_save_ifs
16839 # Convert to MSYS style.
16840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16841 ;;
16842 cygwin*)
16843 # Convert to unix form, then to dos form, then back to unix form
16844 # but this time dos style (no spaces!) so that the unix form looks
16845 # like /cygdrive/c/PROGRA~1:/cygdr...
16846 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16847 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16848 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16849 ;;
16850 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016851 sys_lib_search_path_spec=$LIB
Nick Kralevichf73ff172014-09-27 12:41:49 -070016852 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16853 # It is most probably a Windows format PATH.
16854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16855 else
16856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16857 fi
16858 # FIXME: find the short name or the path components, as spaces are
16859 # common. (e.g. "Program Files" -> "PROGRA~1")
16860 ;;
16861 esac
16862
16863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016864 postinstall_cmds='base_file=`basename \$file`~
16865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Nick Kralevichf73ff172014-09-27 12:41:49 -070016866 dldir=$destdir/`dirname \$dlpath`~
16867 test -d \$dldir || mkdir -p \$dldir~
16868 $install_prog $dir/$dlname \$dldir/$dlname'
16869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870 dlpath=$dir/\$dldll~
16871 $RM \$dlpath'
16872 shlibpath_overrides_runpath=yes
16873 dynamic_linker='Win32 link.exe'
16874 ;;
16875
16876 *)
16877 # Assume MSVC wrapper
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016878 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016879 dynamic_linker='Win32 ld.exe'
16880 ;;
16881 esac
16882 # FIXME: first we should search . and the directory the executable is in
16883 shlibpath_var=PATH
16884 ;;
16885
16886darwin* | rhapsody*)
16887 dynamic_linker="$host_os dyld"
16888 version_type=darwin
16889 need_lib_prefix=no
16890 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016891 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16892 soname_spec='$libname$release$major$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016893 shlibpath_overrides_runpath=yes
16894 shlibpath_var=DYLD_LIBRARY_PATH
16895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16896
16897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16898 ;;
16899
16900dgux*)
16901 version_type=linux # correct to gnu/linux during the next big refactor
16902 need_lib_prefix=no
16903 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16905 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016906 shlibpath_var=LD_LIBRARY_PATH
16907 ;;
16908
16909freebsd* | dragonfly*)
16910 # DragonFly does not have aout. When/if they implement a new
16911 # versioning mechanism, adjust this.
16912 if test -x /usr/bin/objformat; then
16913 objformat=`/usr/bin/objformat`
16914 else
16915 case $host_os in
16916 freebsd[23].*) objformat=aout ;;
16917 *) objformat=elf ;;
16918 esac
16919 fi
16920 version_type=freebsd-$objformat
16921 case $version_type in
16922 freebsd-elf*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16924 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016925 need_version=no
16926 need_lib_prefix=no
16927 ;;
16928 freebsd-*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016930 need_version=yes
16931 ;;
16932 esac
16933 shlibpath_var=LD_LIBRARY_PATH
16934 case $host_os in
16935 freebsd2.*)
16936 shlibpath_overrides_runpath=yes
16937 ;;
16938 freebsd3.[01]* | freebsdelf3.[01]*)
16939 shlibpath_overrides_runpath=yes
16940 hardcode_into_libs=yes
16941 ;;
16942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16944 shlibpath_overrides_runpath=no
16945 hardcode_into_libs=yes
16946 ;;
16947 *) # from 4.6 on, and DragonFly
16948 shlibpath_overrides_runpath=yes
16949 hardcode_into_libs=yes
16950 ;;
16951 esac
16952 ;;
16953
Nick Kralevichf73ff172014-09-27 12:41:49 -070016954haiku*)
16955 version_type=linux # correct to gnu/linux during the next big refactor
16956 need_lib_prefix=no
16957 need_version=no
16958 dynamic_linker="$host_os runtime_loader"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16960 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016961 shlibpath_var=LIBRARY_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016962 shlibpath_overrides_runpath=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070016963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16964 hardcode_into_libs=yes
16965 ;;
16966
16967hpux9* | hpux10* | hpux11*)
16968 # Give a soname corresponding to the major version so that dld.sl refuses to
16969 # link against other versions.
16970 version_type=sunos
16971 need_lib_prefix=no
16972 need_version=no
16973 case $host_cpu in
16974 ia64*)
16975 shrext_cmds='.so'
16976 hardcode_into_libs=yes
16977 dynamic_linker="$host_os dld.so"
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16981 soname_spec='$libname$release$shared_ext$major'
16982 if test 32 = "$HPUX_IA64_MODE"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070016983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016984 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Nick Kralevichf73ff172014-09-27 12:41:49 -070016985 else
16986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016987 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Nick Kralevichf73ff172014-09-27 12:41:49 -070016988 fi
Nick Kralevichf73ff172014-09-27 12:41:49 -070016989 ;;
16990 hppa*64*)
16991 shrext_cmds='.sl'
16992 hardcode_into_libs=yes
16993 dynamic_linker="$host_os dld.sl"
16994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070016996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16997 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070016998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17000 ;;
17001 *)
17002 shrext_cmds='.sl'
17003 dynamic_linker="$host_os dld.sl"
17004 shlibpath_var=SHLIB_PATH
17005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17007 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017008 ;;
17009 esac
17010 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17011 postinstall_cmds='chmod 555 $lib'
17012 # or fails outright, so override atomically:
17013 install_override_mode=555
17014 ;;
17015
17016interix[3-9]*)
17017 version_type=linux # correct to gnu/linux during the next big refactor
17018 need_lib_prefix=no
17019 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17021 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17023 shlibpath_var=LD_LIBRARY_PATH
17024 shlibpath_overrides_runpath=no
17025 hardcode_into_libs=yes
17026 ;;
17027
17028irix5* | irix6* | nonstopux*)
17029 case $host_os in
17030 nonstopux*) version_type=nonstopux ;;
17031 *)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017032 if test yes = "$lt_cv_prog_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017033 version_type=linux # correct to gnu/linux during the next big refactor
17034 else
17035 version_type=irix
17036 fi ;;
17037 esac
17038 need_lib_prefix=no
17039 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017040 soname_spec='$libname$release$shared_ext$major'
17041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017042 case $host_os in
17043 irix5* | nonstopux*)
17044 libsuff= shlibsuff=
17045 ;;
17046 *)
17047 case $LD in # libtool.m4 will add one of these switches to LD
17048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17049 libsuff= shlibsuff= libmagic=32-bit;;
17050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17051 libsuff=32 shlibsuff=N32 libmagic=N32;;
17052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17054 *) libsuff= shlibsuff= libmagic=never-match;;
17055 esac
17056 ;;
17057 esac
17058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17059 shlibpath_overrides_runpath=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017060 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17061 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Nick Kralevichf73ff172014-09-27 12:41:49 -070017062 hardcode_into_libs=yes
17063 ;;
17064
17065# No shared lib support for Linux oldld, aout, or coff.
17066linux*oldld* | linux*aout* | linux*coff*)
17067 dynamic_linker=no
17068 ;;
17069
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017070linux*android*)
17071 version_type=none # Android doesn't support versioned libraries.
17072 need_lib_prefix=no
17073 need_version=no
17074 library_names_spec='$libname$release$shared_ext'
17075 soname_spec='$libname$release$shared_ext'
17076 finish_cmds=
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079
17080 # This implies no fast_install, which is unacceptable.
17081 # Some rework will be needed to allow for fast_install
17082 # before this can be enabled.
17083 hardcode_into_libs=yes
17084
17085 dynamic_linker='Android linker'
17086 # Don't embed -rpath directories since the linker doesn't support them.
17087 hardcode_libdir_flag_spec_CXX='-L$libdir'
17088 ;;
17089
Nick Kralevichf73ff172014-09-27 12:41:49 -070017090# This must be glibc/ELF.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017091linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070017092 version_type=linux # correct to gnu/linux during the next big refactor
17093 need_lib_prefix=no
17094 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17096 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=no
17100
17101 # Some binutils ld are patched to set DT_RUNPATH
17102 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104else
17105 lt_cv_shlibpath_overrides_runpath=no
17106 save_LDFLAGS=$LDFLAGS
17107 save_libdir=$libdir
17108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h. */
17112
17113int
17114main ()
17115{
17116
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121if ac_fn_cxx_try_link "$LINENO"; then :
17122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17123 lt_cv_shlibpath_overrides_runpath=yes
17124fi
17125fi
17126rm -f core conftest.err conftest.$ac_objext \
17127 conftest$ac_exeext conftest.$ac_ext
17128 LDFLAGS=$save_LDFLAGS
17129 libdir=$save_libdir
17130
17131fi
17132
17133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17134
17135 # This implies no fast_install, which is unacceptable.
17136 # Some rework will be needed to allow for fast_install
17137 # before this can be enabled.
17138 hardcode_into_libs=yes
17139
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017140 # Ideally, we could use ldconfig to report *all* directores which are
17141 # searched for libraries, however this is still not possible. Aside from not
17142 # being certain /sbin/ldconfig is available, command
17143 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17144 # even though it is searched at run-time. Try to do the best guess by
17145 # appending ld.so.conf contents (and includes) to the search path.
Nick Kralevichf73ff172014-09-27 12:41:49 -070017146 if test -f /etc/ld.so.conf; then
17147 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' ' '`
17148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17149 fi
17150
17151 # We used to test for /lib/ld.so.1 and disable shared libraries on
17152 # powerpc, because MkLinux only supported shared libraries with the
17153 # GNU dynamic linker. Since this was broken with cross compilers,
17154 # most powerpc-linux boxes support dynamic linking these days and
17155 # people can always --disable-shared, the test was removed, and we
17156 # assume the GNU/Linux dynamic linker is in use.
17157 dynamic_linker='GNU/Linux ld.so'
17158 ;;
17159
17160netbsd*)
17161 version_type=sunos
17162 need_lib_prefix=no
17163 need_version=no
17164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017165 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167 dynamic_linker='NetBSD (a.out) ld.so'
17168 else
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017171 dynamic_linker='NetBSD ld.elf_so'
17172 fi
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=yes
17175 hardcode_into_libs=yes
17176 ;;
17177
17178newsos6)
17179 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=yes
17183 ;;
17184
17185*nto* | *qnx*)
17186 version_type=qnx
17187 need_lib_prefix=no
17188 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17190 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=no
17193 hardcode_into_libs=yes
17194 dynamic_linker='ldqnx.so'
17195 ;;
17196
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017197openbsd* | bitrig*)
Nick Kralevichf73ff172014-09-27 12:41:49 -070017198 version_type=sunos
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017199 sys_lib_dlsearch_path_spec=/usr/lib
Nick Kralevichf73ff172014-09-27 12:41:49 -070017200 need_lib_prefix=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17202 need_version=no
17203 else
17204 need_version=yes
17205 fi
17206 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017209 shlibpath_overrides_runpath=yes
Nick Kralevichf73ff172014-09-27 12:41:49 -070017210 ;;
17211
17212os2*)
17213 libname_spec='$name'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017214 version_type=windows
17215 shrext_cmds=.dll
17216 need_version=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070017217 need_lib_prefix=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017218 # OS/2 can only load a DLL with a base name of 8 characters or less.
17219 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17220 v=$($ECHO $release$versuffix | tr -d .-);
17221 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17222 $ECHO $n$v`$shared_ext'
17223 library_names_spec='${libname}_dll.$libext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017224 dynamic_linker='OS/2 ld.exe'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017225 shlibpath_var=BEGINLIBPATH
17226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17228 postinstall_cmds='base_file=`basename \$file`~
17229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17230 dldir=$destdir/`dirname \$dlpath`~
17231 test -d \$dldir || mkdir -p \$dldir~
17232 $install_prog $dir/$dlname \$dldir/$dlname~
17233 chmod a+x \$dldir/$dlname~
17234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17236 fi'
17237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17238 dlpath=$dir/\$dldll~
17239 $RM \$dlpath'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017240 ;;
17241
17242osf3* | osf4* | osf5*)
17243 version_type=osf
17244 need_lib_prefix=no
17245 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017246 soname_spec='$libname$release$shared_ext$major'
17247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017248 shlibpath_var=LD_LIBRARY_PATH
17249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070017251 ;;
17252
17253rdos*)
17254 dynamic_linker=no
17255 ;;
17256
17257solaris*)
17258 version_type=linux # correct to gnu/linux during the next big refactor
17259 need_lib_prefix=no
17260 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17262 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 hardcode_into_libs=yes
17266 # ldd complains unless libraries are executable
17267 postinstall_cmds='chmod +x $lib'
17268 ;;
17269
17270sunos4*)
17271 version_type=sunos
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017276 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017277 need_lib_prefix=no
17278 fi
17279 need_version=yes
17280 ;;
17281
17282sysv4 | sysv4.3*)
17283 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17285 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017286 shlibpath_var=LD_LIBRARY_PATH
17287 case $host_vendor in
17288 sni)
17289 shlibpath_overrides_runpath=no
17290 need_lib_prefix=no
17291 runpath_var=LD_RUN_PATH
17292 ;;
17293 siemens)
17294 need_lib_prefix=no
17295 ;;
17296 motorola)
17297 need_lib_prefix=no
17298 need_version=no
17299 shlibpath_overrides_runpath=no
17300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17301 ;;
17302 esac
17303 ;;
17304
17305sysv4*MP*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017306 if test -d /usr/nec; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017307 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017308 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17309 soname_spec='$libname$shared_ext.$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017310 shlibpath_var=LD_LIBRARY_PATH
17311 fi
17312 ;;
17313
17314sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017315 version_type=sco
Nick Kralevichf73ff172014-09-27 12:41:49 -070017316 need_lib_prefix=no
17317 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17319 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017320 shlibpath_var=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath=yes
17322 hardcode_into_libs=yes
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017323 if test yes = "$with_gnu_ld"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17325 else
17326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17327 case $host_os in
17328 sco3.2v5*)
17329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17330 ;;
17331 esac
17332 fi
17333 sys_lib_dlsearch_path_spec='/usr/lib'
17334 ;;
17335
17336tpf*)
17337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17338 version_type=linux # correct to gnu/linux during the next big refactor
17339 need_lib_prefix=no
17340 need_version=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 hardcode_into_libs=yes
17345 ;;
17346
17347uts4*)
17348 version_type=linux # correct to gnu/linux during the next big refactor
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17350 soname_spec='$libname$release$shared_ext$major'
Nick Kralevichf73ff172014-09-27 12:41:49 -070017351 shlibpath_var=LD_LIBRARY_PATH
17352 ;;
17353
17354*)
17355 dynamic_linker=no
17356 ;;
17357esac
17358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17359$as_echo "$dynamic_linker" >&6; }
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017360test no = "$dynamic_linker" && can_build_shared=no
Nick Kralevichf73ff172014-09-27 12:41:49 -070017361
17362variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017363if test yes = "$GCC"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17365fi
17366
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017367if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17368 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070017369fi
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017370
17371if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17372 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Nick Kralevichf73ff172014-09-27 12:41:49 -070017373fi
17374
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017375# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17376configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17377
17378# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17379func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17380
17381# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17382configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17383
17384
17385
Nick Kralevichf73ff172014-09-27 12:41:49 -070017386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17424$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17425hardcode_action_CXX=
17426if test -n "$hardcode_libdir_flag_spec_CXX" ||
17427 test -n "$runpath_var_CXX" ||
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017428 test yes = "$hardcode_automatic_CXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017429
17430 # We can hardcode non-existent directories.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017431 if test no != "$hardcode_direct_CXX" &&
Nick Kralevichf73ff172014-09-27 12:41:49 -070017432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17433 # have to relink, otherwise we might link with an installed library
17434 # when we should be linking with a yet-to-be-installed one
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017435 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17436 test no != "$hardcode_minus_L_CXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017437 # Linking always hardcodes the temporary library directory.
17438 hardcode_action_CXX=relink
17439 else
17440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17441 hardcode_action_CXX=immediate
17442 fi
17443else
17444 # We cannot hardcode anything, or else we can only hardcode existing
17445 # directories.
17446 hardcode_action_CXX=unsupported
17447fi
17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17449$as_echo "$hardcode_action_CXX" >&6; }
17450
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017451if test relink = "$hardcode_action_CXX" ||
17452 test yes = "$inherit_rpath_CXX"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017453 # Fast installation is not supported
17454 enable_fast_install=no
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017455elif test yes = "$shlibpath_overrides_runpath" ||
17456 test no = "$enable_shared"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070017457 # Fast installation is not necessary
17458 enable_fast_install=needless
17459fi
17460
17461
17462
17463
17464
17465
17466
17467 fi # test -n "$compiler"
17468
17469 CC=$lt_save_CC
17470 CFLAGS=$lt_save_CFLAGS
17471 LDCXX=$LD
17472 LD=$lt_save_LD
17473 GCC=$lt_save_GCC
17474 with_gnu_ld=$lt_save_with_gnu_ld
17475 lt_cv_path_LDCXX=$lt_cv_path_LD
17476 lt_cv_path_LD=$lt_save_path_LD
17477 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17478 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Elliott Hughes8366e8b2015-08-14 20:48:15 -070017479fi # test yes != "$_lt_caught_CXX_error"
Nick Kralevichf73ff172014-09-27 12:41:49 -070017480
17481ac_ext=c
17482ac_cpp='$CPP $CPPFLAGS'
17483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485ac_compiler_gnu=$ac_cv_c_compiler_gnu
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501 ac_config_commands="$ac_config_commands libtool"
17502
17503
17504
17505
17506# Only expand once:
17507
17508
17509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17510$as_echo_n "checking whether ln -s works... " >&6; }
17511LN_S=$as_ln_s
17512if test "$LN_S" = "ln -s"; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17514$as_echo "yes" >&6; }
17515else
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17517$as_echo "no, using $LN_S" >&6; }
17518fi
17519
17520
17521# Check for GCC visibility feature
17522
17523
17524
17525 VISIBILITY_CFLAGS=
17526 VISIBILITY_CXXFLAGS=
17527 HAVE_VISIBILITY=0
17528 if test -n "$GCC"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
17530$as_echo_n "checking whether the -Werror option is usable... " >&6; }
17531 if ${pcre_cv_cc_vis_werror+:} false; then :
17532 $as_echo_n "(cached) " >&6
17533else
17534
17535 pcre_save_CFLAGS="$CFLAGS"
17536 CFLAGS="$CFLAGS -Werror"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h. */
17539
17540int
17541main ()
17542{
17543
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"; then :
17549 pcre_cv_cc_vis_werror=yes
17550else
17551 pcre_cv_cc_vis_werror=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 CFLAGS="$pcre_save_CFLAGS"
17555fi
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
17558$as_echo "$pcre_cv_cc_vis_werror" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
17560$as_echo_n "checking for simple visibility declarations... " >&6; }
17561 if ${pcre_cv_cc_visibility+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563else
17564
17565 pcre_save_CFLAGS="$CFLAGS"
17566 CFLAGS="$CFLAGS -fvisibility=hidden"
17567 if test $pcre_cv_cc_vis_werror = yes; then
17568 CFLAGS="$CFLAGS -Werror"
17569 fi
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571/* end confdefs.h. */
17572extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17573 extern __attribute__((__visibility__("default"))) int exportedvar;
17574 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17575 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17576 void dummyfunc (void) {}
17577
17578int
17579main ()
17580{
17581
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586if ac_fn_c_try_compile "$LINENO"; then :
17587 pcre_cv_cc_visibility=yes
17588else
17589 pcre_cv_cc_visibility=no
17590fi
17591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 CFLAGS="$pcre_save_CFLAGS"
17593fi
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
17596$as_echo "$pcre_cv_cc_visibility" >&6; }
17597 if test $pcre_cv_cc_visibility = yes; then
17598 VISIBILITY_CFLAGS="-fvisibility=hidden"
17599 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
17600 HAVE_VISIBILITY=1
17601
17602$as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17603
17604
17605$as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17606
17607
17608$as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17609
17610
17611$as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17612
17613
17614$as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17615
17616
17617$as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17618
17619
17620$as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17621
17622 fi
17623 fi
17624
17625
17626
17627
17628cat >>confdefs.h <<_ACEOF
17629#define HAVE_VISIBILITY $HAVE_VISIBILITY
17630_ACEOF
17631
17632
17633
17634# Versioning
17635
17636PCRE_MAJOR="8"
Elliott Hughes0ea98832015-12-04 23:18:20 -080017637PCRE_MINOR="38"
Nick Kralevichf73ff172014-09-27 12:41:49 -070017638PCRE_PRERELEASE=""
Elliott Hughes0ea98832015-12-04 23:18:20 -080017639PCRE_DATE="2015-11-23"
Nick Kralevichf73ff172014-09-27 12:41:49 -070017640
17641if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17642then
17643 echo "***"
17644 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17645 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17646 echo "***"
17647 exit 1
17648fi
17649
17650
17651
17652
17653
17654
17655# Set a more sensible default value for $(htmldir).
17656if test "x$htmldir" = 'x${docdir}'
17657then
17658 htmldir='${docdir}/html'
17659fi
17660
17661# Handle --disable-pcre8 (enabled by default)
17662# Check whether --enable-pcre8 was given.
17663if test "${enable_pcre8+set}" = set; then :
17664 enableval=$enable_pcre8;
17665else
17666 enable_pcre8=unset
17667fi
17668
17669
17670
17671# Handle --enable-pcre16 (disabled by default)
17672# Check whether --enable-pcre16 was given.
17673if test "${enable_pcre16+set}" = set; then :
17674 enableval=$enable_pcre16;
17675else
17676 enable_pcre16=unset
17677fi
17678
17679
17680
17681# Handle --enable-pcre32 (disabled by default)
17682# Check whether --enable-pcre32 was given.
17683if test "${enable_pcre32+set}" = set; then :
17684 enableval=$enable_pcre32;
17685else
17686 enable_pcre32=unset
17687fi
17688
17689
17690
17691# Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17692# pcre-config.
17693# Check whether --enable-cpp was given.
17694if test "${enable_cpp+set}" = set; then :
17695 enableval=$enable_cpp;
17696else
17697 enable_cpp=unset
17698fi
17699
17700
17701
17702# Handle --enable-jit (disabled by default)
17703# Check whether --enable-jit was given.
17704if test "${enable_jit+set}" = set; then :
17705 enableval=$enable_jit;
17706else
17707 enable_jit=no
17708fi
17709
17710
17711# Handle --disable-pcregrep-jit (enabled by default)
17712# Check whether --enable-pcregrep-jit was given.
17713if test "${enable_pcregrep_jit+set}" = set; then :
17714 enableval=$enable_pcregrep_jit;
17715else
17716 enable_pcregrep_jit=yes
17717fi
17718
17719
17720# Handle --enable-rebuild-chartables
17721# Check whether --enable-rebuild-chartables was given.
17722if test "${enable_rebuild_chartables+set}" = set; then :
17723 enableval=$enable_rebuild_chartables;
17724else
17725 enable_rebuild_chartables=no
17726fi
17727
17728
17729# Handle --enable-utf8 (disabled by default)
17730# Check whether --enable-utf8 was given.
17731if test "${enable_utf8+set}" = set; then :
17732 enableval=$enable_utf8;
17733else
17734 enable_utf8=unset
17735fi
17736
17737
17738# Handle --enable-utf (disabled by default)
17739# Check whether --enable-utf was given.
17740if test "${enable_utf+set}" = set; then :
17741 enableval=$enable_utf;
17742else
17743 enable_utf=unset
17744fi
17745
17746
17747# Handle --enable-unicode-properties
17748# Check whether --enable-unicode-properties was given.
17749if test "${enable_unicode_properties+set}" = set; then :
17750 enableval=$enable_unicode_properties;
17751else
17752 enable_unicode_properties=no
17753fi
17754
17755
17756# Handle newline options
17757ac_pcre_newline=lf
17758# Check whether --enable-newline-is-cr was given.
17759if test "${enable_newline_is_cr+set}" = set; then :
17760 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17761fi
17762
17763# Check whether --enable-newline-is-lf was given.
17764if test "${enable_newline_is_lf+set}" = set; then :
17765 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17766fi
17767
17768# Check whether --enable-newline-is-crlf was given.
17769if test "${enable_newline_is_crlf+set}" = set; then :
17770 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17771fi
17772
17773# Check whether --enable-newline-is-anycrlf was given.
17774if test "${enable_newline_is_anycrlf+set}" = set; then :
17775 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17776fi
17777
17778# Check whether --enable-newline-is-any was given.
17779if test "${enable_newline_is_any+set}" = set; then :
17780 enableval=$enable_newline_is_any; ac_pcre_newline=any
17781fi
17782
17783enable_newline="$ac_pcre_newline"
17784
17785# Handle --enable-bsr-anycrlf
17786# Check whether --enable-bsr-anycrlf was given.
17787if test "${enable_bsr_anycrlf+set}" = set; then :
17788 enableval=$enable_bsr_anycrlf;
17789else
17790 enable_bsr_anycrlf=no
17791fi
17792
17793
17794# Handle --enable-ebcdic
17795# Check whether --enable-ebcdic was given.
17796if test "${enable_ebcdic+set}" = set; then :
17797 enableval=$enable_ebcdic;
17798else
17799 enable_ebcdic=no
17800fi
17801
17802
17803# Handle --enable-ebcdic-nl25
17804# Check whether --enable-ebcdic-nl25 was given.
17805if test "${enable_ebcdic_nl25+set}" = set; then :
17806 enableval=$enable_ebcdic_nl25;
17807else
17808 enable_ebcdic_nl25=no
17809fi
17810
17811
17812# Handle --disable-stack-for-recursion
17813# Check whether --enable-stack-for-recursion was given.
17814if test "${enable_stack_for_recursion+set}" = set; then :
17815 enableval=$enable_stack_for_recursion;
17816else
17817 enable_stack_for_recursion=yes
17818fi
17819
17820
17821# Handle --enable-pcregrep-libz
17822# Check whether --enable-pcregrep-libz was given.
17823if test "${enable_pcregrep_libz+set}" = set; then :
17824 enableval=$enable_pcregrep_libz;
17825else
17826 enable_pcregrep_libz=no
17827fi
17828
17829
17830# Handle --enable-pcregrep-libbz2
17831# Check whether --enable-pcregrep-libbz2 was given.
17832if test "${enable_pcregrep_libbz2+set}" = set; then :
17833 enableval=$enable_pcregrep_libbz2;
17834else
17835 enable_pcregrep_libbz2=no
17836fi
17837
17838
17839# Handle --with-pcregrep-bufsize=N
17840
17841# Check whether --with-pcregrep-bufsize was given.
17842if test "${with_pcregrep_bufsize+set}" = set; then :
17843 withval=$with_pcregrep_bufsize;
17844else
17845 with_pcregrep_bufsize=20480
17846fi
17847
17848
17849# Handle --enable-pcretest-libedit
17850# Check whether --enable-pcretest-libedit was given.
17851if test "${enable_pcretest_libedit+set}" = set; then :
17852 enableval=$enable_pcretest_libedit;
17853else
17854 enable_pcretest_libedit=no
17855fi
17856
17857
17858# Handle --enable-pcretest-libreadline
17859# Check whether --enable-pcretest-libreadline was given.
17860if test "${enable_pcretest_libreadline+set}" = set; then :
17861 enableval=$enable_pcretest_libreadline;
17862else
17863 enable_pcretest_libreadline=no
17864fi
17865
17866
17867# Handle --with-posix-malloc-threshold=NBYTES
17868
17869# Check whether --with-posix-malloc-threshold was given.
17870if test "${with_posix_malloc_threshold+set}" = set; then :
17871 withval=$with_posix_malloc_threshold;
17872else
17873 with_posix_malloc_threshold=10
17874fi
17875
17876
17877# Handle --with-link-size=N
17878
17879# Check whether --with-link-size was given.
17880if test "${with_link_size+set}" = set; then :
17881 withval=$with_link_size;
17882else
17883 with_link_size=2
17884fi
17885
17886
17887# Handle --with-parens-nest-limit=N
17888
17889# Check whether --with-parens-nest-limit was given.
17890if test "${with_parens_nest_limit+set}" = set; then :
17891 withval=$with_parens_nest_limit;
17892else
17893 with_parens_nest_limit=250
17894fi
17895
17896
17897# Handle --with-match-limit=N
17898
17899# Check whether --with-match-limit was given.
17900if test "${with_match_limit+set}" = set; then :
17901 withval=$with_match_limit;
17902else
17903 with_match_limit=10000000
17904fi
17905
17906
17907# Handle --with-match-limit_recursion=N
17908#
17909# Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17910# symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17911# value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17912# different numeric value (or even the same numeric value as MATCH_LIMIT,
17913# though no longer defined in terms of the latter).
17914#
17915
17916# Check whether --with-match-limit-recursion was given.
17917if test "${with_match_limit_recursion+set}" = set; then :
17918 withval=$with_match_limit_recursion;
17919else
17920 with_match_limit_recursion=MATCH_LIMIT
17921fi
17922
17923
17924# Handle --enable-valgrind
17925# Check whether --enable-valgrind was given.
17926if test "${enable_valgrind+set}" = set; then :
17927 enableval=$enable_valgrind;
17928else
17929 enable_valgrind=no
17930fi
17931
17932
17933# Enable code coverage reports using gcov
17934# Check whether --enable-coverage was given.
17935if test "${enable_coverage+set}" = set; then :
17936 enableval=$enable_coverage;
17937else
17938 enable_coverage=no
17939fi
17940
17941
17942# Copy enable_utf8 value to enable_utf for compatibility reasons
17943if test "x$enable_utf8" != "xunset"
17944then
17945 if test "x$enable_utf" != "xunset"
17946 then
17947 as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
17948 fi
17949 enable_utf=$enable_utf8
17950fi
17951
17952# Set the default value for pcre8
17953if test "x$enable_pcre8" = "xunset"
17954then
17955 enable_pcre8=yes
17956fi
17957
17958# Set the default value for pcre16
17959if test "x$enable_pcre16" = "xunset"
17960then
17961 enable_pcre16=no
17962fi
17963
17964# Set the default value for pcre32
17965if test "x$enable_pcre32" = "xunset"
17966then
17967 enable_pcre32=no
17968fi
17969
17970# Make sure enable_pcre8 or enable_pcre16 was set
17971if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
17972then
17973 as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
17974fi
17975
17976# Make sure that if enable_unicode_properties was set, that UTF support is enabled.
17977if test "x$enable_unicode_properties" = "xyes"
17978then
17979 if test "x$enable_utf" = "xno"
17980 then
17981 as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
17982 fi
17983 enable_utf=yes
17984fi
17985
17986# enable_utf is disabled by default.
17987if test "x$enable_utf" = "xunset"
17988then
17989 enable_utf=no
17990fi
17991
17992# enable_cpp copies the value of enable_pcre8 by default
17993if test "x$enable_cpp" = "xunset"
17994then
17995 enable_cpp=$enable_pcre8
17996fi
17997
17998# Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17999if test "x$enable_cpp" = "xyes"
18000then
18001 if test "x$enable_pcre8" = "xno"
18002 then
18003 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
18004 fi
18005fi
18006
18007# Convert the newline identifier into the appropriate integer value. The first
18008# three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
18009# are changed below.
18010
18011case "$enable_newline" in
18012 lf) ac_pcre_newline_value=10 ;;
18013 cr) ac_pcre_newline_value=13 ;;
18014 crlf) ac_pcre_newline_value=3338 ;;
18015 anycrlf) ac_pcre_newline_value=-2 ;;
18016 any) ac_pcre_newline_value=-1 ;;
18017 *)
18018 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
18019 ;;
18020esac
18021
18022# --enable-ebcdic-nl25 implies --enable-ebcdic
18023if test "x$enable_ebcdic_nl25" = "xyes"; then
18024 enable_ebcdic=yes
18025fi
18026
18027# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
18028# and the newline value is adjusted appropriately (CR is still 13, but LF is
18029# 21 or 37). Also check that UTF support is not requested, because PCRE cannot
18030# handle EBCDIC and UTF in the same build. To do so it would need to use
18031# different character constants depending on the mode.
18032#
18033if test "x$enable_ebcdic" = "xyes"; then
18034 enable_rebuild_chartables=yes
18035
18036 if test "x$enable_utf" = "xyes"; then
18037 as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
18038 fi
18039
18040 if test "x$enable_ebcdic_nl25" = "xno"; then
18041 case "$ac_pcre_newline_value" in
18042 10) ac_pcre_newline_value=21 ;;
18043 3338) ac_pcre_newline_value=3349 ;;
18044 esac
18045 else
18046 case "$ac_pcre_newline_value" in
18047 10) ac_pcre_newline_value=37 ;;
18048 3338) ac_pcre_newline_value=3365 ;;
18049 esac
18050 fi
18051fi
18052
18053# Check argument to --with-link-size
18054case "$with_link_size" in
18055 2|3|4) ;;
18056 *)
18057 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
18058 ;;
18059esac
18060
18061
18062
18063# Checks for header files.
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18065$as_echo_n "checking for ANSI C header files... " >&6; }
18066if ${ac_cv_header_stdc+:} false; then :
18067 $as_echo_n "(cached) " >&6
18068else
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070/* end confdefs.h. */
18071#include <stdlib.h>
18072#include <stdarg.h>
18073#include <string.h>
18074#include <float.h>
18075
18076int
18077main ()
18078{
18079
18080 ;
18081 return 0;
18082}
18083_ACEOF
18084if ac_fn_c_try_compile "$LINENO"; then :
18085 ac_cv_header_stdc=yes
18086else
18087 ac_cv_header_stdc=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090
18091if test $ac_cv_header_stdc = yes; then
18092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094/* end confdefs.h. */
18095#include <string.h>
18096
18097_ACEOF
18098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18099 $EGREP "memchr" >/dev/null 2>&1; then :
18100
18101else
18102 ac_cv_header_stdc=no
18103fi
18104rm -f conftest*
18105
18106fi
18107
18108if test $ac_cv_header_stdc = yes; then
18109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h. */
18112#include <stdlib.h>
18113
18114_ACEOF
18115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18116 $EGREP "free" >/dev/null 2>&1; then :
18117
18118else
18119 ac_cv_header_stdc=no
18120fi
18121rm -f conftest*
18122
18123fi
18124
18125if test $ac_cv_header_stdc = yes; then
18126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18127 if test "$cross_compiling" = yes; then :
18128 :
18129else
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131/* end confdefs.h. */
18132#include <ctype.h>
18133#include <stdlib.h>
18134#if ((' ' & 0x0FF) == 0x020)
18135# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18136# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18137#else
18138# define ISLOWER(c) \
18139 (('a' <= (c) && (c) <= 'i') \
18140 || ('j' <= (c) && (c) <= 'r') \
18141 || ('s' <= (c) && (c) <= 'z'))
18142# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18143#endif
18144
18145#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18146int
18147main ()
18148{
18149 int i;
18150 for (i = 0; i < 256; i++)
18151 if (XOR (islower (i), ISLOWER (i))
18152 || toupper (i) != TOUPPER (i))
18153 return 2;
18154 return 0;
18155}
18156_ACEOF
18157if ac_fn_c_try_run "$LINENO"; then :
18158
18159else
18160 ac_cv_header_stdc=no
18161fi
18162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18163 conftest.$ac_objext conftest.beam conftest.$ac_ext
18164fi
18165
18166fi
18167fi
18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18169$as_echo "$ac_cv_header_stdc" >&6; }
18170if test $ac_cv_header_stdc = yes; then
18171
18172$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18173
18174fi
18175
18176for ac_header in limits.h sys/types.h sys/stat.h dirent.h
18177do :
18178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18179ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18180if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18181 cat >>confdefs.h <<_ACEOF
18182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18183_ACEOF
18184
18185fi
18186
18187done
18188
18189for ac_header in windows.h
18190do :
18191 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18192if test "x$ac_cv_header_windows_h" = xyes; then :
18193 cat >>confdefs.h <<_ACEOF
18194#define HAVE_WINDOWS_H 1
18195_ACEOF
18196 HAVE_WINDOWS_H=1
18197fi
18198
18199done
18200
18201
18202# The files below are C++ header files.
18203pcre_have_type_traits="0"
18204pcre_have_bits_type_traits="0"
18205
18206if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
18207 as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
18208fi
18209
18210if test "x$enable_cpp" = "xyes" -a -n "$CXX"
18211then
18212ac_ext=cpp
18213ac_cpp='$CXXCPP $CPPFLAGS'
18214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18217
18218
18219# Older versions of pcre defined pcrecpp::no_arg, but in new versions
18220# it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
18221# we want to make one an alias for the other. Different systems do
18222# this in different ways. Some systems, for instance, can do it via
18223# a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
18224OLD_LDFLAGS="$LDFLAGS"
18225for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
18226 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
18228$as_echo_n "checking for alias support in the linker... " >&6; }
18229 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
18230 # We try to run the linker with this new ld flag. If the link fails,
18231 # we give up and remove the new flag from LDFLAGS.
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233/* end confdefs.h. */
18234namespace pcrecpp {
18235 class RE { static int no_arg; };
18236 int RE::no_arg;
18237 }
18238int
18239main ()
18240{
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246if ac_fn_cxx_try_link "$LINENO"; then :
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18248$as_echo "yes" >&6; };
18249 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
18250 break;
18251else
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253$as_echo "no" >&6; }
18254fi
18255rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257done
18258LDFLAGS="$OLD_LDFLAGS"
18259
18260# We could be more clever here, given we're doing AC_SUBST with this
18261# (eg set a var to be the name of the include file we want). But we're not
18262# so it's easy to change back to 'regular' autoconf vars if we needed to.
18263
18264for ac_header in string
18265do :
18266 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
18267if test "x$ac_cv_header_string" = xyes; then :
18268 cat >>confdefs.h <<_ACEOF
18269#define HAVE_STRING 1
18270_ACEOF
18271 pcre_have_cpp_headers="1"
18272else
18273 pcre_have_cpp_headers="0"
18274fi
18275
18276done
18277
18278for ac_header in bits/type_traits.h
18279do :
18280 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
18281if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
18282 cat >>confdefs.h <<_ACEOF
18283#define HAVE_BITS_TYPE_TRAITS_H 1
18284_ACEOF
18285 pcre_have_bits_type_traits="1"
18286else
18287 pcre_have_bits_type_traits="0"
18288fi
18289
18290done
18291
18292for ac_header in type_traits.h
18293do :
18294 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
18295if test "x$ac_cv_header_type_traits_h" = xyes; then :
18296 cat >>confdefs.h <<_ACEOF
18297#define HAVE_TYPE_TRAITS_H 1
18298_ACEOF
18299 pcre_have_type_traits="1"
18300else
18301 pcre_have_type_traits="0"
18302fi
18303
18304done
18305
18306
18307# (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
18308# in a c++ context. This matters becuase strtoimax is C99 and may not
18309# be supported by the C++ compiler.)
18310# Figure out how to create a longlong from a string: strtoll and
18311# equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
18312# strtoll, for instance, but it only takes 2 args instead of 3!
18313# We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
18314
18315
18316
18317
18318have_strto_fn=0
18319for fn in strtoq strtoll _strtoi64 strtoimax; do
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
18321$as_echo_n "checking for $fn... " >&6; }
18322 if test "$fn" = strtoimax; then
18323 include=stdint.h
18324 else
18325 include=stdlib.h
18326 fi
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328/* end confdefs.h. */
18329#include <$include>
18330int
18331main ()
18332{
18333char* e; return $fn("100", &e, 10)
18334 ;
18335 return 0;
18336}
18337_ACEOF
18338if ac_fn_cxx_try_compile "$LINENO"; then :
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18340$as_echo "yes" >&6; }
18341
18342cat >>confdefs.h <<_ACEOF
18343#define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
18344_ACEOF
18345
18346 have_strto_fn=1
18347 break
18348else
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350$as_echo "no" >&6; }
18351fi
18352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353done
18354
18355if test "$have_strto_fn" = 1; then
18356 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18357if test "x$ac_cv_type_long_long" = xyes; then :
18358
18359cat >>confdefs.h <<_ACEOF
18360#define HAVE_LONG_LONG 1
18361_ACEOF
18362
18363pcre_have_long_long="1"
18364else
18365 pcre_have_long_long="0"
18366fi
18367
18368 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
18369if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
18370
18371cat >>confdefs.h <<_ACEOF
18372#define HAVE_UNSIGNED_LONG_LONG 1
18373_ACEOF
18374
18375pcre_have_ulong_long="1"
18376else
18377 pcre_have_ulong_long="0"
18378fi
18379
18380else
18381 pcre_have_long_long="0"
18382 pcre_have_ulong_long="0"
18383fi
18384
18385
18386
18387ac_ext=c
18388ac_cpp='$CPP $CPPFLAGS'
18389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392
18393fi
18394# Using AC_SUBST eliminates the need to include config.h in a public .h file
18395
18396
18397
18398# Conditional compilation
18399 if test "x$enable_pcre8" = "xyes"; then
18400 WITH_PCRE8_TRUE=
18401 WITH_PCRE8_FALSE='#'
18402else
18403 WITH_PCRE8_TRUE='#'
18404 WITH_PCRE8_FALSE=
18405fi
18406
18407 if test "x$enable_pcre16" = "xyes"; then
18408 WITH_PCRE16_TRUE=
18409 WITH_PCRE16_FALSE='#'
18410else
18411 WITH_PCRE16_TRUE='#'
18412 WITH_PCRE16_FALSE=
18413fi
18414
18415 if test "x$enable_pcre32" = "xyes"; then
18416 WITH_PCRE32_TRUE=
18417 WITH_PCRE32_FALSE='#'
18418else
18419 WITH_PCRE32_TRUE='#'
18420 WITH_PCRE32_FALSE=
18421fi
18422
18423 if test "x$enable_cpp" = "xyes"; then
18424 WITH_PCRE_CPP_TRUE=
18425 WITH_PCRE_CPP_FALSE='#'
18426else
18427 WITH_PCRE_CPP_TRUE='#'
18428 WITH_PCRE_CPP_FALSE=
18429fi
18430
18431 if test "x$enable_rebuild_chartables" = "xyes"; then
18432 WITH_REBUILD_CHARTABLES_TRUE=
18433 WITH_REBUILD_CHARTABLES_FALSE='#'
18434else
18435 WITH_REBUILD_CHARTABLES_TRUE='#'
18436 WITH_REBUILD_CHARTABLES_FALSE=
18437fi
18438
18439 if test "x$enable_jit" = "xyes"; then
18440 WITH_JIT_TRUE=
18441 WITH_JIT_FALSE='#'
18442else
18443 WITH_JIT_TRUE='#'
18444 WITH_JIT_FALSE=
18445fi
18446
18447 if test "x$enable_utf" = "xyes"; then
18448 WITH_UTF_TRUE=
18449 WITH_UTF_FALSE='#'
18450else
18451 WITH_UTF_TRUE='#'
18452 WITH_UTF_FALSE=
18453fi
18454
18455 if test "x$enable_valgrind" = "xyes"; then
18456 WITH_VALGRIND_TRUE=
18457 WITH_VALGRIND_FALSE='#'
18458else
18459 WITH_VALGRIND_TRUE='#'
18460 WITH_VALGRIND_FALSE=
18461fi
18462
18463
18464# Checks for typedefs, structures, and compiler characteristics.
18465
18466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18467$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18468if ${ac_cv_c_const+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470else
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472/* end confdefs.h. */
18473
18474int
18475main ()
18476{
18477
18478#ifndef __cplusplus
18479 /* Ultrix mips cc rejects this sort of thing. */
18480 typedef int charset[2];
18481 const charset cs = { 0, 0 };
18482 /* SunOS 4.1.1 cc rejects this. */
18483 char const *const *pcpcc;
18484 char **ppc;
18485 /* NEC SVR4.0.2 mips cc rejects this. */
18486 struct point {int x, y;};
18487 static struct point const zero = {0,0};
18488 /* AIX XL C 1.02.0.0 rejects this.
18489 It does not let you subtract one const X* pointer from another in
18490 an arm of an if-expression whose if-part is not a constant
18491 expression */
18492 const char *g = "string";
18493 pcpcc = &g + (g ? g-g : 0);
18494 /* HPUX 7.0 cc rejects these. */
18495 ++pcpcc;
18496 ppc = (char**) pcpcc;
18497 pcpcc = (char const *const *) ppc;
18498 { /* SCO 3.2v4 cc rejects this sort of thing. */
18499 char tx;
18500 char *t = &tx;
18501 char const *s = 0 ? (char *) 0 : (char const *) 0;
18502
18503 *t++ = 0;
18504 if (s) return 0;
18505 }
18506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18507 int x[] = {25, 17};
18508 const int *foo = &x[0];
18509 ++foo;
18510 }
18511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18512 typedef const int *iptr;
18513 iptr p = 0;
18514 ++p;
18515 }
18516 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18518 struct s { int j; const int *ap[3]; } bx;
18519 struct s *b = &bx; b->j = 5;
18520 }
18521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18522 const int foo = 10;
18523 if (!foo) return 0;
18524 }
18525 return !cs[0] && !zero.x;
18526#endif
18527
18528 ;
18529 return 0;
18530}
18531_ACEOF
18532if ac_fn_c_try_compile "$LINENO"; then :
18533 ac_cv_c_const=yes
18534else
18535 ac_cv_c_const=no
18536fi
18537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538fi
18539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18540$as_echo "$ac_cv_c_const" >&6; }
18541if test $ac_cv_c_const = no; then
18542
18543$as_echo "#define const /**/" >>confdefs.h
18544
18545fi
18546
18547ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18548if test "x$ac_cv_type_size_t" = xyes; then :
18549
18550else
18551
18552cat >>confdefs.h <<_ACEOF
18553#define size_t unsigned int
18554_ACEOF
18555
18556fi
18557
18558
18559# Checks for library functions.
18560
18561for ac_func in bcopy memmove strerror
18562do :
18563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18564ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18565if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18566 cat >>confdefs.h <<_ACEOF
18567#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18568_ACEOF
18569
18570fi
18571done
18572
18573
18574# Check for the availability of libz (aka zlib)
18575
18576for ac_header in zlib.h
18577do :
18578 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18579if test "x$ac_cv_header_zlib_h" = xyes; then :
18580 cat >>confdefs.h <<_ACEOF
18581#define HAVE_ZLIB_H 1
18582_ACEOF
18583 HAVE_ZLIB_H=1
18584fi
18585
18586done
18587
18588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18589$as_echo_n "checking for gzopen in -lz... " >&6; }
18590if ${ac_cv_lib_z_gzopen+:} false; then :
18591 $as_echo_n "(cached) " >&6
18592else
18593 ac_check_lib_save_LIBS=$LIBS
18594LIBS="-lz $LIBS"
18595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596/* end confdefs.h. */
18597
18598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604char gzopen ();
18605int
18606main ()
18607{
18608return gzopen ();
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613if ac_fn_c_try_link "$LINENO"; then :
18614 ac_cv_lib_z_gzopen=yes
18615else
18616 ac_cv_lib_z_gzopen=no
18617fi
18618rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620LIBS=$ac_check_lib_save_LIBS
18621fi
18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18623$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18624if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18625 HAVE_LIBZ=1
18626fi
18627
18628
18629# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18630# as for libz. However, this had the following problem, diagnosed and fixed by
18631# a user:
18632#
18633# - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18634# under Win32.
18635# - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18636# therefore missing the function definition.
18637# - The compiler thus generates a "C" signature for the test function.
18638# - The linker fails to find the "C" function.
18639# - PCRE fails to configure if asked to do so against libbz2.
18640#
18641# Solution:
18642#
18643# - Replace the AC_CHECK_LIB test with a custom test.
18644
18645for ac_header in bzlib.h
18646do :
18647 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18648if test "x$ac_cv_header_bzlib_h" = xyes; then :
18649 cat >>confdefs.h <<_ACEOF
18650#define HAVE_BZLIB_H 1
18651_ACEOF
18652 HAVE_BZLIB_H=1
18653fi
18654
18655done
18656
18657# Original test
18658# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18659#
18660# Custom test follows
18661
18662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18663$as_echo_n "checking for libbz2... " >&6; }
18664OLD_LIBS="$LIBS"
18665LIBS="$LIBS -lbz2"
18666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667/* end confdefs.h. */
18668
18669#ifdef HAVE_BZLIB_H
18670#include <bzlib.h>
18671#endif
18672int
18673main ()
18674{
18675return (int)BZ2_bzopen("conftest", "rb");
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680if ac_fn_c_try_link "$LINENO"; then :
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18682$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18683else
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685$as_echo "no" >&6; }
18686fi
18687rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18689LIBS="$OLD_LIBS"
18690
18691# Check for the availabiity of libreadline
18692
18693if test "$enable_pcretest_libreadline" = "yes"; then
18694 for ac_header in readline/readline.h
18695do :
18696 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18697if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18698 cat >>confdefs.h <<_ACEOF
18699#define HAVE_READLINE_READLINE_H 1
18700_ACEOF
18701 HAVE_READLINE_H=1
18702fi
18703
18704done
18705
18706 for ac_header in readline/history.h
18707do :
18708 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18709if test "x$ac_cv_header_readline_history_h" = xyes; then :
18710 cat >>confdefs.h <<_ACEOF
18711#define HAVE_READLINE_HISTORY_H 1
18712_ACEOF
18713 HAVE_HISTORY_H=1
18714fi
18715
18716done
18717
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18719$as_echo_n "checking for readline in -lreadline... " >&6; }
18720if ${ac_cv_lib_readline_readline+:} false; then :
18721 $as_echo_n "(cached) " >&6
18722else
18723 ac_check_lib_save_LIBS=$LIBS
18724LIBS="-lreadline $LIBS"
18725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726/* end confdefs.h. */
18727
18728/* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18731#ifdef __cplusplus
18732extern "C"
18733#endif
18734char readline ();
18735int
18736main ()
18737{
18738return readline ();
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743if ac_fn_c_try_link "$LINENO"; then :
18744 ac_cv_lib_readline_readline=yes
18745else
18746 ac_cv_lib_readline_readline=no
18747fi
18748rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750LIBS=$ac_check_lib_save_LIBS
18751fi
18752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18753$as_echo "$ac_cv_lib_readline_readline" >&6; }
18754if test "x$ac_cv_lib_readline_readline" = xyes; then :
18755 LIBREADLINE="-lreadline"
18756else
18757 unset ac_cv_lib_readline_readline;
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18759$as_echo_n "checking for readline in -lreadline... " >&6; }
18760if ${ac_cv_lib_readline_readline+:} false; then :
18761 $as_echo_n "(cached) " >&6
18762else
18763 ac_check_lib_save_LIBS=$LIBS
18764LIBS="-lreadline -ltinfo $LIBS"
18765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766/* end confdefs.h. */
18767
18768/* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18771#ifdef __cplusplus
18772extern "C"
18773#endif
18774char readline ();
18775int
18776main ()
18777{
18778return readline ();
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783if ac_fn_c_try_link "$LINENO"; then :
18784 ac_cv_lib_readline_readline=yes
18785else
18786 ac_cv_lib_readline_readline=no
18787fi
18788rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790LIBS=$ac_check_lib_save_LIBS
18791fi
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18793$as_echo "$ac_cv_lib_readline_readline" >&6; }
18794if test "x$ac_cv_lib_readline_readline" = xyes; then :
18795 LIBREADLINE="-ltinfo"
18796else
18797 unset ac_cv_lib_readline_readline;
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18799$as_echo_n "checking for readline in -lreadline... " >&6; }
18800if ${ac_cv_lib_readline_readline+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802else
18803 ac_check_lib_save_LIBS=$LIBS
18804LIBS="-lreadline -lcurses $LIBS"
18805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806/* end confdefs.h. */
18807
18808/* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811#ifdef __cplusplus
18812extern "C"
18813#endif
18814char readline ();
18815int
18816main ()
18817{
18818return readline ();
18819 ;
18820 return 0;
18821}
18822_ACEOF
18823if ac_fn_c_try_link "$LINENO"; then :
18824 ac_cv_lib_readline_readline=yes
18825else
18826 ac_cv_lib_readline_readline=no
18827fi
18828rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830LIBS=$ac_check_lib_save_LIBS
18831fi
18832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18833$as_echo "$ac_cv_lib_readline_readline" >&6; }
18834if test "x$ac_cv_lib_readline_readline" = xyes; then :
18835 LIBREADLINE="-lcurses"
18836else
18837 unset ac_cv_lib_readline_readline;
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18839$as_echo_n "checking for readline in -lreadline... " >&6; }
18840if ${ac_cv_lib_readline_readline+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842else
18843 ac_check_lib_save_LIBS=$LIBS
18844LIBS="-lreadline -lncurses $LIBS"
18845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846/* end confdefs.h. */
18847
18848/* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18851#ifdef __cplusplus
18852extern "C"
18853#endif
18854char readline ();
18855int
18856main ()
18857{
18858return readline ();
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863if ac_fn_c_try_link "$LINENO"; then :
18864 ac_cv_lib_readline_readline=yes
18865else
18866 ac_cv_lib_readline_readline=no
18867fi
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870LIBS=$ac_check_lib_save_LIBS
18871fi
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18873$as_echo "$ac_cv_lib_readline_readline" >&6; }
18874if test "x$ac_cv_lib_readline_readline" = xyes; then :
18875 LIBREADLINE="-lncurses"
18876else
18877 unset ac_cv_lib_readline_readline;
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18879$as_echo_n "checking for readline in -lreadline... " >&6; }
18880if ${ac_cv_lib_readline_readline+:} false; then :
18881 $as_echo_n "(cached) " >&6
18882else
18883 ac_check_lib_save_LIBS=$LIBS
18884LIBS="-lreadline -lncursesw $LIBS"
18885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886/* end confdefs.h. */
18887
18888/* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18891#ifdef __cplusplus
18892extern "C"
18893#endif
18894char readline ();
18895int
18896main ()
18897{
18898return readline ();
18899 ;
18900 return 0;
18901}
18902_ACEOF
18903if ac_fn_c_try_link "$LINENO"; then :
18904 ac_cv_lib_readline_readline=yes
18905else
18906 ac_cv_lib_readline_readline=no
18907fi
18908rm -f core conftest.err conftest.$ac_objext \
18909 conftest$ac_exeext conftest.$ac_ext
18910LIBS=$ac_check_lib_save_LIBS
18911fi
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18913$as_echo "$ac_cv_lib_readline_readline" >&6; }
18914if test "x$ac_cv_lib_readline_readline" = xyes; then :
18915 LIBREADLINE="-lncursesw"
18916else
18917 unset ac_cv_lib_readline_readline;
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18919$as_echo_n "checking for readline in -lreadline... " >&6; }
18920if ${ac_cv_lib_readline_readline+:} false; then :
18921 $as_echo_n "(cached) " >&6
18922else
18923 ac_check_lib_save_LIBS=$LIBS
18924LIBS="-lreadline -ltermcap $LIBS"
18925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926/* end confdefs.h. */
18927
18928/* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18931#ifdef __cplusplus
18932extern "C"
18933#endif
18934char readline ();
18935int
18936main ()
18937{
18938return readline ();
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943if ac_fn_c_try_link "$LINENO"; then :
18944 ac_cv_lib_readline_readline=yes
18945else
18946 ac_cv_lib_readline_readline=no
18947fi
18948rm -f core conftest.err conftest.$ac_objext \
18949 conftest$ac_exeext conftest.$ac_ext
18950LIBS=$ac_check_lib_save_LIBS
18951fi
18952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18953$as_echo "$ac_cv_lib_readline_readline" >&6; }
18954if test "x$ac_cv_lib_readline_readline" = xyes; then :
18955 LIBREADLINE="-ltermcap"
18956else
18957 LIBREADLINE=""
18958fi
18959
18960fi
18961
18962fi
18963
18964fi
18965
18966fi
18967
18968fi
18969
18970
18971 if test -n "$LIBREADLINE"; then
18972 if test "$LIBREADLINE" != "-lreadline"; then
18973 echo "-lreadline needs $LIBREADLINE"
18974 LIBREADLINE="-lreadline $LIBREADLINE"
18975 fi
18976 fi
18977fi
18978
18979
18980# Check for the availability of libedit. Different distributions put its
18981# headers in different places. Try to cover the most common ones.
18982
18983if test "$enable_pcretest_libedit" = "yes"; then
18984 for ac_header in editline/readline.h
18985do :
18986 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18987if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18988 cat >>confdefs.h <<_ACEOF
18989#define HAVE_EDITLINE_READLINE_H 1
18990_ACEOF
18991 HAVE_EDITLINE_READLINE_H=1
18992else
18993 for ac_header in edit/readline/readline.h
18994do :
18995 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18996if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18997 cat >>confdefs.h <<_ACEOF
18998#define HAVE_EDIT_READLINE_READLINE_H 1
18999_ACEOF
19000 HAVE_READLINE_READLINE_H=1
19001else
19002 for ac_header in readline/readline.h
19003do :
19004 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19005if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19006 cat >>confdefs.h <<_ACEOF
19007#define HAVE_READLINE_READLINE_H 1
19008_ACEOF
19009 HAVE_READLINE_READLINE_H=1
19010fi
19011
19012done
19013
19014fi
19015
19016done
19017
19018fi
19019
19020done
19021
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
19023$as_echo_n "checking for readline in -ledit... " >&6; }
19024if ${ac_cv_lib_edit_readline+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026else
19027 ac_check_lib_save_LIBS=$LIBS
19028LIBS="-ledit $LIBS"
19029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030/* end confdefs.h. */
19031
19032/* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19035#ifdef __cplusplus
19036extern "C"
19037#endif
19038char readline ();
19039int
19040main ()
19041{
19042return readline ();
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047if ac_fn_c_try_link "$LINENO"; then :
19048 ac_cv_lib_edit_readline=yes
19049else
19050 ac_cv_lib_edit_readline=no
19051fi
19052rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054LIBS=$ac_check_lib_save_LIBS
19055fi
19056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
19057$as_echo "$ac_cv_lib_edit_readline" >&6; }
19058if test "x$ac_cv_lib_edit_readline" = xyes; then :
19059 LIBEDIT="-ledit"
19060fi
19061
19062fi
19063
19064# This facilitates -ansi builds under Linux
19065
19066PCRE_STATIC_CFLAG=""
19067if test "x$enable_shared" = "xno" ; then
19068
19069$as_echo "#define PCRE_STATIC 1" >>confdefs.h
19070
19071 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
19072fi
19073
19074
19075# Here is where pcre specific defines are handled
19076
19077if test "$enable_pcre8" = "yes"; then
19078
19079$as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
19080
19081fi
19082
19083if test "$enable_pcre16" = "yes"; then
19084
19085$as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
19086
19087fi
19088
19089if test "$enable_pcre32" = "yes"; then
19090
19091$as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
19092
19093fi
19094
19095# Unless running under Windows, JIT support requires pthreads.
19096
19097if test "$enable_jit" = "yes"; then
19098 if test "$HAVE_WINDOWS_H" != "1"; then
19099
19100
19101ac_ext=c
19102ac_cpp='$CPP $CPPFLAGS'
19103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106
19107ax_pthread_ok=no
19108
19109# We used to check for pthread.h first, but this fails if pthread.h
19110# requires special compiler flags (e.g. on True64 or Sequent).
19111# It gets checked for in the link test anyway.
19112
19113# First of all, check if the user has set any of the PTHREAD_LIBS,
19114# etcetera environment variables, and if threads linking works using
19115# them:
19116if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19117 save_CFLAGS="$CFLAGS"
19118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19119 save_LIBS="$LIBS"
19120 LIBS="$PTHREAD_LIBS $LIBS"
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19122$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124/* end confdefs.h. */
19125
19126/* Override any GCC internal prototype to avoid an error.
19127 Use char because int might match the return type of a GCC
19128 builtin and then its argument prototype would still apply. */
19129#ifdef __cplusplus
19130extern "C"
19131#endif
19132char pthread_join ();
19133int
19134main ()
19135{
19136return pthread_join ();
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141if ac_fn_c_try_link "$LINENO"; then :
19142 ax_pthread_ok=yes
19143fi
19144rm -f core conftest.err conftest.$ac_objext \
19145 conftest$ac_exeext conftest.$ac_ext
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19147$as_echo "$ax_pthread_ok" >&6; }
19148 if test x"$ax_pthread_ok" = xno; then
19149 PTHREAD_LIBS=""
19150 PTHREAD_CFLAGS=""
19151 fi
19152 LIBS="$save_LIBS"
19153 CFLAGS="$save_CFLAGS"
19154fi
19155
19156# We must check for the threads library under a number of different
19157# names; the ordering is very important because some systems
19158# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19159# libraries is broken (non-POSIX).
19160
19161# Create a list of thread flags to try. Items starting with a "-" are
19162# C compiler flags, and other items are library names, except for "none"
19163# which indicates that we try without any flags at all, and "pthread-config"
19164# which is a program returning the flags for the Pth emulation library.
19165
19166ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19167
19168# The ordering *is* (sometimes) important. Some notes on the
19169# individual items follow:
19170
19171# pthreads: AIX (must check this before -lpthread)
19172# none: in case threads are in libc; should be tried before -Kthread and
19173# other compiler flags to prevent continual compiler warnings
19174# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19175# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19176# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19177# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19178# -pthreads: Solaris/gcc
19179# -mthreads: Mingw32/gcc, Lynx/gcc
19180# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19181# doesn't hurt to check since this sometimes defines pthreads too;
19182# also defines -D_REENTRANT)
19183# ... -mt is also the pthreads flag for HP/aCC
19184# pthread: Linux, etcetera
19185# --thread-safe: KAI C++
19186# pthread-config: use pthread-config program (for GNU Pth library)
19187
19188case ${host_os} in
19189 solaris*)
19190
19191 # On Solaris (at least, for some versions), libc contains stubbed
19192 # (non-functional) versions of the pthreads routines, so link-based
19193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19195 # a function called by this macro, so we could check for that, but
19196 # who knows whether they'll stub that too in a future libc.) So,
19197 # we'll just look for -pthreads and -lpthread first:
19198
19199 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19200 ;;
19201
19202 darwin*)
19203 ax_pthread_flags="-pthread $ax_pthread_flags"
19204 ;;
19205esac
19206
19207if test x"$ax_pthread_ok" = xno; then
19208for flag in $ax_pthread_flags; do
19209
19210 case $flag in
19211 none)
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19213$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19214 ;;
19215
19216 -*)
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19218$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19219 PTHREAD_CFLAGS="$flag"
19220 ;;
19221
19222 pthread-config)
19223 # Extract the first word of "pthread-config", so it can be a program name with args.
19224set dummy pthread-config; ac_word=$2
19225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19226$as_echo_n "checking for $ac_word... " >&6; }
19227if ${ac_cv_prog_ax_pthread_config+:} false; then :
19228 $as_echo_n "(cached) " >&6
19229else
19230 if test -n "$ax_pthread_config"; then
19231 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19232else
19233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19234for as_dir in $PATH
19235do
19236 IFS=$as_save_IFS
19237 test -z "$as_dir" && as_dir=.
19238 for ac_exec_ext in '' $ac_executable_extensions; do
19239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19240 ac_cv_prog_ax_pthread_config="yes"
19241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19242 break 2
19243 fi
19244done
19245 done
19246IFS=$as_save_IFS
19247
19248 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19249fi
19250fi
19251ax_pthread_config=$ac_cv_prog_ax_pthread_config
19252if test -n "$ax_pthread_config"; then
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19254$as_echo "$ax_pthread_config" >&6; }
19255else
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257$as_echo "no" >&6; }
19258fi
19259
19260
19261 if test x"$ax_pthread_config" = xno; then continue; fi
19262 PTHREAD_CFLAGS="`pthread-config --cflags`"
19263 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19264 ;;
19265
19266 *)
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19268$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19269 PTHREAD_LIBS="-l$flag"
19270 ;;
19271 esac
19272
19273 save_LIBS="$LIBS"
19274 save_CFLAGS="$CFLAGS"
19275 LIBS="$PTHREAD_LIBS $LIBS"
19276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19277
19278 # Check for various functions. We must include pthread.h,
19279 # since some functions may be macros. (On the Sequent, we
19280 # need a special flag -Kthread to make this header compile.)
19281 # We check for pthread_join because it is in -lpthread on IRIX
19282 # while pthread_create is in libc. We check for pthread_attr_init
19283 # due to DEC craziness with -lpthreads. We check for
19284 # pthread_cleanup_push because it is one of the few pthread
19285 # functions on Solaris that doesn't have a non-functional libc stub.
19286 # We try pthread_create on general principles.
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288/* end confdefs.h. */
19289#include <pthread.h>
19290 static void routine(void *a) { a = 0; }
19291 static void *start_routine(void *a) { return a; }
19292int
19293main ()
19294{
19295pthread_t th; pthread_attr_t attr;
19296 pthread_create(&th, 0, start_routine, 0);
19297 pthread_join(th, 0);
19298 pthread_attr_init(&attr);
19299 pthread_cleanup_push(routine, 0);
19300 pthread_cleanup_pop(0) /* ; */
19301 ;
19302 return 0;
19303}
19304_ACEOF
19305if ac_fn_c_try_link "$LINENO"; then :
19306 ax_pthread_ok=yes
19307fi
19308rm -f core conftest.err conftest.$ac_objext \
19309 conftest$ac_exeext conftest.$ac_ext
19310
19311 LIBS="$save_LIBS"
19312 CFLAGS="$save_CFLAGS"
19313
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19315$as_echo "$ax_pthread_ok" >&6; }
19316 if test "x$ax_pthread_ok" = xyes; then
19317 break;
19318 fi
19319
19320 PTHREAD_LIBS=""
19321 PTHREAD_CFLAGS=""
19322done
19323fi
19324
19325# Various other checks:
19326if test "x$ax_pthread_ok" = xyes; then
19327 save_LIBS="$LIBS"
19328 LIBS="$PTHREAD_LIBS $LIBS"
19329 save_CFLAGS="$CFLAGS"
19330 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19331
19332 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19334$as_echo_n "checking for joinable pthread attribute... " >&6; }
19335 attr_name=unknown
19336 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338/* end confdefs.h. */
19339#include <pthread.h>
19340int
19341main ()
19342{
19343int attr = $attr; return attr /* ; */
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348if ac_fn_c_try_link "$LINENO"; then :
19349 attr_name=$attr; break
19350fi
19351rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19353 done
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19355$as_echo "$attr_name" >&6; }
19356 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19357
19358cat >>confdefs.h <<_ACEOF
19359#define PTHREAD_CREATE_JOINABLE $attr_name
19360_ACEOF
19361
19362 fi
19363
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19365$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19366 flag=no
19367 case ${host_os} in
19368 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
19369 osf* | hpux*) flag="-D_REENTRANT";;
19370 solaris*)
19371 if test "$GCC" = "yes"; then
19372 flag="-D_REENTRANT"
19373 else
19374 flag="-mt -D_REENTRANT"
19375 fi
19376 ;;
19377 esac
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19379$as_echo "${flag}" >&6; }
19380 if test "x$flag" != xno; then
19381 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19382 fi
19383
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19385$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19386if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19387 $as_echo_n "(cached) " >&6
19388else
19389
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391/* end confdefs.h. */
19392
19393 #include <pthread.h>
19394int
19395main ()
19396{
19397int i = PTHREAD_PRIO_INHERIT;
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402if ac_fn_c_try_link "$LINENO"; then :
19403 ax_cv_PTHREAD_PRIO_INHERIT=yes
19404else
19405 ax_cv_PTHREAD_PRIO_INHERIT=no
19406fi
19407rm -f core conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409
19410fi
19411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19412$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19413 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19414
19415$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19416
19417fi
19418
19419 LIBS="$save_LIBS"
19420 CFLAGS="$save_CFLAGS"
19421
19422 # More AIX lossage: must compile with xlc_r or cc_r
19423 if test x"$GCC" != xyes; then
19424 for ac_prog in xlc_r cc_r
19425do
19426 # Extract the first word of "$ac_prog", so it can be a program name with args.
19427set dummy $ac_prog; ac_word=$2
19428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19429$as_echo_n "checking for $ac_word... " >&6; }
19430if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19431 $as_echo_n "(cached) " >&6
19432else
19433 if test -n "$PTHREAD_CC"; then
19434 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19435else
19436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437for as_dir in $PATH
19438do
19439 IFS=$as_save_IFS
19440 test -z "$as_dir" && as_dir=.
19441 for ac_exec_ext in '' $ac_executable_extensions; do
19442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19443 ac_cv_prog_PTHREAD_CC="$ac_prog"
19444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19445 break 2
19446 fi
19447done
19448 done
19449IFS=$as_save_IFS
19450
19451fi
19452fi
19453PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19454if test -n "$PTHREAD_CC"; then
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19456$as_echo "$PTHREAD_CC" >&6; }
19457else
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459$as_echo "no" >&6; }
19460fi
19461
19462
19463 test -n "$PTHREAD_CC" && break
19464done
19465test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19466
19467 else
19468 PTHREAD_CC=$CC
19469 fi
19470else
19471 PTHREAD_CC="$CC"
19472fi
19473
19474
19475
19476
19477
19478# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19479if test x"$ax_pthread_ok" = xyes; then
19480
19481$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19482
19483 :
19484else
19485 ax_pthread_ok=no
19486 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
19487fi
19488ac_ext=c
19489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494
19495 CC="$PTHREAD_CC"
19496 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
19497 LIBS="$PTHREAD_LIBS $LIBS"
19498 fi
19499
19500$as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
19501
19502else
19503 enable_pcregrep_jit="no"
19504fi
19505
19506if test "$enable_pcregrep_jit" = "yes"; then
19507
19508$as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
19509
19510fi
19511
19512if test "$enable_utf" = "yes"; then
19513
19514$as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
19515
19516fi
19517
19518if test "$enable_unicode_properties" = "yes"; then
19519
19520$as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
19521
19522fi
19523
19524if test "$enable_stack_for_recursion" = "no"; then
19525
19526$as_echo "#define NO_RECURSE /**/" >>confdefs.h
19527
19528fi
19529
19530if test "$enable_pcregrep_libz" = "yes"; then
19531
19532$as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
19533
19534fi
19535
19536if test "$enable_pcregrep_libbz2" = "yes"; then
19537
19538$as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
19539
19540fi
19541
19542if test $with_pcregrep_bufsize -lt 8192 ; then
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
19544$as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
19545 with_pcregrep_bufsize="8192"
19546else
19547 if test $? -gt 1 ; then
19548 as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
19549 fi
19550fi
19551
19552
19553cat >>confdefs.h <<_ACEOF
19554#define PCREGREP_BUFSIZE $with_pcregrep_bufsize
19555_ACEOF
19556
19557
19558if test "$enable_pcretest_libedit" = "yes"; then
19559
19560$as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
19561
19562 LIBREADLINE="$LIBEDIT"
19563elif test "$enable_pcretest_libreadline" = "yes"; then
19564
19565$as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
19566
19567fi
19568
19569
19570cat >>confdefs.h <<_ACEOF
19571#define NEWLINE $ac_pcre_newline_value
19572_ACEOF
19573
19574
19575if test "$enable_bsr_anycrlf" = "yes"; then
19576
19577$as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
19578
19579fi
19580
19581
19582cat >>confdefs.h <<_ACEOF
19583#define LINK_SIZE $with_link_size
19584_ACEOF
19585
19586
19587
19588cat >>confdefs.h <<_ACEOF
19589#define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
19590_ACEOF
19591
19592
19593
19594cat >>confdefs.h <<_ACEOF
19595#define PARENS_NEST_LIMIT $with_parens_nest_limit
19596_ACEOF
19597
19598
19599
19600cat >>confdefs.h <<_ACEOF
19601#define MATCH_LIMIT $with_match_limit
19602_ACEOF
19603
19604
19605
19606cat >>confdefs.h <<_ACEOF
19607#define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19608_ACEOF
19609
19610
19611
19612$as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19613
19614
19615
19616$as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19617
19618
19619
19620
19621if test "$enable_ebcdic" = "yes"; then
19622
19623cat >>confdefs.h <<_ACEOF
19624#define EBCDIC /**/
19625_ACEOF
19626
19627fi
19628
19629if test "$enable_ebcdic_nl25" = "yes"; then
19630
19631cat >>confdefs.h <<_ACEOF
19632#define EBCDIC_NL25 /**/
19633_ACEOF
19634
19635fi
19636
19637if test "$enable_valgrind" = "yes"; then
19638
19639cat >>confdefs.h <<_ACEOF
19640#define SUPPORT_VALGRIND /**/
19641_ACEOF
19642
19643fi
19644
19645# Platform specific issues
19646NO_UNDEFINED=
19647EXPORT_ALL_SYMBOLS=
19648case $host_os in
19649 cygwin* | mingw* )
19650 if test X"$enable_shared" = Xyes; then
19651 NO_UNDEFINED="-no-undefined"
19652 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19653 fi
19654 ;;
19655esac
19656
19657# The extra LDFLAGS for each particular library
19658# (Note: The libpcre*_version bits are m4 variables, assigned above)
19659
19660EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
Elliott Hughes0ea98832015-12-04 23:18:20 -080019661 $NO_UNDEFINED -version-info 3:6:2"
Nick Kralevichf73ff172014-09-27 12:41:49 -070019662
19663EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
Elliott Hughes0ea98832015-12-04 23:18:20 -080019664 $NO_UNDEFINED -version-info 2:6:2"
Nick Kralevichf73ff172014-09-27 12:41:49 -070019665
19666EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
Elliott Hughes0ea98832015-12-04 23:18:20 -080019667 $NO_UNDEFINED -version-info 0:6:0"
Nick Kralevichf73ff172014-09-27 12:41:49 -070019668
19669EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19670 $NO_UNDEFINED -version-info 0:3:0"
19671
19672EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19673 $NO_UNDEFINED -version-info 0:1:0 \
19674 $EXPORT_ALL_SYMBOLS"
19675
19676
19677
19678
19679
19680
19681
19682# When we run 'make distcheck', use these arguments. Turning off compiler
19683# optimization makes it run faster.
19684DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19685
19686
19687# Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19688# specified, the relevant library is available.
19689
19690if test "$enable_pcregrep_libz" = "yes"; then
19691 if test "$HAVE_ZLIB_H" != "1"; then
19692 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19693 exit 1
19694 fi
19695 if test "$HAVE_LIBZ" != "1"; then
19696 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19697 exit 1
19698 fi
19699 LIBZ="-lz"
19700fi
19701
19702
19703if test "$enable_pcregrep_libbz2" = "yes"; then
19704 if test "$HAVE_BZLIB_H" != "1"; then
19705 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19706 exit 1
19707 fi
19708 if test "$HAVE_LIBBZ2" != "1"; then
19709 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19710 exit 1
19711 fi
19712 LIBBZ2="-lbz2"
19713fi
19714
19715
19716# Similarly for --enable-pcretest-readline
19717
19718if test "$enable_pcretest_libedit" = "yes"; then
19719 if test "$enable_pcretest_libreadline" = "yes"; then
19720 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19721 exit 1
19722 fi
19723 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19724 "$HAVE_READLINE_READLINE_H" != "1"; then
19725 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19726 echo "** nor readline/readline.h was found."
19727 exit 1
19728 fi
19729 if test -z "$LIBEDIT"; then
19730 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19731 exit 1
19732 fi
19733fi
19734
19735if test "$enable_pcretest_libreadline" = "yes"; then
19736 if test "$HAVE_READLINE_H" != "1"; then
19737 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19738 exit 1
19739 fi
19740 if test "$HAVE_HISTORY_H" != "1"; then
19741 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19742 exit 1
19743 fi
19744 if test -z "$LIBREADLINE"; then
19745 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19746 exit 1
19747 fi
19748fi
19749
19750# Handle valgrind support
19751
19752if test "$enable_valgrind" = "yes"; then
19753
19754
19755
19756
19757
19758
19759
19760if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19761 if test -n "$ac_tool_prefix"; then
19762 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19763set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19765$as_echo_n "checking for $ac_word... " >&6; }
19766if ${ac_cv_path_PKG_CONFIG+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768else
19769 case $PKG_CONFIG in
19770 [\\/]* | ?:[\\/]*)
19771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19772 ;;
19773 *)
19774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775for as_dir in $PATH
19776do
19777 IFS=$as_save_IFS
19778 test -z "$as_dir" && as_dir=.
19779 for ac_exec_ext in '' $ac_executable_extensions; do
19780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19783 break 2
19784 fi
19785done
19786 done
19787IFS=$as_save_IFS
19788
19789 ;;
19790esac
19791fi
19792PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19793if test -n "$PKG_CONFIG"; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19795$as_echo "$PKG_CONFIG" >&6; }
19796else
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19798$as_echo "no" >&6; }
19799fi
19800
19801
19802fi
19803if test -z "$ac_cv_path_PKG_CONFIG"; then
19804 ac_pt_PKG_CONFIG=$PKG_CONFIG
19805 # Extract the first word of "pkg-config", so it can be a program name with args.
19806set dummy pkg-config; ac_word=$2
19807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19808$as_echo_n "checking for $ac_word... " >&6; }
19809if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19810 $as_echo_n "(cached) " >&6
19811else
19812 case $ac_pt_PKG_CONFIG in
19813 [\\/]* | ?:[\\/]*)
19814 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19815 ;;
19816 *)
19817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818for as_dir in $PATH
19819do
19820 IFS=$as_save_IFS
19821 test -z "$as_dir" && as_dir=.
19822 for ac_exec_ext in '' $ac_executable_extensions; do
19823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19824 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19826 break 2
19827 fi
19828done
19829 done
19830IFS=$as_save_IFS
19831
19832 ;;
19833esac
19834fi
19835ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19836if test -n "$ac_pt_PKG_CONFIG"; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19838$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19839else
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841$as_echo "no" >&6; }
19842fi
19843
19844 if test "x$ac_pt_PKG_CONFIG" = x; then
19845 PKG_CONFIG=""
19846 else
19847 case $cross_compiling:$ac_tool_warned in
19848yes:)
19849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19851ac_tool_warned=yes ;;
19852esac
19853 PKG_CONFIG=$ac_pt_PKG_CONFIG
19854 fi
19855else
19856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19857fi
19858
19859fi
19860if test -n "$PKG_CONFIG"; then
19861 _pkg_min_version=0.9.0
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19863$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19864 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19866$as_echo "yes" >&6; }
19867 else
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19869$as_echo "no" >&6; }
19870 PKG_CONFIG=""
19871 fi
19872fi
19873
19874pkg_failed=no
19875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19876$as_echo_n "checking for VALGRIND... " >&6; }
19877
19878if test -n "$VALGRIND_CFLAGS"; then
19879 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19880 elif test -n "$PKG_CONFIG"; then
19881 if test -n "$PKG_CONFIG" && \
19882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19883 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19884 ac_status=$?
19885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19886 test $ac_status = 0; }; then
19887 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19888 test "x$?" != "x0" && pkg_failed=yes
19889else
19890 pkg_failed=yes
19891fi
19892 else
19893 pkg_failed=untried
19894fi
19895if test -n "$VALGRIND_LIBS"; then
19896 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19897 elif test -n "$PKG_CONFIG"; then
19898 if test -n "$PKG_CONFIG" && \
19899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19900 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19901 ac_status=$?
19902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19903 test $ac_status = 0; }; then
19904 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19905 test "x$?" != "x0" && pkg_failed=yes
19906else
19907 pkg_failed=yes
19908fi
19909 else
19910 pkg_failed=untried
19911fi
19912
19913
19914
19915if test $pkg_failed = yes; then
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19917$as_echo "no" >&6; }
19918
19919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19920 _pkg_short_errors_supported=yes
19921else
19922 _pkg_short_errors_supported=no
19923fi
19924 if test $_pkg_short_errors_supported = yes; then
19925 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19926 else
19927 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19928 fi
19929 # Put the nasty error message in config.log where it belongs
19930 echo "$VALGRIND_PKG_ERRORS" >&5
19931
19932 as_fn_error $? "Package requirements (valgrind) were not met:
19933
19934$VALGRIND_PKG_ERRORS
19935
19936Consider adjusting the PKG_CONFIG_PATH environment variable if you
19937installed software in a non-standard prefix.
19938
19939Alternatively, you may set the environment variables VALGRIND_CFLAGS
19940and VALGRIND_LIBS to avoid the need to call pkg-config.
19941See the pkg-config man page for more details." "$LINENO" 5
19942elif test $pkg_failed = untried; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19944$as_echo "no" >&6; }
19945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19947as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19948is in your PATH or set the PKG_CONFIG environment variable to the full
19949path to pkg-config.
19950
19951Alternatively, you may set the environment variables VALGRIND_CFLAGS
19952and VALGRIND_LIBS to avoid the need to call pkg-config.
19953See the pkg-config man page for more details.
19954
19955To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19956See \`config.log' for more details" "$LINENO" 5; }
19957else
19958 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19959 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19961$as_echo "yes" >&6; }
19962
19963fi
19964fi
19965
19966# Handle code coverage reporting support
19967if test "$enable_coverage" = "yes"; then
19968 if test "x$GCC" != "xyes"; then
19969 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
19970 fi
19971
19972 # ccache is incompatible with gcov
19973 # Extract the first word of "shtool", so it can be a program name with args.
19974set dummy shtool; ac_word=$2
19975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19976$as_echo_n "checking for $ac_word... " >&6; }
19977if ${ac_cv_path_SHTOOL+:} false; then :
19978 $as_echo_n "(cached) " >&6
19979else
19980 case $SHTOOL in
19981 [\\/]* | ?:[\\/]*)
19982 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
19983 ;;
19984 *)
19985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19986for as_dir in $PATH
19987do
19988 IFS=$as_save_IFS
19989 test -z "$as_dir" && as_dir=.
19990 for ac_exec_ext in '' $ac_executable_extensions; do
19991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19992 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
19993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19994 break 2
19995 fi
19996done
19997 done
19998IFS=$as_save_IFS
19999
20000 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
20001 ;;
20002esac
20003fi
20004SHTOOL=$ac_cv_path_SHTOOL
20005if test -n "$SHTOOL"; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
20007$as_echo "$SHTOOL" >&6; }
20008else
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010$as_echo "no" >&6; }
20011fi
20012
20013
20014 case `$SHTOOL path $CC` in
20015 *ccache*) cc_ccache=yes;;
20016 *) cc_ccache=no;;
20017 esac
20018
20019 if test "$cc_ccache" = "yes"; then
20020 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
20021 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
20022 fi
20023 fi
20024
20025
20026 # Extract the first word of "lcov", so it can be a program name with args.
20027set dummy lcov; ac_word=$2
20028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20029$as_echo_n "checking for $ac_word... " >&6; }
20030if ${ac_cv_path_LCOV+:} false; then :
20031 $as_echo_n "(cached) " >&6
20032else
20033 case $LCOV in
20034 [\\/]* | ?:[\\/]*)
20035 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
20036 ;;
20037 *)
20038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039for as_dir in $PATH
20040do
20041 IFS=$as_save_IFS
20042 test -z "$as_dir" && as_dir=.
20043 for ac_exec_ext in '' $ac_executable_extensions; do
20044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20045 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
20046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20047 break 2
20048 fi
20049done
20050 done
20051IFS=$as_save_IFS
20052
20053 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
20054 ;;
20055esac
20056fi
20057LCOV=$ac_cv_path_LCOV
20058if test -n "$LCOV"; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20060$as_echo "$LCOV" >&6; }
20061else
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20063$as_echo "no" >&6; }
20064fi
20065
20066
20067 if test "x$LCOV" = "xfalse"; then
20068 as_fn_error $? "lcov not found" "$LINENO" 5
20069 fi
20070
20071
20072 # Extract the first word of "genhtml", so it can be a program name with args.
20073set dummy genhtml; ac_word=$2
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20075$as_echo_n "checking for $ac_word... " >&6; }
20076if ${ac_cv_path_GENHTML+:} false; then :
20077 $as_echo_n "(cached) " >&6
20078else
20079 case $GENHTML in
20080 [\\/]* | ?:[\\/]*)
20081 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
20082 ;;
20083 *)
20084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20085for as_dir in $PATH
20086do
20087 IFS=$as_save_IFS
20088 test -z "$as_dir" && as_dir=.
20089 for ac_exec_ext in '' $ac_executable_extensions; do
20090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20091 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
20092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20093 break 2
20094 fi
20095done
20096 done
20097IFS=$as_save_IFS
20098
20099 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
20100 ;;
20101esac
20102fi
20103GENHTML=$ac_cv_path_GENHTML
20104if test -n "$GENHTML"; then
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
20106$as_echo "$GENHTML" >&6; }
20107else
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20109$as_echo "no" >&6; }
20110fi
20111
20112
20113 if test "x$GENHTML" = "xfalse"; then
20114 as_fn_error $? "genhtml not found" "$LINENO" 5
20115 fi
20116
20117 # Set flags needed for gcov
20118 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20119 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20120 GCOV_LIBS="-lgcov"
20121
20122
20123
20124fi # enable_coverage
20125
20126 if test "x$enable_coverage" = "xyes"; then
20127 WITH_GCOV_TRUE=
20128 WITH_GCOV_FALSE='#'
20129else
20130 WITH_GCOV_TRUE='#'
20131 WITH_GCOV_FALSE=
20132fi
20133
20134
20135# Produce these files, in addition to config.h.
20136ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
20137
20138
20139# Make the generated script files executable.
20140ac_config_commands="$ac_config_commands script-chmod"
20141
20142
20143# Make sure that pcre_chartables.c is removed in case the method for
20144# creating it was changed by reconfiguration.
20145ac_config_commands="$ac_config_commands delete-old-chartables"
20146
20147
20148cat >confcache <<\_ACEOF
20149# This file is a shell script that caches the results of configure
20150# tests run on this system so they can be shared between configure
20151# scripts and configure runs, see configure's option --config-cache.
20152# It is not useful on other systems. If it contains results you don't
20153# want to keep, you may remove or edit it.
20154#
20155# config.status only pays attention to the cache file if you give it
20156# the --recheck option to rerun configure.
20157#
20158# `ac_cv_env_foo' variables (set or unset) will be overridden when
20159# loading this file, other *unset* `ac_cv_foo' will be assigned the
20160# following values.
20161
20162_ACEOF
20163
20164# The following way of writing the cache mishandles newlines in values,
20165# but we know of no workaround that is simple, portable, and efficient.
20166# So, we kill variables containing newlines.
20167# Ultrix sh set writes to stderr and can't be redirected directly,
20168# and sets the high bit in the cache file unless we assign to the vars.
20169(
20170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20171 eval ac_val=\$$ac_var
20172 case $ac_val in #(
20173 *${as_nl}*)
20174 case $ac_var in #(
20175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20176$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20177 esac
20178 case $ac_var in #(
20179 _ | IFS | as_nl) ;; #(
20180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20181 *) { eval $ac_var=; unset $ac_var;} ;;
20182 esac ;;
20183 esac
20184 done
20185
20186 (set) 2>&1 |
20187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20188 *${as_nl}ac_space=\ *)
20189 # `set' does not quote correctly, so add quotes: double-quote
20190 # substitution turns \\\\ into \\, and sed turns \\ into \.
20191 sed -n \
20192 "s/'/'\\\\''/g;
20193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20194 ;; #(
20195 *)
20196 # `set' quotes correctly as required by POSIX, so do not add quotes.
20197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20198 ;;
20199 esac |
20200 sort
20201) |
20202 sed '
20203 /^ac_cv_env_/b end
20204 t clear
20205 :clear
20206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20207 t end
20208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20209 :end' >>confcache
20210if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20211 if test -w "$cache_file"; then
20212 if test "x$cache_file" != "x/dev/null"; then
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20214$as_echo "$as_me: updating cache $cache_file" >&6;}
20215 if test ! -f "$cache_file" || test -h "$cache_file"; then
20216 cat confcache >"$cache_file"
20217 else
20218 case $cache_file in #(
20219 */* | ?:*)
20220 mv -f confcache "$cache_file"$$ &&
20221 mv -f "$cache_file"$$ "$cache_file" ;; #(
20222 *)
20223 mv -f confcache "$cache_file" ;;
20224 esac
20225 fi
20226 fi
20227 else
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20229$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20230 fi
20231fi
20232rm -f confcache
20233
20234test "x$prefix" = xNONE && prefix=$ac_default_prefix
20235# Let make expand exec_prefix.
20236test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20237
20238DEFS=-DHAVE_CONFIG_H
20239
20240ac_libobjs=
20241ac_ltlibobjs=
20242U=
20243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20244 # 1. Remove the extension, and $U if already installed.
20245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20248 # will be set to the directory where LIBOBJS objects are built.
20249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20251done
20252LIBOBJS=$ac_libobjs
20253
20254LTLIBOBJS=$ac_ltlibobjs
20255
20256
20257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20258$as_echo_n "checking that generated files are newer than configure... " >&6; }
20259 if test -n "$am_sleep_pid"; then
20260 # Hide warnings about reused PIDs.
20261 wait $am_sleep_pid 2>/dev/null
20262 fi
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20264$as_echo "done" >&6; }
20265 if test -n "$EXEEXT"; then
20266 am__EXEEXT_TRUE=
20267 am__EXEEXT_FALSE='#'
20268else
20269 am__EXEEXT_TRUE='#'
20270 am__EXEEXT_FALSE=
20271fi
20272
20273if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20274 as_fn_error $? "conditional \"AMDEP\" was never defined.
20275Usually this means the macro was only invoked conditionally." "$LINENO" 5
20276fi
20277if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20278 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20279Usually this means the macro was only invoked conditionally." "$LINENO" 5
20280fi
20281if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20283Usually this means the macro was only invoked conditionally." "$LINENO" 5
20284fi
20285if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20286 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20287Usually this means the macro was only invoked conditionally." "$LINENO" 5
20288fi
20289if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
20290 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
20291Usually this means the macro was only invoked conditionally." "$LINENO" 5
20292fi
20293if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
20294 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
20295Usually this means the macro was only invoked conditionally." "$LINENO" 5
20296fi
20297if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
20298 as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
20299Usually this means the macro was only invoked conditionally." "$LINENO" 5
20300fi
20301if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
20302 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
20303Usually this means the macro was only invoked conditionally." "$LINENO" 5
20304fi
20305if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
20306 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
20307Usually this means the macro was only invoked conditionally." "$LINENO" 5
20308fi
20309if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
20310 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
20311Usually this means the macro was only invoked conditionally." "$LINENO" 5
20312fi
20313if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
20314 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
20315Usually this means the macro was only invoked conditionally." "$LINENO" 5
20316fi
20317if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
20318 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
20319Usually this means the macro was only invoked conditionally." "$LINENO" 5
20320fi
20321if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
20322 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
20323Usually this means the macro was only invoked conditionally." "$LINENO" 5
20324fi
20325
20326: "${CONFIG_STATUS=./config.status}"
20327ac_write_fail=0
20328ac_clean_files_save=$ac_clean_files
20329ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20330{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20331$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20332as_write_fail=0
20333cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20334#! $SHELL
20335# Generated by $as_me.
20336# Run this file to recreate the current configuration.
20337# Compiler output produced by configure, useful for debugging
20338# configure, is in config.log if it exists.
20339
20340debug=false
20341ac_cs_recheck=false
20342ac_cs_silent=false
20343
20344SHELL=\${CONFIG_SHELL-$SHELL}
20345export SHELL
20346_ASEOF
20347cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20348## -------------------- ##
20349## M4sh Initialization. ##
20350## -------------------- ##
20351
20352# Be more Bourne compatible
20353DUALCASE=1; export DUALCASE # for MKS sh
20354if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20355 emulate sh
20356 NULLCMD=:
20357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20358 # is contrary to our usage. Disable this feature.
20359 alias -g '${1+"$@"}'='"$@"'
20360 setopt NO_GLOB_SUBST
20361else
20362 case `(set -o) 2>/dev/null` in #(
20363 *posix*) :
20364 set -o posix ;; #(
20365 *) :
20366 ;;
20367esac
20368fi
20369
20370
20371as_nl='
20372'
20373export as_nl
20374# Printing a long string crashes Solaris 7 /usr/bin/printf.
20375as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20378# Prefer a ksh shell builtin over an external printf program on Solaris,
20379# but without wasting forks for bash or zsh.
20380if test -z "$BASH_VERSION$ZSH_VERSION" \
20381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20382 as_echo='print -r --'
20383 as_echo_n='print -rn --'
20384elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20385 as_echo='printf %s\n'
20386 as_echo_n='printf %s'
20387else
20388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20390 as_echo_n='/usr/ucb/echo -n'
20391 else
20392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20393 as_echo_n_body='eval
20394 arg=$1;
20395 case $arg in #(
20396 *"$as_nl"*)
20397 expr "X$arg" : "X\\(.*\\)$as_nl";
20398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20399 esac;
20400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20401 '
20402 export as_echo_n_body
20403 as_echo_n='sh -c $as_echo_n_body as_echo'
20404 fi
20405 export as_echo_body
20406 as_echo='sh -c $as_echo_body as_echo'
20407fi
20408
20409# The user is always right.
20410if test "${PATH_SEPARATOR+set}" != set; then
20411 PATH_SEPARATOR=:
20412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20414 PATH_SEPARATOR=';'
20415 }
20416fi
20417
20418
20419# IFS
20420# We need space, tab and new line, in precisely that order. Quoting is
20421# there to prevent editors from complaining about space-tab.
20422# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20423# splitting by setting IFS to empty value.)
20424IFS=" "" $as_nl"
20425
20426# Find who we are. Look in the path if we contain no directory separator.
20427as_myself=
20428case $0 in #((
20429 *[\\/]* ) as_myself=$0 ;;
20430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431for as_dir in $PATH
20432do
20433 IFS=$as_save_IFS
20434 test -z "$as_dir" && as_dir=.
20435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20436 done
20437IFS=$as_save_IFS
20438
20439 ;;
20440esac
20441# We did not find ourselves, most probably we were run as `sh COMMAND'
20442# in which case we are not to be found in the path.
20443if test "x$as_myself" = x; then
20444 as_myself=$0
20445fi
20446if test ! -f "$as_myself"; then
20447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20448 exit 1
20449fi
20450
20451# Unset variables that we do not need and which cause bugs (e.g. in
20452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20453# suppresses any "Segmentation fault" message there. '((' could
20454# trigger a bug in pdksh 5.2.14.
20455for as_var in BASH_ENV ENV MAIL MAILPATH
20456do eval test x\${$as_var+set} = xset \
20457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20458done
20459PS1='$ '
20460PS2='> '
20461PS4='+ '
20462
20463# NLS nuisances.
20464LC_ALL=C
20465export LC_ALL
20466LANGUAGE=C
20467export LANGUAGE
20468
20469# CDPATH.
20470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20471
20472
20473# as_fn_error STATUS ERROR [LINENO LOG_FD]
20474# ----------------------------------------
20475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20477# script with STATUS, using 1 if that was 0.
20478as_fn_error ()
20479{
20480 as_status=$1; test $as_status -eq 0 && as_status=1
20481 if test "$4"; then
20482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20484 fi
20485 $as_echo "$as_me: error: $2" >&2
20486 as_fn_exit $as_status
20487} # as_fn_error
20488
20489
20490# as_fn_set_status STATUS
20491# -----------------------
20492# Set $? to STATUS, without forking.
20493as_fn_set_status ()
20494{
20495 return $1
20496} # as_fn_set_status
20497
20498# as_fn_exit STATUS
20499# -----------------
20500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20501as_fn_exit ()
20502{
20503 set +e
20504 as_fn_set_status $1
20505 exit $1
20506} # as_fn_exit
20507
20508# as_fn_unset VAR
20509# ---------------
20510# Portably unset VAR.
20511as_fn_unset ()
20512{
20513 { eval $1=; unset $1;}
20514}
20515as_unset=as_fn_unset
20516# as_fn_append VAR VALUE
20517# ----------------------
20518# Append the text in VALUE to the end of the definition contained in VAR. Take
20519# advantage of any shell optimizations that allow amortized linear growth over
20520# repeated appends, instead of the typical quadratic growth present in naive
20521# implementations.
20522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20523 eval 'as_fn_append ()
20524 {
20525 eval $1+=\$2
20526 }'
20527else
20528 as_fn_append ()
20529 {
20530 eval $1=\$$1\$2
20531 }
20532fi # as_fn_append
20533
20534# as_fn_arith ARG...
20535# ------------------
20536# Perform arithmetic evaluation on the ARGs, and store the result in the
20537# global $as_val. Take advantage of shells that can avoid forks. The arguments
20538# must be portable across $(()) and expr.
20539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20540 eval 'as_fn_arith ()
20541 {
20542 as_val=$(( $* ))
20543 }'
20544else
20545 as_fn_arith ()
20546 {
20547 as_val=`expr "$@" || test $? -eq 1`
20548 }
20549fi # as_fn_arith
20550
20551
20552if expr a : '\(a\)' >/dev/null 2>&1 &&
20553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20554 as_expr=expr
20555else
20556 as_expr=false
20557fi
20558
20559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20560 as_basename=basename
20561else
20562 as_basename=false
20563fi
20564
20565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20566 as_dirname=dirname
20567else
20568 as_dirname=false
20569fi
20570
20571as_me=`$as_basename -- "$0" ||
20572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20573 X"$0" : 'X\(//\)$' \| \
20574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20575$as_echo X/"$0" |
20576 sed '/^.*\/\([^/][^/]*\)\/*$/{
20577 s//\1/
20578 q
20579 }
20580 /^X\/\(\/\/\)$/{
20581 s//\1/
20582 q
20583 }
20584 /^X\/\(\/\).*/{
20585 s//\1/
20586 q
20587 }
20588 s/.*/./; q'`
20589
20590# Avoid depending upon Character Ranges.
20591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20594as_cr_digits='0123456789'
20595as_cr_alnum=$as_cr_Letters$as_cr_digits
20596
20597ECHO_C= ECHO_N= ECHO_T=
20598case `echo -n x` in #(((((
20599-n*)
20600 case `echo 'xy\c'` in
20601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20602 xy) ECHO_C='\c';;
20603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20604 ECHO_T=' ';;
20605 esac;;
20606*)
20607 ECHO_N='-n';;
20608esac
20609
20610rm -f conf$$ conf$$.exe conf$$.file
20611if test -d conf$$.dir; then
20612 rm -f conf$$.dir/conf$$.file
20613else
20614 rm -f conf$$.dir
20615 mkdir conf$$.dir 2>/dev/null
20616fi
20617if (echo >conf$$.file) 2>/dev/null; then
20618 if ln -s conf$$.file conf$$ 2>/dev/null; then
20619 as_ln_s='ln -s'
20620 # ... but there are two gotchas:
20621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20623 # In both cases, we have to default to `cp -pR'.
20624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20625 as_ln_s='cp -pR'
20626 elif ln conf$$.file conf$$ 2>/dev/null; then
20627 as_ln_s=ln
20628 else
20629 as_ln_s='cp -pR'
20630 fi
20631else
20632 as_ln_s='cp -pR'
20633fi
20634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20635rmdir conf$$.dir 2>/dev/null
20636
20637
20638# as_fn_mkdir_p
20639# -------------
20640# Create "$as_dir" as a directory, including parents if necessary.
20641as_fn_mkdir_p ()
20642{
20643
20644 case $as_dir in #(
20645 -*) as_dir=./$as_dir;;
20646 esac
20647 test -d "$as_dir" || eval $as_mkdir_p || {
20648 as_dirs=
20649 while :; do
20650 case $as_dir in #(
20651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20652 *) as_qdir=$as_dir;;
20653 esac
20654 as_dirs="'$as_qdir' $as_dirs"
20655 as_dir=`$as_dirname -- "$as_dir" ||
20656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$as_dir" : 'X\(//\)[^/]' \| \
20658 X"$as_dir" : 'X\(//\)$' \| \
20659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20660$as_echo X"$as_dir" |
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20662 s//\1/
20663 q
20664 }
20665 /^X\(\/\/\)[^/].*/{
20666 s//\1/
20667 q
20668 }
20669 /^X\(\/\/\)$/{
20670 s//\1/
20671 q
20672 }
20673 /^X\(\/\).*/{
20674 s//\1/
20675 q
20676 }
20677 s/.*/./; q'`
20678 test -d "$as_dir" && break
20679 done
20680 test -z "$as_dirs" || eval "mkdir $as_dirs"
20681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20682
20683
20684} # as_fn_mkdir_p
20685if mkdir -p . 2>/dev/null; then
20686 as_mkdir_p='mkdir -p "$as_dir"'
20687else
20688 test -d ./-p && rmdir ./-p
20689 as_mkdir_p=false
20690fi
20691
20692
20693# as_fn_executable_p FILE
20694# -----------------------
20695# Test if FILE is an executable regular file.
20696as_fn_executable_p ()
20697{
20698 test -f "$1" && test -x "$1"
20699} # as_fn_executable_p
20700as_test_x='test -x'
20701as_executable_p=as_fn_executable_p
20702
20703# Sed expression to map a string onto a valid CPP name.
20704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20705
20706# Sed expression to map a string onto a valid variable name.
20707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20708
20709
20710exec 6>&1
20711## ----------------------------------- ##
20712## Main body of $CONFIG_STATUS script. ##
20713## ----------------------------------- ##
20714_ASEOF
20715test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20716
20717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718# Save the log message, to keep $0 and so on meaningful, and to
20719# report actual input values of CONFIG_FILES etc. instead of their
20720# values after options handling.
20721ac_log="
Elliott Hughes0ea98832015-12-04 23:18:20 -080020722This file was extended by PCRE $as_me 8.38, which was
Nick Kralevichf73ff172014-09-27 12:41:49 -070020723generated by GNU Autoconf 2.69. Invocation command line was
20724
20725 CONFIG_FILES = $CONFIG_FILES
20726 CONFIG_HEADERS = $CONFIG_HEADERS
20727 CONFIG_LINKS = $CONFIG_LINKS
20728 CONFIG_COMMANDS = $CONFIG_COMMANDS
20729 $ $0 $@
20730
20731on `(hostname || uname -n) 2>/dev/null | sed 1q`
20732"
20733
20734_ACEOF
20735
20736case $ac_config_files in *"
20737"*) set x $ac_config_files; shift; ac_config_files=$*;;
20738esac
20739
20740case $ac_config_headers in *"
20741"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20742esac
20743
20744
20745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20746# Files that config.status was made for.
20747config_files="$ac_config_files"
20748config_headers="$ac_config_headers"
20749config_commands="$ac_config_commands"
20750
20751_ACEOF
20752
20753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20754ac_cs_usage="\
20755\`$as_me' instantiates files and other configuration actions
20756from templates according to the current configuration. Unless the files
20757and actions are specified as TAGs, all are instantiated by default.
20758
20759Usage: $0 [OPTION]... [TAG]...
20760
20761 -h, --help print this help, then exit
20762 -V, --version print version number and configuration settings, then exit
20763 --config print configuration, then exit
20764 -q, --quiet, --silent
20765 do not print progress messages
20766 -d, --debug don't remove temporary files
20767 --recheck update $as_me by reconfiguring in the same conditions
20768 --file=FILE[:TEMPLATE]
20769 instantiate the configuration file FILE
20770 --header=FILE[:TEMPLATE]
20771 instantiate the configuration header FILE
20772
20773Configuration files:
20774$config_files
20775
20776Configuration headers:
20777$config_headers
20778
20779Configuration commands:
20780$config_commands
20781
20782Report bugs to the package provider."
20783
20784_ACEOF
20785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20786ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20787ac_cs_version="\\
Elliott Hughes0ea98832015-12-04 23:18:20 -080020788PCRE config.status 8.38
Nick Kralevichf73ff172014-09-27 12:41:49 -070020789configured by $0, generated by GNU Autoconf 2.69,
20790 with options \\"\$ac_cs_config\\"
20791
20792Copyright (C) 2012 Free Software Foundation, Inc.
20793This config.status script is free software; the Free Software Foundation
20794gives unlimited permission to copy, distribute and modify it."
20795
20796ac_pwd='$ac_pwd'
20797srcdir='$srcdir'
20798INSTALL='$INSTALL'
20799MKDIR_P='$MKDIR_P'
20800AWK='$AWK'
20801test -n "\$AWK" || AWK=awk
20802_ACEOF
20803
20804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20805# The default lists apply if the user does not specify any file.
20806ac_need_defaults=:
20807while test $# != 0
20808do
20809 case $1 in
20810 --*=?*)
20811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20813 ac_shift=:
20814 ;;
20815 --*=)
20816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20817 ac_optarg=
20818 ac_shift=:
20819 ;;
20820 *)
20821 ac_option=$1
20822 ac_optarg=$2
20823 ac_shift=shift
20824 ;;
20825 esac
20826
20827 case $ac_option in
20828 # Handling of the options.
20829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20830 ac_cs_recheck=: ;;
20831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20832 $as_echo "$ac_cs_version"; exit ;;
20833 --config | --confi | --conf | --con | --co | --c )
20834 $as_echo "$ac_cs_config"; exit ;;
20835 --debug | --debu | --deb | --de | --d | -d )
20836 debug=: ;;
20837 --file | --fil | --fi | --f )
20838 $ac_shift
20839 case $ac_optarg in
20840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20841 '') as_fn_error $? "missing file argument" ;;
20842 esac
20843 as_fn_append CONFIG_FILES " '$ac_optarg'"
20844 ac_need_defaults=false;;
20845 --header | --heade | --head | --hea )
20846 $ac_shift
20847 case $ac_optarg in
20848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20849 esac
20850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20851 ac_need_defaults=false;;
20852 --he | --h)
20853 # Conflict between --help and --header
20854 as_fn_error $? "ambiguous option: \`$1'
20855Try \`$0 --help' for more information.";;
20856 --help | --hel | -h )
20857 $as_echo "$ac_cs_usage"; exit ;;
20858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20860 ac_cs_silent=: ;;
20861
20862 # This is an error.
20863 -*) as_fn_error $? "unrecognized option: \`$1'
20864Try \`$0 --help' for more information." ;;
20865
20866 *) as_fn_append ac_config_targets " $1"
20867 ac_need_defaults=false ;;
20868
20869 esac
20870 shift
20871done
20872
20873ac_configure_extra_args=
20874
20875if $ac_cs_silent; then
20876 exec 6>/dev/null
20877 ac_configure_extra_args="$ac_configure_extra_args --silent"
20878fi
20879
20880_ACEOF
20881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882if \$ac_cs_recheck; then
20883 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20884 shift
20885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20886 CONFIG_SHELL='$SHELL'
20887 export CONFIG_SHELL
20888 exec "\$@"
20889fi
20890
20891_ACEOF
20892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20893exec 5>>config.log
20894{
20895 echo
20896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20897## Running $as_me. ##
20898_ASBOX
20899 $as_echo "$ac_log"
20900} >&5
20901
20902_ACEOF
20903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20904#
20905# INIT-COMMANDS
20906#
20907AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20908
20909
20910# The HP-UX ksh and POSIX shell print the target directory to stdout
20911# if CDPATH is set.
20912(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20913
20914sed_quote_subst='$sed_quote_subst'
20915double_quote_subst='$double_quote_subst'
20916delay_variable_subst='$delay_variable_subst'
20917AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20918DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20919OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20920macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20921macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20922enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20923enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20924pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20925enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070020926shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070020927SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20928ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20929PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20930host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20931host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20932host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20933build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20934build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20935build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20936SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20937Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20938GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20939EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20940FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20941LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20942NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20943LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20944max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20945ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20946exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20947lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20948lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20949lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20950lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20951lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20952reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20953reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20954deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20955file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20956file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20957want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20958sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20959AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20960AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20961archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070020974lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070020975lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20976lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070020977lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070020978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070020980lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070020981objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20982MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20983lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20985lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20986lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20987lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20988need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20989MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20990DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20991NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20992LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20993OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20994OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20995libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20996shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20997extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20998archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20999enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21000export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21001whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21002compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21003old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21004old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21005archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21006archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21007module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21008module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21009with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21010allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21011no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21012hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21013hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21014hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21015hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21016hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21017hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21018hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21019inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21020link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21026postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21027file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21028variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21029need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21030need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21031version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21032runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21033shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21034shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21035libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21036library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21037soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21038install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21039postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21040postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21041finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21042finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21043hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21044sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021045configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21046configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Nick Kralevichf73ff172014-09-27 12:41:49 -070021047hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21048enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21049enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21050enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21051old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21052striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21053compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21054predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21055postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21056predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21057postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21058compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21059LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21060reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21061reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21062old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21063compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21064GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21065lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21066lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21067lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21068lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21069lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21070archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21071enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21072export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21073whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21074compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21075old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21076old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21077archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21078archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21079module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21080module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21081with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21082allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21083no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21084hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21085hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21086hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21087hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21088hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21089hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21090hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21091inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21092link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21093always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21094export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21095exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21096include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21097prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21098postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21099file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21100hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21101compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21102predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21103postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21104predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21105postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21106compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21107
21108LTCC='$LTCC'
21109LTCFLAGS='$LTCFLAGS'
21110compiler='$compiler_DEFAULT'
21111
21112# A function that is used when there is no print builtin or printf.
21113func_fallback_echo ()
21114{
21115 eval 'cat <<_LTECHO_EOF
21116\$1
21117_LTECHO_EOF'
21118}
21119
21120# Quote evaled strings.
21121for var in AS \
21122DLLTOOL \
21123OBJDUMP \
21124SHELL \
21125ECHO \
21126PATH_SEPARATOR \
21127SED \
21128GREP \
21129EGREP \
21130FGREP \
21131LD \
21132NM \
21133LN_S \
21134lt_SP2NL \
21135lt_NL2SP \
21136reload_flag \
21137deplibs_check_method \
21138file_magic_cmd \
21139file_magic_glob \
21140want_nocaseglob \
21141sharedlib_from_linklib_cmd \
21142AR \
21143AR_FLAGS \
21144archiver_list_spec \
21145STRIP \
21146RANLIB \
21147CC \
21148CFLAGS \
21149compiler \
21150lt_cv_sys_global_symbol_pipe \
21151lt_cv_sys_global_symbol_to_cdecl \
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021152lt_cv_sys_global_symbol_to_import \
Nick Kralevichf73ff172014-09-27 12:41:49 -070021153lt_cv_sys_global_symbol_to_c_name_address \
21154lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021155lt_cv_nm_interface \
Nick Kralevichf73ff172014-09-27 12:41:49 -070021156nm_file_list_spec \
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021157lt_cv_truncate_bin \
Nick Kralevichf73ff172014-09-27 12:41:49 -070021158lt_prog_compiler_no_builtin_flag \
21159lt_prog_compiler_pic \
21160lt_prog_compiler_wl \
21161lt_prog_compiler_static \
21162lt_cv_prog_compiler_c_o \
21163need_locks \
21164MANIFEST_TOOL \
21165DSYMUTIL \
21166NMEDIT \
21167LIPO \
21168OTOOL \
21169OTOOL64 \
21170shrext_cmds \
21171export_dynamic_flag_spec \
21172whole_archive_flag_spec \
21173compiler_needs_object \
21174with_gnu_ld \
21175allow_undefined_flag \
21176no_undefined_flag \
21177hardcode_libdir_flag_spec \
21178hardcode_libdir_separator \
21179exclude_expsyms \
21180include_expsyms \
21181file_list_spec \
21182variables_saved_for_relink \
21183libname_spec \
21184library_names_spec \
21185soname_spec \
21186install_override_mode \
21187finish_eval \
21188old_striplib \
21189striplib \
21190compiler_lib_search_dirs \
21191predep_objects \
21192postdep_objects \
21193predeps \
21194postdeps \
21195compiler_lib_search_path \
21196LD_CXX \
21197reload_flag_CXX \
21198compiler_CXX \
21199lt_prog_compiler_no_builtin_flag_CXX \
21200lt_prog_compiler_pic_CXX \
21201lt_prog_compiler_wl_CXX \
21202lt_prog_compiler_static_CXX \
21203lt_cv_prog_compiler_c_o_CXX \
21204export_dynamic_flag_spec_CXX \
21205whole_archive_flag_spec_CXX \
21206compiler_needs_object_CXX \
21207with_gnu_ld_CXX \
21208allow_undefined_flag_CXX \
21209no_undefined_flag_CXX \
21210hardcode_libdir_flag_spec_CXX \
21211hardcode_libdir_separator_CXX \
21212exclude_expsyms_CXX \
21213include_expsyms_CXX \
21214file_list_spec_CXX \
21215compiler_lib_search_dirs_CXX \
21216predep_objects_CXX \
21217postdep_objects_CXX \
21218predeps_CXX \
21219postdeps_CXX \
21220compiler_lib_search_path_CXX; do
21221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21222 *[\\\\\\\`\\"\\\$]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Nick Kralevichf73ff172014-09-27 12:41:49 -070021224 ;;
21225 *)
21226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21227 ;;
21228 esac
21229done
21230
21231# Double-quote double-evaled strings.
21232for var in reload_cmds \
21233old_postinstall_cmds \
21234old_postuninstall_cmds \
21235old_archive_cmds \
21236extract_expsyms_cmds \
21237old_archive_from_new_cmds \
21238old_archive_from_expsyms_cmds \
21239archive_cmds \
21240archive_expsym_cmds \
21241module_cmds \
21242module_expsym_cmds \
21243export_symbols_cmds \
21244prelink_cmds \
21245postlink_cmds \
21246postinstall_cmds \
21247postuninstall_cmds \
21248finish_cmds \
21249sys_lib_search_path_spec \
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021250configure_time_dlsearch_path \
21251configure_time_lt_sys_library_path \
Nick Kralevichf73ff172014-09-27 12:41:49 -070021252reload_cmds_CXX \
21253old_archive_cmds_CXX \
21254old_archive_from_new_cmds_CXX \
21255old_archive_from_expsyms_cmds_CXX \
21256archive_cmds_CXX \
21257archive_expsym_cmds_CXX \
21258module_cmds_CXX \
21259module_expsym_cmds_CXX \
21260export_symbols_cmds_CXX \
21261prelink_cmds_CXX \
21262postlink_cmds_CXX; do
21263 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21264 *[\\\\\\\`\\"\\\$]*)
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021265 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Nick Kralevichf73ff172014-09-27 12:41:49 -070021266 ;;
21267 *)
21268 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21269 ;;
21270 esac
21271done
21272
21273ac_aux_dir='$ac_aux_dir'
Nick Kralevichf73ff172014-09-27 12:41:49 -070021274
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021275# See if we are running on zsh, and set the options that allow our
Nick Kralevichf73ff172014-09-27 12:41:49 -070021276# commands through without removal of \ escapes INIT.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070021277if test -n "\${ZSH_VERSION+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070021278 setopt NO_GLOB_SUBST
21279fi
21280
21281
21282 PACKAGE='$PACKAGE'
21283 VERSION='$VERSION'
Nick Kralevichf73ff172014-09-27 12:41:49 -070021284 RM='$RM'
21285 ofile='$ofile'
21286
21287
21288
21289
21290
21291
21292_ACEOF
21293
21294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21295
21296# Handling of arguments.
21297for ac_config_target in $ac_config_targets
21298do
21299 case $ac_config_target in
21300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21301 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21302 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21304 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
21305 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
21306 "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
21307 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
21308 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
21309 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
21310 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
21311 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
21312 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
21313 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
21314 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
21315
21316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21317 esac
21318done
21319
21320
21321# If the user did not use the arguments to specify the items to instantiate,
21322# then the envvar interface is used. Set only those that are not.
21323# We use the long form for the default assignment because of an extremely
21324# bizarre bug on SunOS 4.1.3.
21325if $ac_need_defaults; then
21326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21329fi
21330
21331# Have a temporary directory for convenience. Make it in the build tree
21332# simply because there is no reason against having it here, and in addition,
21333# creating and moving files from /tmp can sometimes cause problems.
21334# Hook for its removal unless debugging.
21335# Note that there is a small window in which the directory will not be cleaned:
21336# after its creation but before its name has been assigned to `$tmp'.
21337$debug ||
21338{
21339 tmp= ac_tmp=
21340 trap 'exit_status=$?
21341 : "${ac_tmp:=$tmp}"
21342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21343' 0
21344 trap 'as_fn_exit 1' 1 2 13 15
21345}
21346# Create a (secure) tmp directory for tmp files.
21347
21348{
21349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21350 test -d "$tmp"
21351} ||
21352{
21353 tmp=./conf$$-$RANDOM
21354 (umask 077 && mkdir "$tmp")
21355} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21356ac_tmp=$tmp
21357
21358# Set up the scripts for CONFIG_FILES section.
21359# No need to generate them if there are no CONFIG_FILES.
21360# This happens for instance with `./config.status config.h'.
21361if test -n "$CONFIG_FILES"; then
21362
21363
21364ac_cr=`echo X | tr X '\015'`
21365# On cygwin, bash can eat \r inside `` if the user requested igncr.
21366# But we know of no other shell where ac_cr would be empty at this
21367# point, so we can use a bashism as a fallback.
21368if test "x$ac_cr" = x; then
21369 eval ac_cr=\$\'\\r\'
21370fi
21371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21373 ac_cs_awk_cr='\\r'
21374else
21375 ac_cs_awk_cr=$ac_cr
21376fi
21377
21378echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21379_ACEOF
21380
21381
21382{
21383 echo "cat >conf$$subs.awk <<_ACEOF" &&
21384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21385 echo "_ACEOF"
21386} >conf$$subs.sh ||
21387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21388ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21389ac_delim='%!_!# '
21390for ac_last_try in false false false false false :; do
21391 . ./conf$$subs.sh ||
21392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21393
21394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21395 if test $ac_delim_n = $ac_delim_num; then
21396 break
21397 elif $ac_last_try; then
21398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21399 else
21400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21401 fi
21402done
21403rm -f conf$$subs.sh
21404
21405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21406cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21407_ACEOF
21408sed -n '
21409h
21410s/^/S["/; s/!.*/"]=/
21411p
21412g
21413s/^[^!]*!//
21414:repl
21415t repl
21416s/'"$ac_delim"'$//
21417t delim
21418:nl
21419h
21420s/\(.\{148\}\)..*/\1/
21421t more1
21422s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21423p
21424n
21425b repl
21426:more1
21427s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21428p
21429g
21430s/.\{148\}//
21431t nl
21432:delim
21433h
21434s/\(.\{148\}\)..*/\1/
21435t more2
21436s/["\\]/\\&/g; s/^/"/; s/$/"/
21437p
21438b
21439:more2
21440s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21441p
21442g
21443s/.\{148\}//
21444t delim
21445' <conf$$subs.awk | sed '
21446/^[^""]/{
21447 N
21448 s/\n//
21449}
21450' >>$CONFIG_STATUS || ac_write_fail=1
21451rm -f conf$$subs.awk
21452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21453_ACAWK
21454cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21455 for (key in S) S_is_set[key] = 1
21456 FS = ""
21457
21458}
21459{
21460 line = $ 0
21461 nfields = split(line, field, "@")
21462 substed = 0
21463 len = length(field[1])
21464 for (i = 2; i < nfields; i++) {
21465 key = field[i]
21466 keylen = length(key)
21467 if (S_is_set[key]) {
21468 value = S[key]
21469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21470 len += length(value) + length(field[++i])
21471 substed = 1
21472 } else
21473 len += 1 + keylen
21474 }
21475
21476 print line
21477}
21478
21479_ACAWK
21480_ACEOF
21481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21484else
21485 cat
21486fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21488_ACEOF
21489
21490# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21491# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21492# trailing colons and then remove the whole line if VPATH becomes empty
21493# (actually we leave an empty line to preserve line numbers).
21494if test "x$srcdir" = x.; then
21495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21496h
21497s///
21498s/^/:/
21499s/[ ]*$/:/
21500s/:\$(srcdir):/:/g
21501s/:\${srcdir}:/:/g
21502s/:@srcdir@:/:/g
21503s/^:*//
21504s/:*$//
21505x
21506s/\(=[ ]*\).*/\1/
21507G
21508s/\n//
21509s/^[^=]*=[ ]*$//
21510}'
21511fi
21512
21513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21514fi # test -n "$CONFIG_FILES"
21515
21516# Set up the scripts for CONFIG_HEADERS section.
21517# No need to generate them if there are no CONFIG_HEADERS.
21518# This happens for instance with `./config.status Makefile'.
21519if test -n "$CONFIG_HEADERS"; then
21520cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21521BEGIN {
21522_ACEOF
21523
21524# Transform confdefs.h into an awk script `defines.awk', embedded as
21525# here-document in config.status, that substitutes the proper values into
21526# config.h.in to produce config.h.
21527
21528# Create a delimiter string that does not exist in confdefs.h, to ease
21529# handling of long lines.
21530ac_delim='%!_!# '
21531for ac_last_try in false false :; do
21532 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21533 if test -z "$ac_tt"; then
21534 break
21535 elif $ac_last_try; then
21536 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21537 else
21538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21539 fi
21540done
21541
21542# For the awk script, D is an array of macro values keyed by name,
21543# likewise P contains macro parameters if any. Preserve backslash
21544# newline sequences.
21545
21546ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21547sed -n '
21548s/.\{148\}/&'"$ac_delim"'/g
21549t rset
21550:rset
21551s/^[ ]*#[ ]*define[ ][ ]*/ /
21552t def
21553d
21554:def
21555s/\\$//
21556t bsnl
21557s/["\\]/\\&/g
21558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21559D["\1"]=" \3"/p
21560s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21561d
21562:bsnl
21563s/["\\]/\\&/g
21564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21565D["\1"]=" \3\\\\\\n"\\/p
21566t cont
21567s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21568t cont
21569d
21570:cont
21571n
21572s/.\{148\}/&'"$ac_delim"'/g
21573t clear
21574:clear
21575s/\\$//
21576t bsnlc
21577s/["\\]/\\&/g; s/^/"/; s/$/"/p
21578d
21579:bsnlc
21580s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21581b cont
21582' <confdefs.h | sed '
21583s/'"$ac_delim"'/"\\\
21584"/g' >>$CONFIG_STATUS || ac_write_fail=1
21585
21586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21587 for (key in D) D_is_set[key] = 1
21588 FS = ""
21589}
21590/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21591 line = \$ 0
21592 split(line, arg, " ")
21593 if (arg[1] == "#") {
21594 defundef = arg[2]
21595 mac1 = arg[3]
21596 } else {
21597 defundef = substr(arg[1], 2)
21598 mac1 = arg[2]
21599 }
21600 split(mac1, mac2, "(") #)
21601 macro = mac2[1]
21602 prefix = substr(line, 1, index(line, defundef) - 1)
21603 if (D_is_set[macro]) {
21604 # Preserve the white space surrounding the "#".
21605 print prefix "define", macro P[macro] D[macro]
21606 next
21607 } else {
21608 # Replace #undef with comments. This is necessary, for example,
21609 # in the case of _POSIX_SOURCE, which is predefined and required
21610 # on some systems where configure will not decide to define it.
21611 if (defundef == "undef") {
21612 print "/*", prefix defundef, macro, "*/"
21613 next
21614 }
21615 }
21616}
21617{ print }
21618_ACAWK
21619_ACEOF
21620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21621 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21622fi # test -n "$CONFIG_HEADERS"
21623
21624
21625eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21626shift
21627for ac_tag
21628do
21629 case $ac_tag in
21630 :[FHLC]) ac_mode=$ac_tag; continue;;
21631 esac
21632 case $ac_mode$ac_tag in
21633 :[FHL]*:*);;
21634 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21635 :[FH]-) ac_tag=-:-;;
21636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21637 esac
21638 ac_save_IFS=$IFS
21639 IFS=:
21640 set x $ac_tag
21641 IFS=$ac_save_IFS
21642 shift
21643 ac_file=$1
21644 shift
21645
21646 case $ac_mode in
21647 :L) ac_source=$1;;
21648 :[FH])
21649 ac_file_inputs=
21650 for ac_f
21651 do
21652 case $ac_f in
21653 -) ac_f="$ac_tmp/stdin";;
21654 *) # Look for the file first in the build tree, then in the source tree
21655 # (if the path is not absolute). The absolute path cannot be DOS-style,
21656 # because $ac_f cannot contain `:'.
21657 test -f "$ac_f" ||
21658 case $ac_f in
21659 [\\/$]*) false;;
21660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21661 esac ||
21662 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21663 esac
21664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21665 as_fn_append ac_file_inputs " '$ac_f'"
21666 done
21667
21668 # Let's still pretend it is `configure' which instantiates (i.e., don't
21669 # use $as_me), people would be surprised to read:
21670 # /* config.h. Generated by config.status. */
21671 configure_input='Generated from '`
21672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21673 `' by configure.'
21674 if test x"$ac_file" != x-; then
21675 configure_input="$ac_file. $configure_input"
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21677$as_echo "$as_me: creating $ac_file" >&6;}
21678 fi
21679 # Neutralize special characters interpreted by sed in replacement strings.
21680 case $configure_input in #(
21681 *\&* | *\|* | *\\* )
21682 ac_sed_conf_input=`$as_echo "$configure_input" |
21683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21684 *) ac_sed_conf_input=$configure_input;;
21685 esac
21686
21687 case $ac_tag in
21688 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21690 esac
21691 ;;
21692 esac
21693
21694 ac_dir=`$as_dirname -- "$ac_file" ||
21695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21696 X"$ac_file" : 'X\(//\)[^/]' \| \
21697 X"$ac_file" : 'X\(//\)$' \| \
21698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21699$as_echo X"$ac_file" |
21700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21701 s//\1/
21702 q
21703 }
21704 /^X\(\/\/\)[^/].*/{
21705 s//\1/
21706 q
21707 }
21708 /^X\(\/\/\)$/{
21709 s//\1/
21710 q
21711 }
21712 /^X\(\/\).*/{
21713 s//\1/
21714 q
21715 }
21716 s/.*/./; q'`
21717 as_dir="$ac_dir"; as_fn_mkdir_p
21718 ac_builddir=.
21719
21720case "$ac_dir" in
21721.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21722*)
21723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21724 # A ".." for each directory in $ac_dir_suffix.
21725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21726 case $ac_top_builddir_sub in
21727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21729 esac ;;
21730esac
21731ac_abs_top_builddir=$ac_pwd
21732ac_abs_builddir=$ac_pwd$ac_dir_suffix
21733# for backward compatibility:
21734ac_top_builddir=$ac_top_build_prefix
21735
21736case $srcdir in
21737 .) # We are building in place.
21738 ac_srcdir=.
21739 ac_top_srcdir=$ac_top_builddir_sub
21740 ac_abs_top_srcdir=$ac_pwd ;;
21741 [\\/]* | ?:[\\/]* ) # Absolute name.
21742 ac_srcdir=$srcdir$ac_dir_suffix;
21743 ac_top_srcdir=$srcdir
21744 ac_abs_top_srcdir=$srcdir ;;
21745 *) # Relative name.
21746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21747 ac_top_srcdir=$ac_top_build_prefix$srcdir
21748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21749esac
21750ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21751
21752
21753 case $ac_mode in
21754 :F)
21755 #
21756 # CONFIG_FILE
21757 #
21758
21759 case $INSTALL in
21760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21761 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21762 esac
21763 ac_MKDIR_P=$MKDIR_P
21764 case $MKDIR_P in
21765 [\\/$]* | ?:[\\/]* ) ;;
21766 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21767 esac
21768_ACEOF
21769
21770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21771# If the template does not know about datarootdir, expand it.
21772# FIXME: This hack should be removed a few years after 2.60.
21773ac_datarootdir_hack=; ac_datarootdir_seen=
21774ac_sed_dataroot='
21775/datarootdir/ {
21776 p
21777 q
21778}
21779/@datadir@/p
21780/@docdir@/p
21781/@infodir@/p
21782/@localedir@/p
21783/@mandir@/p'
21784case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21785*datarootdir*) ac_datarootdir_seen=yes;;
21786*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21788$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21789_ACEOF
21790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21791 ac_datarootdir_hack='
21792 s&@datadir@&$datadir&g
21793 s&@docdir@&$docdir&g
21794 s&@infodir@&$infodir&g
21795 s&@localedir@&$localedir&g
21796 s&@mandir@&$mandir&g
21797 s&\\\${datarootdir}&$datarootdir&g' ;;
21798esac
21799_ACEOF
21800
21801# Neutralize VPATH when `$srcdir' = `.'.
21802# Shell code in configure.ac might set extrasub.
21803# FIXME: do we really want to maintain this feature?
21804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21805ac_sed_extra="$ac_vpsub
21806$extrasub
21807_ACEOF
21808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21809:t
21810/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21811s|@configure_input@|$ac_sed_conf_input|;t t
21812s&@top_builddir@&$ac_top_builddir_sub&;t t
21813s&@top_build_prefix@&$ac_top_build_prefix&;t t
21814s&@srcdir@&$ac_srcdir&;t t
21815s&@abs_srcdir@&$ac_abs_srcdir&;t t
21816s&@top_srcdir@&$ac_top_srcdir&;t t
21817s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21818s&@builddir@&$ac_builddir&;t t
21819s&@abs_builddir@&$ac_abs_builddir&;t t
21820s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21821s&@INSTALL@&$ac_INSTALL&;t t
21822s&@MKDIR_P@&$ac_MKDIR_P&;t t
21823$ac_datarootdir_hack
21824"
21825eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21826 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21827
21828test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21829 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21831 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21833which seems to be undefined. Please make sure it is defined" >&5
21834$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21835which seems to be undefined. Please make sure it is defined" >&2;}
21836
21837 rm -f "$ac_tmp/stdin"
21838 case $ac_file in
21839 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21840 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21841 esac \
21842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21843 ;;
21844 :H)
21845 #
21846 # CONFIG_HEADER
21847 #
21848 if test x"$ac_file" != x-; then
21849 {
21850 $as_echo "/* $configure_input */" \
21851 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21852 } >"$ac_tmp/config.h" \
21853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21854 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21856$as_echo "$as_me: $ac_file is unchanged" >&6;}
21857 else
21858 rm -f "$ac_file"
21859 mv "$ac_tmp/config.h" "$ac_file" \
21860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21861 fi
21862 else
21863 $as_echo "/* $configure_input */" \
21864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21865 || as_fn_error $? "could not create -" "$LINENO" 5
21866 fi
21867# Compute "$ac_file"'s index in $config_headers.
21868_am_arg="$ac_file"
21869_am_stamp_count=1
21870for _am_header in $config_headers :; do
21871 case $_am_header in
21872 $_am_arg | $_am_arg:* )
21873 break ;;
21874 * )
21875 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21876 esac
21877done
21878echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21879$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21880 X"$_am_arg" : 'X\(//\)[^/]' \| \
21881 X"$_am_arg" : 'X\(//\)$' \| \
21882 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21883$as_echo X"$_am_arg" |
21884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21885 s//\1/
21886 q
21887 }
21888 /^X\(\/\/\)[^/].*/{
21889 s//\1/
21890 q
21891 }
21892 /^X\(\/\/\)$/{
21893 s//\1/
21894 q
21895 }
21896 /^X\(\/\).*/{
21897 s//\1/
21898 q
21899 }
21900 s/.*/./; q'`/stamp-h$_am_stamp_count
21901 ;;
21902
21903 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21904$as_echo "$as_me: executing $ac_file commands" >&6;}
21905 ;;
21906 esac
21907
21908
21909 case $ac_file$ac_mode in
21910 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21911 # Older Autoconf quotes --file arguments for eval, but not when files
21912 # are listed without --file. Let's play safe and only enable the eval
21913 # if we detect the quoting.
21914 case $CONFIG_FILES in
21915 *\'*) eval set x "$CONFIG_FILES" ;;
21916 *) set x $CONFIG_FILES ;;
21917 esac
21918 shift
21919 for mf
21920 do
21921 # Strip MF so we end up with the name of the file.
21922 mf=`echo "$mf" | sed -e 's/:.*$//'`
21923 # Check whether this is an Automake generated Makefile or not.
21924 # We used to match only the files named 'Makefile.in', but
21925 # some people rename them; so instead we look at the file content.
21926 # Grep'ing the first line is not enough: some people post-process
21927 # each Makefile.in and add a new line on top of each file to say so.
21928 # Grep'ing the whole file is not good either: AIX grep has a line
21929 # limit of 2048, but all sed's we know have understand at least 4000.
21930 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21931 dirpart=`$as_dirname -- "$mf" ||
21932$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21933 X"$mf" : 'X\(//\)[^/]' \| \
21934 X"$mf" : 'X\(//\)$' \| \
21935 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21936$as_echo X"$mf" |
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21938 s//\1/
21939 q
21940 }
21941 /^X\(\/\/\)[^/].*/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\/\)$/{
21946 s//\1/
21947 q
21948 }
21949 /^X\(\/\).*/{
21950 s//\1/
21951 q
21952 }
21953 s/.*/./; q'`
21954 else
21955 continue
21956 fi
21957 # Extract the definition of DEPDIR, am__include, and am__quote
21958 # from the Makefile without running 'make'.
21959 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21960 test -z "$DEPDIR" && continue
21961 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21962 test -z "$am__include" && continue
21963 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21964 # Find all dependency output files, they are included files with
21965 # $(DEPDIR) in their names. We invoke sed twice because it is the
21966 # simplest approach to changing $(DEPDIR) to its actual value in the
21967 # expansion.
21968 for file in `sed -n "
21969 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21970 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21971 # Make sure the directory exists.
21972 test -f "$dirpart/$file" && continue
21973 fdir=`$as_dirname -- "$file" ||
21974$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21975 X"$file" : 'X\(//\)[^/]' \| \
21976 X"$file" : 'X\(//\)$' \| \
21977 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21978$as_echo X"$file" |
21979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21980 s//\1/
21981 q
21982 }
21983 /^X\(\/\/\)[^/].*/{
21984 s//\1/
21985 q
21986 }
21987 /^X\(\/\/\)$/{
21988 s//\1/
21989 q
21990 }
21991 /^X\(\/\).*/{
21992 s//\1/
21993 q
21994 }
21995 s/.*/./; q'`
21996 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21997 # echo "creating $dirpart/$file"
21998 echo '# dummy' > "$dirpart/$file"
21999 done
22000 done
22001}
22002 ;;
22003 "libtool":C)
22004
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022005 # See if we are running on zsh, and set the options that allow our
Nick Kralevichf73ff172014-09-27 12:41:49 -070022006 # commands through without removal of \ escapes.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022007 if test -n "${ZSH_VERSION+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070022008 setopt NO_GLOB_SUBST
22009 fi
22010
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022011 cfgfile=${ofile}T
Nick Kralevichf73ff172014-09-27 12:41:49 -070022012 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22013 $RM "$cfgfile"
22014
22015 cat <<_LT_EOF >> "$cfgfile"
22016#! $SHELL
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022017# Generated automatically by $as_me ($PACKAGE) $VERSION
Nick Kralevichf73ff172014-09-27 12:41:49 -070022018# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22019# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022020
22021# Provide generalized library-building support services.
22022# Written by Gordon Matzigkeit, 1996
22023
22024# Copyright (C) 2014 Free Software Foundation, Inc.
22025# This is free software; see the source for copying conditions. There is NO
22026# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22027
22028# GNU Libtool is free software; you can redistribute it and/or modify
22029# it under the terms of the GNU General Public License as published by
22030# the Free Software Foundation; either version 2 of of the License, or
22031# (at your option) any later version.
Nick Kralevichf73ff172014-09-27 12:41:49 -070022032#
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022033# As a special exception to the GNU General Public License, if you
22034# distribute this file as part of a program or library that is built
22035# using GNU Libtool, you may include this file under the same
22036# distribution terms that you use for the rest of that program.
Nick Kralevichf73ff172014-09-27 12:41:49 -070022037#
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022038# GNU Libtool is distributed in the hope that it will be useful, but
22039# WITHOUT ANY WARRANTY; without even the implied warranty of
Nick Kralevichf73ff172014-09-27 12:41:49 -070022040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22041# GNU General Public License for more details.
22042#
22043# You should have received a copy of the GNU General Public License
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022044# along with this program. If not, see <http://www.gnu.org/licenses/>.
Nick Kralevichf73ff172014-09-27 12:41:49 -070022045
22046
22047# The names of the tagged configurations supported by this script.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022048available_tags='CXX '
22049
22050# Configured defaults for sys_lib_dlsearch_path munging.
22051: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
Nick Kralevichf73ff172014-09-27 12:41:49 -070022052
22053# ### BEGIN LIBTOOL CONFIG
22054
22055# Assembler program.
22056AS=$lt_AS
22057
22058# DLL creation program.
22059DLLTOOL=$lt_DLLTOOL
22060
22061# Object dumper program.
22062OBJDUMP=$lt_OBJDUMP
22063
22064# Which release of libtool.m4 was used?
22065macro_version=$macro_version
22066macro_revision=$macro_revision
22067
22068# Whether or not to build shared libraries.
22069build_libtool_libs=$enable_shared
22070
22071# Whether or not to build static libraries.
22072build_old_libs=$enable_static
22073
22074# What type of objects to build.
22075pic_mode=$pic_mode
22076
22077# Whether or not to optimize for fast installation.
22078fast_install=$enable_fast_install
22079
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022080# Shared archive member basename,for filename based shared library versioning on AIX.
22081shared_archive_member_spec=$shared_archive_member_spec
22082
Nick Kralevichf73ff172014-09-27 12:41:49 -070022083# Shell to use when invoking shell scripts.
22084SHELL=$lt_SHELL
22085
22086# An echo program that protects backslashes.
22087ECHO=$lt_ECHO
22088
22089# The PATH separator for the build system.
22090PATH_SEPARATOR=$lt_PATH_SEPARATOR
22091
22092# The host system.
22093host_alias=$host_alias
22094host=$host
22095host_os=$host_os
22096
22097# The build system.
22098build_alias=$build_alias
22099build=$build
22100build_os=$build_os
22101
22102# A sed program that does not truncate output.
22103SED=$lt_SED
22104
22105# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22106Xsed="\$SED -e 1s/^X//"
22107
22108# A grep program that handles long lines.
22109GREP=$lt_GREP
22110
22111# An ERE matcher.
22112EGREP=$lt_EGREP
22113
22114# A literal string matcher.
22115FGREP=$lt_FGREP
22116
22117# A BSD- or MS-compatible name lister.
22118NM=$lt_NM
22119
22120# Whether we need soft or hard links.
22121LN_S=$lt_LN_S
22122
22123# What is the maximum length of a command?
22124max_cmd_len=$max_cmd_len
22125
22126# Object file suffix (normally "o").
22127objext=$ac_objext
22128
22129# Executable file suffix (normally "").
22130exeext=$exeext
22131
22132# whether the shell understands "unset".
22133lt_unset=$lt_unset
22134
22135# turn spaces into newlines.
22136SP2NL=$lt_lt_SP2NL
22137
22138# turn newlines into spaces.
22139NL2SP=$lt_lt_NL2SP
22140
22141# convert \$build file names to \$host format.
22142to_host_file_cmd=$lt_cv_to_host_file_cmd
22143
22144# convert \$build files to toolchain format.
22145to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22146
22147# Method to check whether dependent libraries are shared objects.
22148deplibs_check_method=$lt_deplibs_check_method
22149
22150# Command to use when deplibs_check_method = "file_magic".
22151file_magic_cmd=$lt_file_magic_cmd
22152
22153# How to find potential files when deplibs_check_method = "file_magic".
22154file_magic_glob=$lt_file_magic_glob
22155
22156# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22157want_nocaseglob=$lt_want_nocaseglob
22158
22159# Command to associate shared and link libraries.
22160sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22161
22162# The archiver.
22163AR=$lt_AR
22164
22165# Flags to create an archive.
22166AR_FLAGS=$lt_AR_FLAGS
22167
22168# How to feed a file listing to the archiver.
22169archiver_list_spec=$lt_archiver_list_spec
22170
22171# A symbol stripping program.
22172STRIP=$lt_STRIP
22173
22174# Commands used to install an old-style archive.
22175RANLIB=$lt_RANLIB
22176old_postinstall_cmds=$lt_old_postinstall_cmds
22177old_postuninstall_cmds=$lt_old_postuninstall_cmds
22178
22179# Whether to use a lock for old archive extraction.
22180lock_old_archive_extraction=$lock_old_archive_extraction
22181
22182# A C compiler.
22183LTCC=$lt_CC
22184
22185# LTCC compiler flags.
22186LTCFLAGS=$lt_CFLAGS
22187
22188# Take the output of nm and produce a listing of raw symbols and C names.
22189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22190
22191# Transform the output of nm in a proper C declaration.
22192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22193
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022194# Transform the output of nm into a list of symbols to manually relocate.
22195global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22196
Nick Kralevichf73ff172014-09-27 12:41:49 -070022197# Transform the output of nm in a C name address pair.
22198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22199
22200# Transform the output of nm in a C name address pair when lib prefix is needed.
22201global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22202
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022203# The name lister interface.
22204nm_interface=$lt_lt_cv_nm_interface
22205
Nick Kralevichf73ff172014-09-27 12:41:49 -070022206# Specify filename containing input files for \$NM.
22207nm_file_list_spec=$lt_nm_file_list_spec
22208
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022209# The root where to search for dependent libraries,and where our libraries should be installed.
Nick Kralevichf73ff172014-09-27 12:41:49 -070022210lt_sysroot=$lt_sysroot
22211
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022212# Command to truncate a binary pipe.
22213lt_truncate_bin=$lt_lt_cv_truncate_bin
22214
Nick Kralevichf73ff172014-09-27 12:41:49 -070022215# The name of the directory that contains temporary libtool files.
22216objdir=$objdir
22217
22218# Used to examine libraries when file_magic_cmd begins with "file".
22219MAGIC_CMD=$MAGIC_CMD
22220
22221# Must we lock files when doing compilation?
22222need_locks=$lt_need_locks
22223
22224# Manifest tool.
22225MANIFEST_TOOL=$lt_MANIFEST_TOOL
22226
22227# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22228DSYMUTIL=$lt_DSYMUTIL
22229
22230# Tool to change global to local symbols on Mac OS X.
22231NMEDIT=$lt_NMEDIT
22232
22233# Tool to manipulate fat objects and archives on Mac OS X.
22234LIPO=$lt_LIPO
22235
22236# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22237OTOOL=$lt_OTOOL
22238
22239# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22240OTOOL64=$lt_OTOOL64
22241
22242# Old archive suffix (normally "a").
22243libext=$libext
22244
22245# Shared library suffix (normally ".so").
22246shrext_cmds=$lt_shrext_cmds
22247
22248# The commands to extract the exported symbol list from a shared archive.
22249extract_expsyms_cmds=$lt_extract_expsyms_cmds
22250
22251# Variables whose values should be saved in libtool wrapper scripts and
22252# restored at link time.
22253variables_saved_for_relink=$lt_variables_saved_for_relink
22254
22255# Do we need the "lib" prefix for modules?
22256need_lib_prefix=$need_lib_prefix
22257
22258# Do we need a version for libraries?
22259need_version=$need_version
22260
22261# Library versioning type.
22262version_type=$version_type
22263
22264# Shared library runtime path variable.
22265runpath_var=$runpath_var
22266
22267# Shared library path variable.
22268shlibpath_var=$shlibpath_var
22269
22270# Is shlibpath searched before the hard-coded library search path?
22271shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22272
22273# Format of library name prefix.
22274libname_spec=$lt_libname_spec
22275
22276# List of archive names. First name is the real one, the rest are links.
22277# The last name is the one that the linker finds with -lNAME
22278library_names_spec=$lt_library_names_spec
22279
22280# The coded name of the library, if different from the real name.
22281soname_spec=$lt_soname_spec
22282
22283# Permission mode override for installation of shared libraries.
22284install_override_mode=$lt_install_override_mode
22285
22286# Command to use after installation of a shared archive.
22287postinstall_cmds=$lt_postinstall_cmds
22288
22289# Command to use after uninstallation of a shared archive.
22290postuninstall_cmds=$lt_postuninstall_cmds
22291
22292# Commands used to finish a libtool library installation in a directory.
22293finish_cmds=$lt_finish_cmds
22294
22295# As "finish_cmds", except a single script fragment to be evaled but
22296# not shown.
22297finish_eval=$lt_finish_eval
22298
22299# Whether we should hardcode library paths into libraries.
22300hardcode_into_libs=$hardcode_into_libs
22301
22302# Compile-time system search path for libraries.
22303sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22304
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022305# Detected run-time system search path for libraries.
22306sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22307
22308# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22309configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Nick Kralevichf73ff172014-09-27 12:41:49 -070022310
22311# Whether dlopen is supported.
22312dlopen_support=$enable_dlopen
22313
22314# Whether dlopen of programs is supported.
22315dlopen_self=$enable_dlopen_self
22316
22317# Whether dlopen of statically linked programs is supported.
22318dlopen_self_static=$enable_dlopen_self_static
22319
22320# Commands to strip libraries.
22321old_striplib=$lt_old_striplib
22322striplib=$lt_striplib
22323
22324
22325# The linker used to build libraries.
22326LD=$lt_LD
22327
22328# How to create reloadable object files.
22329reload_flag=$lt_reload_flag
22330reload_cmds=$lt_reload_cmds
22331
22332# Commands used to build an old-style archive.
22333old_archive_cmds=$lt_old_archive_cmds
22334
22335# A language specific compiler.
22336CC=$lt_compiler
22337
22338# Is the compiler the GNU compiler?
22339with_gcc=$GCC
22340
22341# Compiler flag to turn off builtin functions.
22342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22343
22344# Additional compiler flags for building library objects.
22345pic_flag=$lt_lt_prog_compiler_pic
22346
22347# How to pass a linker flag through the compiler.
22348wl=$lt_lt_prog_compiler_wl
22349
22350# Compiler flag to prevent dynamic linking.
22351link_static_flag=$lt_lt_prog_compiler_static
22352
22353# Does compiler simultaneously support -c and -o options?
22354compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22355
22356# Whether or not to add -lc for building shared libraries.
22357build_libtool_need_lc=$archive_cmds_need_lc
22358
22359# Whether or not to disallow shared libs when runtime libs are static.
22360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22361
22362# Compiler flag to allow reflexive dlopens.
22363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22364
22365# Compiler flag to generate shared objects directly from archives.
22366whole_archive_flag_spec=$lt_whole_archive_flag_spec
22367
22368# Whether the compiler copes with passing no objects directly.
22369compiler_needs_object=$lt_compiler_needs_object
22370
22371# Create an old-style archive from a shared archive.
22372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22373
22374# Create a temporary old-style archive to link instead of a shared archive.
22375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22376
22377# Commands used to build a shared archive.
22378archive_cmds=$lt_archive_cmds
22379archive_expsym_cmds=$lt_archive_expsym_cmds
22380
22381# Commands used to build a loadable module if different from building
22382# a shared archive.
22383module_cmds=$lt_module_cmds
22384module_expsym_cmds=$lt_module_expsym_cmds
22385
22386# Whether we are building with GNU ld or not.
22387with_gnu_ld=$lt_with_gnu_ld
22388
22389# Flag that allows shared libraries with undefined symbols to be built.
22390allow_undefined_flag=$lt_allow_undefined_flag
22391
22392# Flag that enforces no undefined symbols.
22393no_undefined_flag=$lt_no_undefined_flag
22394
22395# Flag to hardcode \$libdir into a binary during linking.
22396# This must work even if \$libdir does not exist
22397hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22398
22399# Whether we need a single "-rpath" flag with a separated argument.
22400hardcode_libdir_separator=$lt_hardcode_libdir_separator
22401
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022402# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Nick Kralevichf73ff172014-09-27 12:41:49 -070022403# DIR into the resulting binary.
22404hardcode_direct=$hardcode_direct
22405
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022406# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Nick Kralevichf73ff172014-09-27 12:41:49 -070022407# DIR into the resulting binary and the resulting library dependency is
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022408# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Nick Kralevichf73ff172014-09-27 12:41:49 -070022409# library is relocated.
22410hardcode_direct_absolute=$hardcode_direct_absolute
22411
22412# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22413# into the resulting binary.
22414hardcode_minus_L=$hardcode_minus_L
22415
22416# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22417# into the resulting binary.
22418hardcode_shlibpath_var=$hardcode_shlibpath_var
22419
22420# Set to "yes" if building a shared library automatically hardcodes DIR
22421# into the library and all subsequent libraries and executables linked
22422# against it.
22423hardcode_automatic=$hardcode_automatic
22424
22425# Set to yes if linker adds runtime paths of dependent libraries
22426# to runtime path list.
22427inherit_rpath=$inherit_rpath
22428
22429# Whether libtool must link a program against all its dependency libraries.
22430link_all_deplibs=$link_all_deplibs
22431
22432# Set to "yes" if exported symbols are required.
22433always_export_symbols=$always_export_symbols
22434
22435# The commands to list exported symbols.
22436export_symbols_cmds=$lt_export_symbols_cmds
22437
22438# Symbols that should not be listed in the preloaded symbols.
22439exclude_expsyms=$lt_exclude_expsyms
22440
22441# Symbols that must always be exported.
22442include_expsyms=$lt_include_expsyms
22443
22444# Commands necessary for linking programs (against libraries) with templates.
22445prelink_cmds=$lt_prelink_cmds
22446
22447# Commands necessary for finishing linking programs.
22448postlink_cmds=$lt_postlink_cmds
22449
22450# Specify filename containing input files.
22451file_list_spec=$lt_file_list_spec
22452
22453# How to hardcode a shared library path into an executable.
22454hardcode_action=$hardcode_action
22455
22456# The directories searched by this compiler when creating a shared library.
22457compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22458
22459# Dependencies to place before and after the objects being linked to
22460# create a shared library.
22461predep_objects=$lt_predep_objects
22462postdep_objects=$lt_postdep_objects
22463predeps=$lt_predeps
22464postdeps=$lt_postdeps
22465
22466# The library search path used internally by the compiler when linking
22467# a shared library.
22468compiler_lib_search_path=$lt_compiler_lib_search_path
22469
22470# ### END LIBTOOL CONFIG
22471
22472_LT_EOF
22473
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022474 cat <<'_LT_EOF' >> "$cfgfile"
22475
22476# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22477
22478# func_munge_path_list VARIABLE PATH
22479# -----------------------------------
22480# VARIABLE is name of variable containing _space_ separated list of
22481# directories to be munged by the contents of PATH, which is string
22482# having a format:
22483# "DIR[:DIR]:"
22484# string "DIR[ DIR]" will be prepended to VARIABLE
22485# ":DIR[:DIR]"
22486# string "DIR[ DIR]" will be appended to VARIABLE
22487# "DIRP[:DIRP]::[DIRA:]DIRA"
22488# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22489# "DIRA[ DIRA]" will be appended to VARIABLE
22490# "DIR[:DIR]"
22491# VARIABLE will be replaced by "DIR[ DIR]"
22492func_munge_path_list ()
22493{
22494 case x$2 in
22495 x)
22496 ;;
22497 *:)
22498 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22499 ;;
22500 x:*)
22501 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22502 ;;
22503 *::*)
22504 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22505 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22506 ;;
22507 *)
22508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22509 ;;
22510 esac
22511}
22512
22513
22514# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22515func_cc_basename ()
22516{
22517 for cc_temp in $*""; do
22518 case $cc_temp in
22519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22521 \-*) ;;
22522 *) break;;
22523 esac
22524 done
22525 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22526}
22527
22528
22529# ### END FUNCTIONS SHARED WITH CONFIGURE
22530
22531_LT_EOF
22532
Nick Kralevichf73ff172014-09-27 12:41:49 -070022533 case $host_os in
22534 aix3*)
22535 cat <<\_LT_EOF >> "$cfgfile"
22536# AIX sometimes has problems with the GCC collect2 program. For some
22537# reason, if we set the COLLECT_NAMES environment variable, the problems
22538# vanish in a puff of smoke.
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022539if test set != "${COLLECT_NAMES+set}"; then
Nick Kralevichf73ff172014-09-27 12:41:49 -070022540 COLLECT_NAMES=
22541 export COLLECT_NAMES
22542fi
22543_LT_EOF
22544 ;;
22545 esac
22546
22547
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022548ltmain=$ac_aux_dir/ltmain.sh
Nick Kralevichf73ff172014-09-27 12:41:49 -070022549
22550
22551 # We use sed instead of cat because bash on DJGPP gets confused if
22552 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22553 # text mode, it properly converts lines to CR/LF. This bash problem
22554 # is reportedly fixed, but why not run on old versions too?
22555 sed '$q' "$ltmain" >> "$cfgfile" \
22556 || (rm -f "$cfgfile"; exit 1)
22557
Nick Kralevichf73ff172014-09-27 12:41:49 -070022558 mv -f "$cfgfile" "$ofile" ||
22559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22560 chmod +x "$ofile"
22561
22562
22563 cat <<_LT_EOF >> "$ofile"
22564
22565# ### BEGIN LIBTOOL TAG CONFIG: CXX
22566
22567# The linker used to build libraries.
22568LD=$lt_LD_CXX
22569
22570# How to create reloadable object files.
22571reload_flag=$lt_reload_flag_CXX
22572reload_cmds=$lt_reload_cmds_CXX
22573
22574# Commands used to build an old-style archive.
22575old_archive_cmds=$lt_old_archive_cmds_CXX
22576
22577# A language specific compiler.
22578CC=$lt_compiler_CXX
22579
22580# Is the compiler the GNU compiler?
22581with_gcc=$GCC_CXX
22582
22583# Compiler flag to turn off builtin functions.
22584no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22585
22586# Additional compiler flags for building library objects.
22587pic_flag=$lt_lt_prog_compiler_pic_CXX
22588
22589# How to pass a linker flag through the compiler.
22590wl=$lt_lt_prog_compiler_wl_CXX
22591
22592# Compiler flag to prevent dynamic linking.
22593link_static_flag=$lt_lt_prog_compiler_static_CXX
22594
22595# Does compiler simultaneously support -c and -o options?
22596compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22597
22598# Whether or not to add -lc for building shared libraries.
22599build_libtool_need_lc=$archive_cmds_need_lc_CXX
22600
22601# Whether or not to disallow shared libs when runtime libs are static.
22602allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22603
22604# Compiler flag to allow reflexive dlopens.
22605export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22606
22607# Compiler flag to generate shared objects directly from archives.
22608whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22609
22610# Whether the compiler copes with passing no objects directly.
22611compiler_needs_object=$lt_compiler_needs_object_CXX
22612
22613# Create an old-style archive from a shared archive.
22614old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22615
22616# Create a temporary old-style archive to link instead of a shared archive.
22617old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22618
22619# Commands used to build a shared archive.
22620archive_cmds=$lt_archive_cmds_CXX
22621archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22622
22623# Commands used to build a loadable module if different from building
22624# a shared archive.
22625module_cmds=$lt_module_cmds_CXX
22626module_expsym_cmds=$lt_module_expsym_cmds_CXX
22627
22628# Whether we are building with GNU ld or not.
22629with_gnu_ld=$lt_with_gnu_ld_CXX
22630
22631# Flag that allows shared libraries with undefined symbols to be built.
22632allow_undefined_flag=$lt_allow_undefined_flag_CXX
22633
22634# Flag that enforces no undefined symbols.
22635no_undefined_flag=$lt_no_undefined_flag_CXX
22636
22637# Flag to hardcode \$libdir into a binary during linking.
22638# This must work even if \$libdir does not exist
22639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22640
22641# Whether we need a single "-rpath" flag with a separated argument.
22642hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22643
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022644# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Nick Kralevichf73ff172014-09-27 12:41:49 -070022645# DIR into the resulting binary.
22646hardcode_direct=$hardcode_direct_CXX
22647
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022648# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Nick Kralevichf73ff172014-09-27 12:41:49 -070022649# DIR into the resulting binary and the resulting library dependency is
Elliott Hughes8366e8b2015-08-14 20:48:15 -070022650# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Nick Kralevichf73ff172014-09-27 12:41:49 -070022651# library is relocated.
22652hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22653
22654# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22655# into the resulting binary.
22656hardcode_minus_L=$hardcode_minus_L_CXX
22657
22658# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22659# into the resulting binary.
22660hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22661
22662# Set to "yes" if building a shared library automatically hardcodes DIR
22663# into the library and all subsequent libraries and executables linked
22664# against it.
22665hardcode_automatic=$hardcode_automatic_CXX
22666
22667# Set to yes if linker adds runtime paths of dependent libraries
22668# to runtime path list.
22669inherit_rpath=$inherit_rpath_CXX
22670
22671# Whether libtool must link a program against all its dependency libraries.
22672link_all_deplibs=$link_all_deplibs_CXX
22673
22674# Set to "yes" if exported symbols are required.
22675always_export_symbols=$always_export_symbols_CXX
22676
22677# The commands to list exported symbols.
22678export_symbols_cmds=$lt_export_symbols_cmds_CXX
22679
22680# Symbols that should not be listed in the preloaded symbols.
22681exclude_expsyms=$lt_exclude_expsyms_CXX
22682
22683# Symbols that must always be exported.
22684include_expsyms=$lt_include_expsyms_CXX
22685
22686# Commands necessary for linking programs (against libraries) with templates.
22687prelink_cmds=$lt_prelink_cmds_CXX
22688
22689# Commands necessary for finishing linking programs.
22690postlink_cmds=$lt_postlink_cmds_CXX
22691
22692# Specify filename containing input files.
22693file_list_spec=$lt_file_list_spec_CXX
22694
22695# How to hardcode a shared library path into an executable.
22696hardcode_action=$hardcode_action_CXX
22697
22698# The directories searched by this compiler when creating a shared library.
22699compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22700
22701# Dependencies to place before and after the objects being linked to
22702# create a shared library.
22703predep_objects=$lt_predep_objects_CXX
22704postdep_objects=$lt_postdep_objects_CXX
22705predeps=$lt_predeps_CXX
22706postdeps=$lt_postdeps_CXX
22707
22708# The library search path used internally by the compiler when linking
22709# a shared library.
22710compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22711
22712# ### END LIBTOOL TAG CONFIG: CXX
22713_LT_EOF
22714
22715 ;;
22716 "script-chmod":C) chmod a+x pcre-config ;;
22717 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22718
22719 esac
22720done # for ac_tag
22721
22722
22723as_fn_exit 0
22724_ACEOF
22725ac_clean_files=$ac_clean_files_save
22726
22727test $ac_write_fail = 0 ||
22728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22729
22730
22731# configure is writing to config.log, and then calls config.status.
22732# config.status does its own redirection, appending to config.log.
22733# Unfortunately, on DOS this fails, as config.log is still kept open
22734# by configure, so config.status won't be able to write to it; its
22735# output is simply discarded. So we exec the FD to /dev/null,
22736# effectively closing config.log, so it can be properly (re)opened and
22737# appended to by config.status. When coming back to configure, we
22738# need to make the FD available again.
22739if test "$no_create" != yes; then
22740 ac_cs_success=:
22741 ac_config_status_args=
22742 test "$silent" = yes &&
22743 ac_config_status_args="$ac_config_status_args --quiet"
22744 exec 5>/dev/null
22745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22746 exec 5>>config.log
22747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22748 # would make configure fail if this is the last instruction.
22749 $ac_cs_success || as_fn_exit 1
22750fi
22751if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22753$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22754fi
22755
22756
22757# Print out a nice little message after configure is run displaying the
22758# chosen options.
22759
22760ebcdic_nl_code=n/a
22761if test "$enable_ebcdic_nl25" = "yes"; then
22762 ebcdic_nl_code=0x25
22763elif test "$enable_ebcdic" = "yes"; then
22764 ebcdic_nl_code=0x15
22765fi
22766
22767cat <<EOF
22768
22769$PACKAGE-$VERSION configuration summary:
22770
22771 Install prefix .................. : ${prefix}
22772 C preprocessor .................. : ${CPP}
22773 C compiler ...................... : ${CC}
22774 C++ preprocessor ................ : ${CXXCPP}
22775 C++ compiler .................... : ${CXX}
22776 Linker .......................... : ${LD}
22777 C preprocessor flags ............ : ${CPPFLAGS}
22778 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22779 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22780 Linker flags .................... : ${LDFLAGS}
22781 Extra libraries ................. : ${LIBS}
22782
22783 Build 8 bit pcre library ........ : ${enable_pcre8}
22784 Build 16 bit pcre library ....... : ${enable_pcre16}
22785 Build 32 bit pcre library ....... : ${enable_pcre32}
22786 Build C++ library ............... : ${enable_cpp}
22787 Enable JIT compiling support .... : ${enable_jit}
22788 Enable UTF-8/16/32 support ...... : ${enable_utf}
22789 Unicode properties .............. : ${enable_unicode_properties}
22790 Newline char/sequence ........... : ${enable_newline}
22791 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22792 EBCDIC coding ................... : ${enable_ebcdic}
22793 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22794 Rebuild char tables ............. : ${enable_rebuild_chartables}
22795 Use stack recursion ............. : ${enable_stack_for_recursion}
22796 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22797 Internal link size .............. : ${with_link_size}
22798 Nested parentheses limit ........ : ${with_parens_nest_limit}
22799 Match limit ..................... : ${with_match_limit}
22800 Match limit recursion ........... : ${with_match_limit_recursion}
22801 Build shared libs ............... : ${enable_shared}
22802 Build static libs ............... : ${enable_static}
22803 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22804 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22805 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22806 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22807 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22808 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22809 Valgrind support ................ : ${enable_valgrind}
22810 Code coverage ................... : ${enable_coverage}
22811
22812EOF
22813