blob: 717e6f748c2a6eab8d043746ebd518620e1afb9a [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003# Generated by GNU Autoconf 2.69.
Emeric Vigier2f625822012-08-06 11:09:52 -04004#
5#
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -04007#
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
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500135# 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;}
Emeric Vigier2f625822012-08-06 11:09:52 -0400160if 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
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Emeric Vigier2f625822012-08-06 11:09:52 -0400195 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
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || 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 :
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500247 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
Emeric Vigier2f625822012-08-06 11:09:52 -0400266fi
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
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500367
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
Emeric Vigier2f625822012-08-06 11:09:52 -0400375# 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
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500496 # 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
Emeric Vigier2f625822012-08-06 11:09:52 -0400500 # 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.
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500534 # In both cases, we have to default to `cp -pR'.
Emeric Vigier2f625822012-08-06 11:09:52 -0400535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500536 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500540 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400541 fi
542else
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500543 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -0400544fi
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
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
Emeric Vigier2f625822012-08-06 11:09:52 -0400557
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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="src/ccrtp/rtp.h"
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
Emeric Vigier2f625822012-08-06 11:09:52 -0400636DOXY_FALSE
637DOXY_TRUE
638DOXYGEN
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500639LT_VERSION
Emeric Vigier2f625822012-08-06 11:09:52 -0400640KDOC_DIR
641WARN_FLAGS
642GNULIBS
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500643COMMONCPP_LIBS
644COMMONCPP_CFLAGS
Emeric Vigier2f625822012-08-06 11:09:52 -0400645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648FTPDIR
649MAINT
650MAINTAINER_MODE_FALSE
651MAINTAINER_MODE_TRUE
652LT_CCXX_VERSION
653LT_MINOR
654LT_MAJOR
655LT_SUBVER
656LT_RELEASE
Emeric Vigier2f625822012-08-06 11:09:52 -0400657SRTP_GCRYPT_FALSE
658SRTP_GCRYPT_TRUE
659SRTP_OPENSSL_FALSE
660SRTP_OPENSSL_TRUE
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500661LIBGCRYPT_LIBS
662LIBGCRYPT_CFLAGS
663LIBGCRYPT_CONFIG
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
Emeric Vigier2f625822012-08-06 11:09:52 -0400668am__fastdepCXX_FALSE
669am__fastdepCXX_TRUE
670CXXDEPMODE
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500674am__nodep
Emeric Vigier2f625822012-08-06 11:09:52 -0400675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686mkdir_p
687MKDIR_P
688INSTALL_STRIP_PROGRAM
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702OTOOL64
703OTOOL
704LIPO
705NMEDIT
706DSYMUTIL
707MANIFEST_TOOL
708AWK
709RANLIB
710STRIP
711ac_ct_AR
712AR
713DLLTOOL
714OBJDUMP
715LN_S
716NM
717ac_ct_DUMPBIN
718DUMPBIN
719LD
720FGREP
721EGREP
722GREP
723SED
724LIBTOOL
725CXXCPP
726ac_ct_CXX
727CXXFLAGS
728CXX
729CPP
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737target_os
738target_vendor
739target_cpu
740target
741host_os
742host_vendor
743host_cpu
744host
745build_os
746build_vendor
747build_cpu
748build
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_shared
791enable_static
792with_pic
793enable_fast_install
794with_gnu_ld
795with_sysroot
796enable_libtool_lock
797enable_dependency_tracking
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500798enable_silent_rules
Emeric Vigier2f625822012-08-06 11:09:52 -0400799enable_srtp
800with_libgcrypt_prefix
801enable_maintainer_mode
802enable_debug
803enable_profiling
804with_nana
805'
806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CPP
815CXX
816CXXFLAGS
817CCC
818CXXCPP
819PKG_CONFIG
820PKG_CONFIG_PATH
821PKG_CONFIG_LIBDIR
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500822COMMONCPP_CFLAGS
823COMMONCPP_LIBS'
Emeric Vigier2f625822012-08-06 11:09:52 -0400824
825
826# Initialize some variables set by options.
827ac_init_help=
828ac_init_version=false
829ac_unrecognized_opts=
830ac_unrecognized_sep=
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
853# (The list follows the same order as the GNU Coding Standards.)
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *=) ac_optarg= ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938"enable_$ac_useropt"
939"*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964"enable_$ac_useropt"
965"*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1158
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1208
1209 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1210Try \`$0 --help' for more information"
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1222
1223 *)
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 ;;
1230
1231 esac
1232done
1233
1234if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error $? "missing argument to $ac_option"
1237fi
1238
1239if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245fi
1246
1247# Check all directory arguments for consistency.
1248for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1252do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266done
1267
1268# There might be people who depend on the old broken behavior: `$host'
1269# used to hold the argument of --host etc.
1270# FIXME: To remove some day.
1271build=$build_alias
1272host=$host_alias
1273target=$target_alias
1274
1275# FIXME: To remove some day.
1276if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
Emeric Vigier2f625822012-08-06 11:09:52 -04001279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282fi
1283
1284ac_tool_prefix=
1285test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287test "$silent" = yes && exec 6>/dev/null
1288
1289
1290ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291ac_ls_di=`ls -di .` &&
1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error $? "working directory cannot be determined"
1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error $? "pwd does not report name of working directory"
1296
1297
1298# Find the source files, if location was not specified.
1299if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307$as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329else
1330 ac_srcdir_defaulted=no
1331fi
1332if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335fi
1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 pwd)`
1340# When building in place, set srcdir=.
1341if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343fi
1344# Remove unnecessary trailing slashes from srcdir.
1345# Double slashes in file names in object file debugging info
1346# mess up M-x gdb in Emacs.
1347case $srcdir in
1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349esac
1350for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355done
1356
1357#
1358# Report the --help message.
1359#
1360if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364\`configure' configures this package to adapt to many kinds of systems.
1365
1366Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371Defaults for the options are specified in brackets.
1372
1373Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking ...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383
1384Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390By default, \`make install' will install all the files in
1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393for instance \`--prefix=\$HOME'.
1394
1395For better control, use the options below.
1396
1397Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417_ACEOF
1418
1419 cat <<\_ACEOF
1420
1421Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434
1435 cat <<\_ACEOF
1436
1437Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001446 --enable-dependency-tracking
1447 do not reject slow dependency extractors
1448 --disable-dependency-tracking
1449 speeds up one-time build
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
Emeric Vigier2f625822012-08-06 11:09:52 -04001452 --enable-srtp enable SRTP support (default enabled)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
Emeric Vigier2f625822012-08-06 11:09:52 -04001456 --enable-debug compile for debugging
1457 --enable-profiling compile for profiling
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Emeric Vigier2f625822012-08-06 11:09:52 -04001463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-libgcrypt-prefix=PFX
1468 prefix where LIBGCRYPT is installed (optional)
1469 --with-nana use GNU nana for asserts and logging
1470
1471Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1483 PKG_CONFIG path to pkg-config utility
1484 PKG_CONFIG_PATH
1485 directories to add to pkg-config's search path
1486 PKG_CONFIG_LIBDIR
1487 path overriding pkg-config's built-in search path
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001488 COMMONCPP_CFLAGS
1489 C compiler flags for COMMONCPP, overriding pkg-config
1490 COMMONCPP_LIBS
1491 linker flags for COMMONCPP, overriding pkg-config
Emeric Vigier2f625822012-08-06 11:09:52 -04001492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to the package provider.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558 cat <<\_ACEOF
1559configure
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001560generated by GNU Autoconf 2.69
Emeric Vigier2f625822012-08-06 11:09:52 -04001561
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001562Copyright (C) 2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -04001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566 exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_cxx_try_compile LINENO
1649# ----------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_cxx_try_compile ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684} # ac_fn_cxx_try_compile
1685
1686# ac_fn_cxx_try_cpp LINENO
1687# ------------------------
1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_cxx_try_cpp ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_cxx_try_cpp
1722
1723# ac_fn_c_try_link LINENO
1724# -----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_link ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001750 test -x conftest$ac_exeext
Emeric Vigier2f625822012-08-06 11:09:52 -04001751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767} # ac_fn_c_try_link
1768
1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists and can be compiled using the include files in
1772# INCLUDES, setting the cache variable VAR accordingly.
1773ac_fn_c_check_header_compile ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784#include <$2>
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787 eval "$3=yes"
1788else
1789 eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798} # ac_fn_c_check_header_compile
1799
1800# ac_fn_c_try_run LINENO
1801# ----------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803# that executables *can* be run.
1804ac_fn_c_try_run ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>&5
1815 ac_status=$?
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818 { { case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_try") 2>&5
1825 ac_status=$?
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; }; }; then :
1828 ac_retval=0
1829else
1830 $as_echo "$as_me: program exited with status $ac_status" >&5
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=$ac_status
1835fi
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_run
1841
1842# ac_fn_c_check_func LINENO FUNC VAR
1843# ----------------------------------
1844# Tests whether FUNC exists, setting the cache variable VAR accordingly
1845ac_fn_c_check_func ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1852else
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857#define $2 innocuous_$2
1858
1859/* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below.
1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862 <limits.h> exists even on freestanding compilers. */
1863
1864#ifdef __STDC__
1865# include <limits.h>
1866#else
1867# include <assert.h>
1868#endif
1869
1870#undef $2
1871
1872/* Override any GCC internal prototype to avoid an error.
1873 Use char because int might match the return type of a GCC
1874 builtin and then its argument prototype would still apply. */
1875#ifdef __cplusplus
1876extern "C"
1877#endif
1878char $2 ();
1879/* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882#if defined __stub_$2 || defined __stub___$2
1883choke me
1884#endif
1885
1886int
1887main ()
1888{
1889return $2 ();
1890 ;
1891 return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_link "$LINENO"; then :
1895 eval "$3=yes"
1896else
1897 eval "$3=no"
1898fi
1899rm -f core conftest.err conftest.$ac_objext \
1900 conftest$ac_exeext conftest.$ac_ext
1901fi
1902eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907} # ac_fn_c_check_func
1908
1909# ac_fn_cxx_try_link LINENO
1910# -------------------------
1911# Try to link conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_cxx_try_link ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001936 test -x conftest$ac_exeext
Emeric Vigier2f625822012-08-06 11:09:52 -04001937 }; then :
1938 ac_retval=0
1939else
1940 $as_echo "$as_me: failed program was:" >&5
1941sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953} # ac_fn_cxx_try_link
1954
1955# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956# -------------------------------------------------------
1957# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958# the include files in INCLUDES and setting the cache variable VAR
1959# accordingly.
1960ac_fn_c_check_header_mongrel ()
1961{
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968fi
1969eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972else
1973 # Is the header compilable?
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975$as_echo_n "checking $2 usability... " >&6; }
1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983else
1984 ac_header_compiler=no
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988$as_echo "$ac_header_compiler" >&6; }
1989
1990# Is the header present?
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992$as_echo_n "checking $2 presence... " >&6; }
1993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999else
2000 ac_header_preproc=no
2001fi
2002rm -f conftest.err conftest.i conftest.$ac_ext
2003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004$as_echo "$ac_header_preproc" >&6; }
2005
2006# So? What about this header?
2007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ;;
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ;;
2026esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031else
2032 eval "$3=\$ac_header_compiler"
2033fi
2034eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037fi
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040} # ac_fn_c_check_header_mongrel
2041cat >config.log <<_ACEOF
2042This file contains any messages produced by compilers while
2043running configure, to aid debugging if configure makes a mistake.
2044
2045It was created by $as_me, which was
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002046generated by GNU Autoconf 2.69. Invocation command line was
Emeric Vigier2f625822012-08-06 11:09:52 -04002047
2048 $ $0 $@
2049
2050_ACEOF
2051exec 5>>config.log
2052{
2053cat <<_ASUNAME
2054## --------- ##
2055## Platform. ##
2056## --------- ##
2057
2058hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066
2067/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074
2075_ASUNAME
2076
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2083 done
2084IFS=$as_save_IFS
2085
2086} >&5
2087
2088cat >&5 <<_ACEOF
2089
2090
2091## ----------- ##
2092## Core tests. ##
2093## ----------- ##
2094
2095_ACEOF
2096
2097
2098# Keep a trace of the command line.
2099# Strip out --no-create and --no-recursion so they do not pile up.
2100# Strip out --silent because we don't want to record it for future runs.
2101# Also quote any args containing shell meta-characters.
2102# Make two passes to allow for proper duplicate-argument suppression.
2103ac_configure_args=
2104ac_configure_args0=
2105ac_configure_args1=
2106ac_must_keep_next=false
2107for ac_pass in 1 2
2108do
2109 for ac_arg
2110 do
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
2116 *\'*)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 2)
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2125 else
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2134 ;;
2135 -* ) ac_must_keep_next=true ;;
2136 esac
2137 fi
2138 as_fn_append ac_configure_args " '$ac_arg'"
2139 ;;
2140 esac
2141 done
2142done
2143{ ac_configure_args0=; unset ac_configure_args0;}
2144{ ac_configure_args1=; unset ac_configure_args1;}
2145
2146# When interrupted or exit'd, cleanup temporary files, and complete
2147# config.log. We remove comments because anyway the quotes in there
2148# would cause problems or look ugly.
2149# WARNING: Use '\'' to represent an apostrophe within the trap.
2150# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2153 {
2154 echo
2155
2156 $as_echo "## ---------------- ##
2157## Cache variables. ##
2158## ---------------- ##"
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2161(
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2184 *)
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 ;;
2187 esac |
2188 sort
2189)
2190 echo
2191
2192 $as_echo "## ----------------- ##
2193## Output variables. ##
2194## ----------------- ##"
2195 echo
2196 for ac_var in $ac_subst_vars
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208## File substitutions. ##
2209## ------------------- ##"
2210 echo
2211 for ac_var in $ac_subst_files
2212 do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 $as_echo "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2220 fi
2221
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2224## confdefs.h. ##
2225## ----------- ##"
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237' 0
2238for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240done
2241ac_signal=0
2242
2243# confdefs.h avoids OS command line length limits that DEFS can exceed.
2244rm -f -r conftest* confdefs.h
2245
2246$as_echo "/* confdefs.h */" > confdefs.h
2247
2248# Predefined preprocessor variables.
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_NAME "$PACKAGE_NAME"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256_ACEOF
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_VERSION "$PACKAGE_VERSION"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_STRING "$PACKAGE_STRING"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268_ACEOF
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_URL "$PACKAGE_URL"
2272_ACEOF
2273
2274
2275# Let the site file select an alternate cache file if it wants to.
2276# Prefer an explicitly selected file to automatically selected ones.
2277ac_site_file1=NONE
2278ac_site_file2=NONE
2279if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2285 esac
2286elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2289else
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2292fi
2293for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294do
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2300 . "$ac_site_file" \
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303as_fn_error $? "failed to load site script $ac_site_file
2304See \`config.log' for more details" "$LINENO" 5; }
2305 fi
2306done
2307
2308if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313$as_echo "$as_me: loading cache $cache_file" >&6;}
2314 case $cache_file in
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2317 esac
2318 fi
2319else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321$as_echo "$as_me: creating cache $cache_file" >&6;}
2322 >$cache_file
2323fi
2324
2325# Check that the precious variables saved in the cache have kept the same
2326# value.
2327ac_cache_corrupted=false
2328for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2334 set,)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,set)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,);;
2343 *)
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2361 fi;;
2362 esac
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2365 case $ac_new_val in
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2368 esac
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 esac
2373 fi
2374done
2375if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381fi
2382## -------------------- ##
2383## Main body of script. ##
2384## -------------------- ##
2385
2386ac_ext=c
2387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
2392
2393
2394cfg_options=""
2395if test -z "$*" ; then
2396 if test -f ~/.configure ; then
2397 cfg_options=`grep ^ccrtp: ~/.configure | sed -e s/^ccrtp://`
2398 elif test -f /etc/configure.conf ; then
2399 cfg_options=`grep ^ccrtp: /etc/configure.conf | sed -e s/^ccrtp://`
2400 fi
2401fi
2402
2403if test ! -z "$cfg_options" ; then
2404 echo "using ~/.configure defaults...$cfg_options"
2405 case "$SHELL" in
2406 */bash*)
2407 exec $SHELL $0 $cfg_options
2408 exit -1
2409 ;;
2410 esac
2411 exec $0 $cfg_options
2412 exit -1
2413fi
2414
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002415VERSION="2.0.4"
2416REQUIRES="5.0.0"
2417LT_VERSION="2:2:0"
Emeric Vigier2f625822012-08-06 11:09:52 -04002418ac_aux_dir=
2419for ac_dir in autoconf "$srcdir"/autoconf; do
2420 if test -f "$ac_dir/install-sh"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/install-sh -c"
2423 break
2424 elif test -f "$ac_dir/install.sh"; then
2425 ac_aux_dir=$ac_dir
2426 ac_install_sh="$ac_aux_dir/install.sh -c"
2427 break
2428 elif test -f "$ac_dir/shtool"; then
2429 ac_aux_dir=$ac_dir
2430 ac_install_sh="$ac_aux_dir/shtool install -c"
2431 break
2432 fi
2433done
2434if test -z "$ac_aux_dir"; then
2435 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2436fi
2437
2438# These three variables are undocumented and unsupported,
2439# and are intended to be withdrawn in a future Autoconf release.
2440# They can cause serious problems if a builder's source tree is in a directory
2441# whose full name contains unusual characters.
2442ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2443ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2444ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2445
2446
2447# Make sure we can run config.sub.
2448$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2450
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2452$as_echo_n "checking build system type... " >&6; }
2453if ${ac_cv_build+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455else
2456 ac_build_alias=$build_alias
2457test "x$ac_build_alias" = x &&
2458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2459test "x$ac_build_alias" = x &&
2460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2461ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2463
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2466$as_echo "$ac_cv_build" >&6; }
2467case $ac_cv_build in
2468*-*-*) ;;
2469*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2470esac
2471build=$ac_cv_build
2472ac_save_IFS=$IFS; IFS='-'
2473set x $ac_cv_build
2474shift
2475build_cpu=$1
2476build_vendor=$2
2477shift; shift
2478# Remember, the first character of IFS is used to create $*,
2479# except with old shells:
2480build_os=$*
2481IFS=$ac_save_IFS
2482case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2483
2484
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2486$as_echo_n "checking host system type... " >&6; }
2487if ${ac_cv_host+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489else
2490 if test "x$host_alias" = x; then
2491 ac_cv_host=$ac_cv_build
2492else
2493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2495fi
2496
2497fi
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2499$as_echo "$ac_cv_host" >&6; }
2500case $ac_cv_host in
2501*-*-*) ;;
2502*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2503esac
2504host=$ac_cv_host
2505ac_save_IFS=$IFS; IFS='-'
2506set x $ac_cv_host
2507shift
2508host_cpu=$1
2509host_vendor=$2
2510shift; shift
2511# Remember, the first character of IFS is used to create $*,
2512# except with old shells:
2513host_os=$*
2514IFS=$ac_save_IFS
2515case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2516
2517
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2519$as_echo_n "checking target system type... " >&6; }
2520if ${ac_cv_target+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522else
2523 if test "x$target_alias" = x; then
2524 ac_cv_target=$ac_cv_host
2525else
2526 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2528fi
2529
2530fi
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2532$as_echo "$ac_cv_target" >&6; }
2533case $ac_cv_target in
2534*-*-*) ;;
2535*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2536esac
2537target=$ac_cv_target
2538ac_save_IFS=$IFS; IFS='-'
2539set x $ac_cv_target
2540shift
2541target_cpu=$1
2542target_vendor=$2
2543shift; shift
2544# Remember, the first character of IFS is used to create $*,
2545# except with old shells:
2546target_os=$*
2547IFS=$ac_save_IFS
2548case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2549
2550
2551# The aliases save the names the user supplied, while $host etc.
2552# will get canonicalized.
2553test -n "$target_alias" &&
2554 test "$program_prefix$program_suffix$program_transform_name" = \
2555 NONENONEs,x,x, &&
2556 program_prefix=${target_alias}-
2557
2558ac_ext=c
2559ac_cpp='$CPP $CPPFLAGS'
2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
2568if ${ac_cv_prog_CC+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585done
2586 done
2587IFS=$as_save_IFS
2588
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594$as_echo "$CC" >&6; }
2595else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597$as_echo "no" >&6; }
2598fi
2599
2600
2601fi
2602if test -z "$ac_cv_prog_CC"; then
2603 ac_ct_CC=$CC
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605set dummy gcc; ac_word=$2
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if ${ac_cv_prog_ac_ct_CC+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002621 ac_cv_prog_ac_ct_CC="gcc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625done
2626 done
2627IFS=$as_save_IFS
2628
2629fi
2630fi
2631ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632if test -n "$ac_ct_CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2634$as_echo "$ac_ct_CC" >&6; }
2635else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637$as_echo "no" >&6; }
2638fi
2639
2640 if test "x$ac_ct_CC" = x; then
2641 CC=""
2642 else
2643 case $cross_compiling:$ac_tool_warned in
2644yes:)
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647ac_tool_warned=yes ;;
2648esac
2649 CC=$ac_ct_CC
2650 fi
2651else
2652 CC="$ac_cv_prog_CC"
2653fi
2654
2655if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2658set dummy ${ac_tool_prefix}cc; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_CC+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002674 ac_cv_prog_CC="${ac_tool_prefix}cc"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679 done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684CC=$ac_cv_prog_CC
2685if test -n "$CC"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687$as_echo "$CC" >&6; }
2688else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693
2694 fi
2695fi
2696if test -z "$CC"; then
2697 # Extract the first word of "cc", so it can be a program name with args.
2698set dummy cc; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703else
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2706else
2707 ac_prog_rejected=no
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2716 ac_prog_rejected=yes
2717 continue
2718 fi
2719 ac_cv_prog_CC="cc"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723done
2724 done
2725IFS=$as_save_IFS
2726
2727if test $ac_prog_rejected = yes; then
2728 # We found a bogon in the path, so make sure we never use it.
2729 set dummy $ac_cv_prog_CC
2730 shift
2731 if test $# != 0; then
2732 # We chose a different compiler from the bogus one.
2733 # However, it has the same basename, so the bogon will be chosen
2734 # first if we set CC to just the basename; use the full file name.
2735 shift
2736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2737 fi
2738fi
2739fi
2740fi
2741CC=$ac_cv_prog_CC
2742if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744$as_echo "$CC" >&6; }
2745else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750
2751fi
2752if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 for ac_prog in cl.exe
2755 do
2756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778 done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786$as_echo "$CC" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793 test -n "$CC" && break
2794 done
2795fi
2796if test -z "$CC"; then
2797 ac_ct_CC=$CC
2798 for ac_prog in cl.exe
2799do
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801set dummy $ac_prog; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if ${ac_cv_prog_ac_ct_CC+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806else
2807 if test -n "$ac_ct_CC"; then
2808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05002816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04002817 ac_cv_prog_ac_ct_CC="$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821done
2822 done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828if test -n "$ac_ct_CC"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2830$as_echo "$ac_ct_CC" >&6; }
2831else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836
2837 test -n "$ac_ct_CC" && break
2838done
2839
2840 if test "x$ac_ct_CC" = x; then
2841 CC=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849 CC=$ac_ct_CC
2850 fi
2851fi
2852
2853fi
2854
2855
2856test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858as_fn_error $? "no acceptable C compiler found in \$PATH
2859See \`config.log' for more details" "$LINENO" 5; }
2860
2861# Provide some information about the compiler.
2862$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2863set X $ac_compile
2864ac_compiler=$2
2865for ac_option in --version -v -V -qversion; do
2866 { { ac_try="$ac_compiler $ac_option >&5"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
2871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872$as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2874 ac_status=$?
2875 if test -s conftest.err; then
2876 sed '10a\
2877... rest of stderr output deleted ...
2878 10q' conftest.err >conftest.er1
2879 cat conftest.er1 >&5
2880 fi
2881 rm -f conftest.er1 conftest.err
2882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883 test $ac_status = 0; }
2884done
2885
2886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897ac_clean_files_save=$ac_clean_files
2898ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2899# Try to create an executable without -o first, disregard a.out.
2900# It will help us diagnose broken compilers, and finding out an intuition
2901# of exeext.
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2903$as_echo_n "checking whether the C compiler works... " >&6; }
2904ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905
2906# The possible output files:
2907ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2908
2909ac_rmfiles=
2910for ac_file in $ac_files
2911do
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2914 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2915 esac
2916done
2917rm -f $ac_rmfiles
2918
2919if { { ac_try="$ac_link_default"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926 (eval "$ac_link_default") 2>&5
2927 ac_status=$?
2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929 test $ac_status = 0; }; then :
2930 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2931# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2932# in a Makefile. We should not override ac_cv_exeext if it was cached,
2933# so that the user can short-circuit this test for compilers unknown to
2934# Autoconf.
2935for ac_file in $ac_files ''
2936do
2937 test -f "$ac_file" || continue
2938 case $ac_file in
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2940 ;;
2941 [ab].out )
2942 # We found the default executable, but exeext='' is most
2943 # certainly right.
2944 break;;
2945 *.* )
2946 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2947 then :; else
2948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 fi
2950 # We set ac_cv_exeext here because the later test for it is not
2951 # safe: cross compilers may not add the suffix if given an `-o'
2952 # argument, so we may need to know it at that point already.
2953 # Even if this section looks crufty: it has the advantage of
2954 # actually working.
2955 break;;
2956 * )
2957 break;;
2958 esac
2959done
2960test "$ac_cv_exeext" = no && ac_cv_exeext=
2961
2962else
2963 ac_file=''
2964fi
2965if test -z "$ac_file"; then :
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968$as_echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973as_fn_error 77 "C compiler cannot create executables
2974See \`config.log' for more details" "$LINENO" 5; }
2975else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977$as_echo "yes" >&6; }
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2980$as_echo_n "checking for C compiler default output file name... " >&6; }
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2982$as_echo "$ac_file" >&6; }
2983ac_exeext=$ac_cv_exeext
2984
2985rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2986ac_clean_files=$ac_clean_files_save
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2988$as_echo_n "checking for suffix of executables... " >&6; }
2989if { { ac_try="$ac_link"
2990case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993esac
2994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995$as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_link") 2>&5
2997 ac_status=$?
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }; then :
3000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3001# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3002# work properly (i.e., refer to `conftest.exe'), while it won't with
3003# `rm'.
3004for ac_file in conftest.exe conftest conftest.*; do
3005 test -f "$ac_file" || continue
3006 case $ac_file in
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3009 break;;
3010 * ) break;;
3011 esac
3012done
3013else
3014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3017See \`config.log' for more details" "$LINENO" 5; }
3018fi
3019rm -f conftest conftest$ac_cv_exeext
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3021$as_echo "$ac_cv_exeext" >&6; }
3022
3023rm -f conftest.$ac_ext
3024EXEEXT=$ac_cv_exeext
3025ac_exeext=$EXEEXT
3026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027/* end confdefs.h. */
3028#include <stdio.h>
3029int
3030main ()
3031{
3032FILE *f = fopen ("conftest.out", "w");
3033 return ferror (f) || fclose (f) != 0;
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039ac_clean_files="$ac_clean_files conftest.out"
3040# Check that the compiler produces executables we can run. If not, either
3041# the compiler is broken, or we cross compile.
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3043$as_echo_n "checking whether we are cross compiling... " >&6; }
3044if test "$cross_compiling" != yes; then
3045 { { ac_try="$ac_link"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051$as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link") 2>&5
3053 ac_status=$?
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }
3056 if { ac_try='./conftest$ac_cv_exeext'
3057 { { case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_try") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; }; then
3067 cross_compiling=no
3068 else
3069 if test "$cross_compiling" = maybe; then
3070 cross_compiling=yes
3071 else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074as_fn_error $? "cannot run C compiled programs.
3075If you meant to cross compile, use \`--host'.
3076See \`config.log' for more details" "$LINENO" 5; }
3077 fi
3078 fi
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3081$as_echo "$cross_compiling" >&6; }
3082
3083rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3084ac_clean_files=$ac_clean_files_save
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3086$as_echo_n "checking for suffix of object files... " >&6; }
3087if ${ac_cv_objext+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089else
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.o conftest.obj
3102if { { ac_try="$ac_compile"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108$as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_compile") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 for ac_file in conftest.o conftest.obj conftest.*; do
3114 test -f "$ac_file" || continue;
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3118 break;;
3119 esac
3120done
3121else
3122 $as_echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127as_fn_error $? "cannot compute suffix of object files: cannot compile
3128See \`config.log' for more details" "$LINENO" 5; }
3129fi
3130rm -f conftest.$ac_cv_objext conftest.$ac_ext
3131fi
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3133$as_echo "$ac_cv_objext" >&6; }
3134OBJEXT=$ac_cv_objext
3135ac_objext=$OBJEXT
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3137$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3138if ${ac_cv_c_compiler_gnu+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140else
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147#ifndef __GNUC__
3148 choke me
3149#endif
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_compiler_gnu=yes
3157else
3158 ac_compiler_gnu=no
3159fi
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161ac_cv_c_compiler_gnu=$ac_compiler_gnu
3162
3163fi
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3165$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3166if test $ac_compiler_gnu = yes; then
3167 GCC=yes
3168else
3169 GCC=
3170fi
3171ac_test_CFLAGS=${CFLAGS+set}
3172ac_save_CFLAGS=$CFLAGS
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3174$as_echo_n "checking whether $CC accepts -g... " >&6; }
3175if ${ac_cv_prog_cc_g+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177else
3178 ac_save_c_werror_flag=$ac_c_werror_flag
3179 ac_c_werror_flag=yes
3180 ac_cv_prog_cc_g=no
3181 CFLAGS="-g"
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193if ac_fn_c_try_compile "$LINENO"; then :
3194 ac_cv_prog_cc_g=yes
3195else
3196 CFLAGS=""
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199
3200int
3201main ()
3202{
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208if ac_fn_c_try_compile "$LINENO"; then :
3209
3210else
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3212 CFLAGS="-g"
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224if ac_fn_c_try_compile "$LINENO"; then :
3225 ac_cv_prog_cc_g=yes
3226fi
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228fi
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230fi
3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3235$as_echo "$ac_cv_prog_cc_g" >&6; }
3236if test "$ac_test_CFLAGS" = set; then
3237 CFLAGS=$ac_save_CFLAGS
3238elif test $ac_cv_prog_cc_g = yes; then
3239 if test "$GCC" = yes; then
3240 CFLAGS="-g -O2"
3241 else
3242 CFLAGS="-g"
3243 fi
3244else
3245 if test "$GCC" = yes; then
3246 CFLAGS="-O2"
3247 else
3248 CFLAGS=
3249 fi
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3252$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3253if ${ac_cv_prog_cc_c89+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255else
3256 ac_cv_prog_cc_c89=no
3257ac_save_CC=$CC
3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h. */
3260#include <stdarg.h>
3261#include <stdio.h>
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003262struct stat;
Emeric Vigier2f625822012-08-06 11:09:52 -04003263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264struct buf { int x; };
3265FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266static char *e (p, i)
3267 char **p;
3268 int i;
3269{
3270 return p[i];
3271}
3272static char *f (char * (*g) (char **, int), char **p, ...)
3273{
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280}
3281
3282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3293#define FOO(x) 'x'
3294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295
3296int test (int i, double x);
3297struct s1 {int (*f) (int a);};
3298struct s2 {int (*f) (double a);};
3299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300int argc;
3301char **argv;
3302int
3303main ()
3304{
3305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312do
3313 CC="$ac_save_CC $ac_arg"
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
3316fi
3317rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319done
3320rm -f conftest.$ac_ext
3321CC=$ac_save_CC
3322
3323fi
3324# AC_CACHE_VAL
3325case "x$ac_cv_prog_cc_c89" in
3326 x)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328$as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331$as_echo "unsupported" >&6; } ;;
3332 *)
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3336esac
3337if test "x$ac_cv_prog_cc_c89" != xno; then :
3338
3339fi
3340
3341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3353$as_echo_n "checking how to run the C preprocessor... " >&6; }
3354# On Suns, sometimes $CPP names a directory.
3355if test -n "$CPP" && test -d "$CPP"; then
3356 CPP=
3357fi
3358if test -z "$CPP"; then
3359 if ${ac_cv_prog_CPP+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361else
3362 # Double quotes because CPP needs to be expanded
3363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 do
3365 ac_preproc_ok=false
3366for ac_c_preproc_warn_flag in '' yes
3367do
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
3381 Syntax error
3382_ACEOF
3383if ac_fn_c_try_cpp "$LINENO"; then :
3384
3385else
3386 # Broken: fails on valid input.
3387continue
3388fi
3389rm -f conftest.err conftest.i conftest.$ac_ext
3390
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h. */
3395#include <ac_nonexistent.h>
3396_ACEOF
3397if ac_fn_c_try_cpp "$LINENO"; then :
3398 # Broken: success on invalid input.
3399continue
3400else
3401 # Passes both tests.
3402ac_preproc_ok=:
3403break
3404fi
3405rm -f conftest.err conftest.i conftest.$ac_ext
3406
3407done
3408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409rm -f conftest.i conftest.err conftest.$ac_ext
3410if $ac_preproc_ok; then :
3411 break
3412fi
3413
3414 done
3415 ac_cv_prog_CPP=$CPP
3416
3417fi
3418 CPP=$ac_cv_prog_CPP
3419else
3420 ac_cv_prog_CPP=$CPP
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3423$as_echo "$CPP" >&6; }
3424ac_preproc_ok=false
3425for ac_c_preproc_warn_flag in '' yes
3426do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h. */
3435#ifdef __STDC__
3436# include <limits.h>
3437#else
3438# include <assert.h>
3439#endif
3440 Syntax error
3441_ACEOF
3442if ac_fn_c_try_cpp "$LINENO"; then :
3443
3444else
3445 # Broken: fails on valid input.
3446continue
3447fi
3448rm -f conftest.err conftest.i conftest.$ac_ext
3449
3450 # OK, works on sane cases. Now check whether nonexistent headers
3451 # can be detected and how.
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h. */
3454#include <ac_nonexistent.h>
3455_ACEOF
3456if ac_fn_c_try_cpp "$LINENO"; then :
3457 # Broken: success on invalid input.
3458continue
3459else
3460 # Passes both tests.
3461ac_preproc_ok=:
3462break
3463fi
3464rm -f conftest.err conftest.i conftest.$ac_ext
3465
3466done
3467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468rm -f conftest.i conftest.err conftest.$ac_ext
3469if $ac_preproc_ok; then :
3470
3471else
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3475See \`config.log' for more details" "$LINENO" 5; }
3476fi
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484ac_ext=cpp
3485ac_cpp='$CXXCPP $CPPFLAGS'
3486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489if test -z "$CXX"; then
3490 if test -n "$CCC"; then
3491 CXX=$CCC
3492 else
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3495 do
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499$as_echo_n "checking for $ac_word... " >&6; }
3500if ${ac_cv_prog_CXX+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502else
3503 if test -n "$CXX"; then
3504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003513 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518 done
3519IFS=$as_save_IFS
3520
3521fi
3522fi
3523CXX=$ac_cv_prog_CXX
3524if test -n "$CXX"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3526$as_echo "$CXX" >&6; }
3527else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533 test -n "$CXX" && break
3534 done
3535fi
3536if test -z "$CXX"; then
3537 ac_ct_CXX=$CXX
3538 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3539do
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541set dummy $ac_prog; ac_word=$2
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
3544if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546else
3547 if test -n "$ac_ct_CXX"; then
3548 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003557 ac_cv_prog_ac_ct_CXX="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561done
3562 done
3563IFS=$as_save_IFS
3564
3565fi
3566fi
3567ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3568if test -n "$ac_ct_CXX"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3570$as_echo "$ac_ct_CXX" >&6; }
3571else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574fi
3575
3576
3577 test -n "$ac_ct_CXX" && break
3578done
3579
3580 if test "x$ac_ct_CXX" = x; then
3581 CXX="g++"
3582 else
3583 case $cross_compiling:$ac_tool_warned in
3584yes:)
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587ac_tool_warned=yes ;;
3588esac
3589 CXX=$ac_ct_CXX
3590 fi
3591fi
3592
3593 fi
3594fi
3595# Provide some information about the compiler.
3596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3597set X $ac_compile
3598ac_compiler=$2
3599for ac_option in --version -v -V -qversion; do
3600 { { ac_try="$ac_compiler $ac_option >&5"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3608 ac_status=$?
3609 if test -s conftest.err; then
3610 sed '10a\
3611... rest of stderr output deleted ...
3612 10q' conftest.err >conftest.er1
3613 cat conftest.er1 >&5
3614 fi
3615 rm -f conftest.er1 conftest.err
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3618done
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3621$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3622if ${ac_cv_cxx_compiler_gnu+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631#ifndef __GNUC__
3632 choke me
3633#endif
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639if ac_fn_cxx_try_compile "$LINENO"; then :
3640 ac_compiler_gnu=yes
3641else
3642 ac_compiler_gnu=no
3643fi
3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3646
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3649$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3650if test $ac_compiler_gnu = yes; then
3651 GXX=yes
3652else
3653 GXX=
3654fi
3655ac_test_CXXFLAGS=${CXXFLAGS+set}
3656ac_save_CXXFLAGS=$CXXFLAGS
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3658$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3659if ${ac_cv_prog_cxx_g+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661else
3662 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3663 ac_cxx_werror_flag=yes
3664 ac_cv_prog_cxx_g=no
3665 CXXFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668
3669int
3670main ()
3671{
3672
3673 ;
3674 return 0;
3675}
3676_ACEOF
3677if ac_fn_cxx_try_compile "$LINENO"; then :
3678 ac_cv_prog_cxx_g=yes
3679else
3680 CXXFLAGS=""
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692if ac_fn_cxx_try_compile "$LINENO"; then :
3693
3694else
3695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3696 CXXFLAGS="-g"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699
3700int
3701main ()
3702{
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708if ac_fn_cxx_try_compile "$LINENO"; then :
3709 ac_cv_prog_cxx_g=yes
3710fi
3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712fi
3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3717fi
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3719$as_echo "$ac_cv_prog_cxx_g" >&6; }
3720if test "$ac_test_CXXFLAGS" = set; then
3721 CXXFLAGS=$ac_save_CXXFLAGS
3722elif test $ac_cv_prog_cxx_g = yes; then
3723 if test "$GXX" = yes; then
3724 CXXFLAGS="-g -O2"
3725 else
3726 CXXFLAGS="-g"
3727 fi
3728else
3729 if test "$GXX" = yes; then
3730 CXXFLAGS="-O2"
3731 else
3732 CXXFLAGS=
3733 fi
3734fi
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741ac_ext=cpp
3742ac_cpp='$CXXCPP $CPPFLAGS'
3743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3747$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3748if test -z "$CXXCPP"; then
3749 if ${ac_cv_prog_CXXCPP+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751else
3752 # Double quotes because CXXCPP needs to be expanded
3753 for CXXCPP in "$CXX -E" "/lib/cpp"
3754 do
3755 ac_preproc_ok=false
3756for ac_cxx_preproc_warn_flag in '' yes
3757do
3758 # Use a header file that comes with gcc, so configuring glibc
3759 # with a fresh cross-compiler works.
3760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 # <limits.h> exists even on freestanding compilers.
3762 # On the NeXT, cc -E runs the code through the compiler's parser,
3763 # not just through cpp. "Syntax error" is here to catch this case.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766#ifdef __STDC__
3767# include <limits.h>
3768#else
3769# include <assert.h>
3770#endif
3771 Syntax error
3772_ACEOF
3773if ac_fn_cxx_try_cpp "$LINENO"; then :
3774
3775else
3776 # Broken: fails on valid input.
3777continue
3778fi
3779rm -f conftest.err conftest.i conftest.$ac_ext
3780
3781 # OK, works on sane cases. Now check whether nonexistent headers
3782 # can be detected and how.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
3785#include <ac_nonexistent.h>
3786_ACEOF
3787if ac_fn_cxx_try_cpp "$LINENO"; then :
3788 # Broken: success on invalid input.
3789continue
3790else
3791 # Passes both tests.
3792ac_preproc_ok=:
3793break
3794fi
3795rm -f conftest.err conftest.i conftest.$ac_ext
3796
3797done
3798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799rm -f conftest.i conftest.err conftest.$ac_ext
3800if $ac_preproc_ok; then :
3801 break
3802fi
3803
3804 done
3805 ac_cv_prog_CXXCPP=$CXXCPP
3806
3807fi
3808 CXXCPP=$ac_cv_prog_CXXCPP
3809else
3810 ac_cv_prog_CXXCPP=$CXXCPP
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3813$as_echo "$CXXCPP" >&6; }
3814ac_preproc_ok=false
3815for ac_cxx_preproc_warn_flag in '' yes
3816do
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h. */
3825#ifdef __STDC__
3826# include <limits.h>
3827#else
3828# include <assert.h>
3829#endif
3830 Syntax error
3831_ACEOF
3832if ac_fn_cxx_try_cpp "$LINENO"; then :
3833
3834else
3835 # Broken: fails on valid input.
3836continue
3837fi
3838rm -f conftest.err conftest.i conftest.$ac_ext
3839
3840 # OK, works on sane cases. Now check whether nonexistent headers
3841 # can be detected and how.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h. */
3844#include <ac_nonexistent.h>
3845_ACEOF
3846if ac_fn_cxx_try_cpp "$LINENO"; then :
3847 # Broken: success on invalid input.
3848continue
3849else
3850 # Passes both tests.
3851ac_preproc_ok=:
3852break
3853fi
3854rm -f conftest.err conftest.i conftest.$ac_ext
3855
3856done
3857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858rm -f conftest.i conftest.err conftest.$ac_ext
3859if $ac_preproc_ok; then :
3860
3861else
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3865See \`config.log' for more details" "$LINENO" 5; }
3866fi
3867
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874ac_ext=cpp
3875ac_cpp='$CXXCPP $CPPFLAGS'
3876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3879if test -z "$CXX"; then
3880 if test -n "$CCC"; then
3881 CXX=$CCC
3882 else
3883 if test -n "$ac_tool_prefix"; then
3884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3885 do
3886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
3890if ${ac_cv_prog_CXX+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892else
3893 if test -n "$CXX"; then
3894 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003903 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913CXX=$ac_cv_prog_CXX
3914if test -n "$CXX"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3916$as_echo "$CXX" >&6; }
3917else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923 test -n "$CXX" && break
3924 done
3925fi
3926if test -z "$CXX"; then
3927 ac_ct_CXX=$CXX
3928 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3929do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
3934if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$ac_ct_CXX"; then
3938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05003946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04003947 ac_cv_prog_ac_ct_CXX="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3958if test -n "$ac_ct_CXX"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3960$as_echo "$ac_ct_CXX" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967 test -n "$ac_ct_CXX" && break
3968done
3969
3970 if test "x$ac_ct_CXX" = x; then
3971 CXX="g++"
3972 else
3973 case $cross_compiling:$ac_tool_warned in
3974yes:)
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3977ac_tool_warned=yes ;;
3978esac
3979 CXX=$ac_ct_CXX
3980 fi
3981fi
3982
3983 fi
3984fi
3985# Provide some information about the compiler.
3986$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3987set X $ac_compile
3988ac_compiler=$2
3989for ac_option in --version -v -V -qversion; do
3990 { { ac_try="$ac_compiler $ac_option >&5"
3991case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994esac
3995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996$as_echo "$ac_try_echo"; } >&5
3997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3998 ac_status=$?
3999 if test -s conftest.err; then
4000 sed '10a\
4001... rest of stderr output deleted ...
4002 10q' conftest.err >conftest.er1
4003 cat conftest.er1 >&5
4004 fi
4005 rm -f conftest.er1 conftest.err
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008done
4009
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4011$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4012if ${ac_cv_cxx_compiler_gnu+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014else
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h. */
4017
4018int
4019main ()
4020{
4021#ifndef __GNUC__
4022 choke me
4023#endif
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029if ac_fn_cxx_try_compile "$LINENO"; then :
4030 ac_compiler_gnu=yes
4031else
4032 ac_compiler_gnu=no
4033fi
4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4036
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4039$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4040if test $ac_compiler_gnu = yes; then
4041 GXX=yes
4042else
4043 GXX=
4044fi
4045ac_test_CXXFLAGS=${CXXFLAGS+set}
4046ac_save_CXXFLAGS=$CXXFLAGS
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4048$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4049if ${ac_cv_prog_cxx_g+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051else
4052 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4053 ac_cxx_werror_flag=yes
4054 ac_cv_prog_cxx_g=no
4055 CXXFLAGS="-g"
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h. */
4058
4059int
4060main ()
4061{
4062
4063 ;
4064 return 0;
4065}
4066_ACEOF
4067if ac_fn_cxx_try_compile "$LINENO"; then :
4068 ac_cv_prog_cxx_g=yes
4069else
4070 CXXFLAGS=""
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072/* end confdefs.h. */
4073
4074int
4075main ()
4076{
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082if ac_fn_cxx_try_compile "$LINENO"; then :
4083
4084else
4085 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4086 CXXFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h. */
4089
4090int
4091main ()
4092{
4093
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098if ac_fn_cxx_try_compile "$LINENO"; then :
4099 ac_cv_prog_cxx_g=yes
4100fi
4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104fi
4105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4109$as_echo "$ac_cv_prog_cxx_g" >&6; }
4110if test "$ac_test_CXXFLAGS" = set; then
4111 CXXFLAGS=$ac_save_CXXFLAGS
4112elif test $ac_cv_prog_cxx_g = yes; then
4113 if test "$GXX" = yes; then
4114 CXXFLAGS="-g -O2"
4115 else
4116 CXXFLAGS="-g"
4117 fi
4118else
4119 if test "$GXX" = yes; then
4120 CXXFLAGS="-O2"
4121 else
4122 CXXFLAGS=
4123 fi
4124fi
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131# OST_PROG_CC_POSIX
4132case `pwd` in
4133 *\ * | *\ *)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4135$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4136esac
4137
4138
4139
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004140macro_version='2.4.2'
4141macro_revision='1.3337'
Emeric Vigier2f625822012-08-06 11:09:52 -04004142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155ltmain="$ac_aux_dir/ltmain.sh"
4156
4157# Backslashify metacharacters that are still active within
4158# double-quoted strings.
4159sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4160
4161# Same as above, but do not quote variable references.
4162double_quote_subst='s/\(["`\\]\)/\\\1/g'
4163
4164# Sed substitution to delay expansion of an escaped shell variable in a
4165# double_quote_subst'ed string.
4166delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4167
4168# Sed substitution to delay expansion of an escaped single quote.
4169delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4170
4171# Sed substitution to avoid accidental globbing in evaled expressions
4172no_glob_subst='s/\*/\\\*/g'
4173
4174ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4175ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4179$as_echo_n "checking how to print strings... " >&6; }
4180# Test print first, because it will be a builtin if present.
4181if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4182 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4183 ECHO='print -r --'
4184elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4185 ECHO='printf %s\n'
4186else
4187 # Use this function as a fallback that always works.
4188 func_fallback_echo ()
4189 {
4190 eval 'cat <<_LTECHO_EOF
4191$1
4192_LTECHO_EOF'
4193 }
4194 ECHO='func_fallback_echo'
4195fi
4196
4197# func_echo_all arg...
4198# Invoke $ECHO with all args, space-separated.
4199func_echo_all ()
4200{
4201 $ECHO ""
4202}
4203
4204case "$ECHO" in
4205 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4206$as_echo "printf" >&6; } ;;
4207 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4208$as_echo "print -r" >&6; } ;;
4209 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4210$as_echo "cat" >&6; } ;;
4211esac
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4227$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4228if ${ac_cv_path_SED+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230else
4231 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4232 for ac_i in 1 2 3 4 5 6 7; do
4233 ac_script="$ac_script$as_nl$ac_script"
4234 done
4235 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4236 { ac_script=; unset ac_script;}
4237 if test -z "$SED"; then
4238 ac_path_SED_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in sed gsed; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004248 as_fn_executable_p "$ac_path_SED" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004249# Check for GNU ac_path_SED and select it if it is found.
4250 # Check for GNU $ac_path_SED
4251case `"$ac_path_SED" --version 2>&1` in
4252*GNU*)
4253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4254*)
4255 ac_count=0
4256 $as_echo_n 0123456789 >"conftest.in"
4257 while :
4258 do
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo '' >> "conftest.nl"
4263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 as_fn_arith $ac_count + 1 && ac_count=$as_val
4266 if test $ac_count -gt ${ac_path_SED_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_SED="$ac_path_SED"
4269 ac_path_SED_max=$ac_count
4270 fi
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4273 done
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275esac
4276
4277 $ac_path_SED_found && break 3
4278 done
4279 done
4280 done
4281IFS=$as_save_IFS
4282 if test -z "$ac_cv_path_SED"; then
4283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4284 fi
4285else
4286 ac_cv_path_SED=$SED
4287fi
4288
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4291$as_echo "$ac_cv_path_SED" >&6; }
4292 SED="$ac_cv_path_SED"
4293 rm -f conftest.sed
4294
4295test -z "$SED" && SED=sed
4296Xsed="$SED -e 1s/^X//"
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4309$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4310if ${ac_cv_path_GREP+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 if test -z "$GREP"; then
4314 ac_path_GREP_found=false
4315 # Loop through the user's path and test for each of PROGNAME-LIST
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_prog in grep ggrep; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004324 as_fn_executable_p "$ac_path_GREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004325# Check for GNU ac_path_GREP and select it if it is found.
4326 # Check for GNU $ac_path_GREP
4327case `"$ac_path_GREP" --version 2>&1` in
4328*GNU*)
4329 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4330*)
4331 ac_count=0
4332 $as_echo_n 0123456789 >"conftest.in"
4333 while :
4334 do
4335 cat "conftest.in" "conftest.in" >"conftest.tmp"
4336 mv "conftest.tmp" "conftest.in"
4337 cp "conftest.in" "conftest.nl"
4338 $as_echo 'GREP' >> "conftest.nl"
4339 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341 as_fn_arith $ac_count + 1 && ac_count=$as_val
4342 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4343 # Best one so far, save it but keep looking for a better one
4344 ac_cv_path_GREP="$ac_path_GREP"
4345 ac_path_GREP_max=$ac_count
4346 fi
4347 # 10*(2^10) chars as input seems more than enough
4348 test $ac_count -gt 10 && break
4349 done
4350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351esac
4352
4353 $ac_path_GREP_found && break 3
4354 done
4355 done
4356 done
4357IFS=$as_save_IFS
4358 if test -z "$ac_cv_path_GREP"; then
4359 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4360 fi
4361else
4362 ac_cv_path_GREP=$GREP
4363fi
4364
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4367$as_echo "$ac_cv_path_GREP" >&6; }
4368 GREP="$ac_cv_path_GREP"
4369
4370
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4372$as_echo_n "checking for egrep... " >&6; }
4373if ${ac_cv_path_EGREP+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375else
4376 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4377 then ac_cv_path_EGREP="$GREP -E"
4378 else
4379 if test -z "$EGREP"; then
4380 ac_path_EGREP_found=false
4381 # Loop through the user's path and test for each of PROGNAME-LIST
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_prog in egrep; do
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004390 as_fn_executable_p "$ac_path_EGREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004391# Check for GNU ac_path_EGREP and select it if it is found.
4392 # Check for GNU $ac_path_EGREP
4393case `"$ac_path_EGREP" --version 2>&1` in
4394*GNU*)
4395 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4396*)
4397 ac_count=0
4398 $as_echo_n 0123456789 >"conftest.in"
4399 while :
4400 do
4401 cat "conftest.in" "conftest.in" >"conftest.tmp"
4402 mv "conftest.tmp" "conftest.in"
4403 cp "conftest.in" "conftest.nl"
4404 $as_echo 'EGREP' >> "conftest.nl"
4405 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407 as_fn_arith $ac_count + 1 && ac_count=$as_val
4408 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4409 # Best one so far, save it but keep looking for a better one
4410 ac_cv_path_EGREP="$ac_path_EGREP"
4411 ac_path_EGREP_max=$ac_count
4412 fi
4413 # 10*(2^10) chars as input seems more than enough
4414 test $ac_count -gt 10 && break
4415 done
4416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417esac
4418
4419 $ac_path_EGREP_found && break 3
4420 done
4421 done
4422 done
4423IFS=$as_save_IFS
4424 if test -z "$ac_cv_path_EGREP"; then
4425 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 fi
4427else
4428 ac_cv_path_EGREP=$EGREP
4429fi
4430
4431 fi
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4434$as_echo "$ac_cv_path_EGREP" >&6; }
4435 EGREP="$ac_cv_path_EGREP"
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4439$as_echo_n "checking for fgrep... " >&6; }
4440if ${ac_cv_path_FGREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4444 then ac_cv_path_FGREP="$GREP -F"
4445 else
4446 if test -z "$FGREP"; then
4447 ac_path_FGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in fgrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004457 as_fn_executable_p "$ac_path_FGREP" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -04004458# Check for GNU ac_path_FGREP and select it if it is found.
4459 # Check for GNU $ac_path_FGREP
4460case `"$ac_path_FGREP" --version 2>&1` in
4461*GNU*)
4462 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4463*)
4464 ac_count=0
4465 $as_echo_n 0123456789 >"conftest.in"
4466 while :
4467 do
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'FGREP' >> "conftest.nl"
4472 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_FGREP="$ac_path_FGREP"
4478 ac_path_FGREP_max=$ac_count
4479 fi
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4482 done
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484esac
4485
4486 $ac_path_FGREP_found && break 3
4487 done
4488 done
4489 done
4490IFS=$as_save_IFS
4491 if test -z "$ac_cv_path_FGREP"; then
4492 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 fi
4494else
4495 ac_cv_path_FGREP=$FGREP
4496fi
4497
4498 fi
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4501$as_echo "$ac_cv_path_FGREP" >&6; }
4502 FGREP="$ac_cv_path_FGREP"
4503
4504
4505test -z "$GREP" && GREP=grep
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525# Check whether --with-gnu-ld was given.
4526if test "${with_gnu_ld+set}" = set; then :
4527 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4528else
4529 with_gnu_ld=no
4530fi
4531
4532ac_prog=ld
4533if test "$GCC" = yes; then
4534 # Check if gcc -print-prog-name=ld gives a path.
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4536$as_echo_n "checking for ld used by $CC... " >&6; }
4537 case $host in
4538 *-*-mingw*)
4539 # gcc leaves a trailing carriage return which upsets mingw
4540 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4541 *)
4542 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4543 esac
4544 case $ac_prog in
4545 # Accept absolute paths.
4546 [\\/]* | ?:[\\/]*)
4547 re_direlt='/[^/][^/]*/\.\./'
4548 # Canonicalize the pathname of ld
4549 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4550 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4551 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4552 done
4553 test -z "$LD" && LD="$ac_prog"
4554 ;;
4555 "")
4556 # If it fails, then pretend we aren't using GCC.
4557 ac_prog=ld
4558 ;;
4559 *)
4560 # If it is relative, then search for the first ld in PATH.
4561 with_gnu_ld=unknown
4562 ;;
4563 esac
4564elif test "$with_gnu_ld" = yes; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4566$as_echo_n "checking for GNU ld... " >&6; }
4567else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4569$as_echo_n "checking for non-GNU ld... " >&6; }
4570fi
4571if ${lt_cv_path_LD+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573else
4574 if test -z "$LD"; then
4575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4576 for ac_dir in $PATH; do
4577 IFS="$lt_save_ifs"
4578 test -z "$ac_dir" && ac_dir=.
4579 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4580 lt_cv_path_LD="$ac_dir/$ac_prog"
4581 # Check to see if the program is GNU ld. I'd rather use --version,
4582 # but apparently some variants of GNU ld only accept -v.
4583 # Break only if it was the GNU/non-GNU ld that we prefer.
4584 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4585 *GNU* | *'with BFD'*)
4586 test "$with_gnu_ld" != no && break
4587 ;;
4588 *)
4589 test "$with_gnu_ld" != yes && break
4590 ;;
4591 esac
4592 fi
4593 done
4594 IFS="$lt_save_ifs"
4595else
4596 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4597fi
4598fi
4599
4600LD="$lt_cv_path_LD"
4601if test -n "$LD"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4603$as_echo "$LD" >&6; }
4604else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606$as_echo "no" >&6; }
4607fi
4608test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4610$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4611if ${lt_cv_prog_gnu_ld+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613else
4614 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4615case `$LD -v 2>&1 </dev/null` in
4616*GNU* | *'with BFD'*)
4617 lt_cv_prog_gnu_ld=yes
4618 ;;
4619*)
4620 lt_cv_prog_gnu_ld=no
4621 ;;
4622esac
4623fi
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4625$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4626with_gnu_ld=$lt_cv_prog_gnu_ld
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4637$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4638if ${lt_cv_path_NM+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$NM"; then
4642 # Let the user override the test.
4643 lt_cv_path_NM="$NM"
4644else
4645 lt_nm_to_check="${ac_tool_prefix}nm"
4646 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4647 lt_nm_to_check="$lt_nm_to_check nm"
4648 fi
4649 for lt_tmp_nm in $lt_nm_to_check; do
4650 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4651 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4652 IFS="$lt_save_ifs"
4653 test -z "$ac_dir" && ac_dir=.
4654 tmp_nm="$ac_dir/$lt_tmp_nm"
4655 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4656 # Check to see if the nm accepts a BSD-compat flag.
4657 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4658 # nm: unknown option "B" ignored
4659 # Tru64's nm complains that /dev/null is an invalid object file
4660 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4661 */dev/null* | *'Invalid file or object type'*)
4662 lt_cv_path_NM="$tmp_nm -B"
4663 break
4664 ;;
4665 *)
4666 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4667 */dev/null*)
4668 lt_cv_path_NM="$tmp_nm -p"
4669 break
4670 ;;
4671 *)
4672 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4673 continue # so that we can try to find one that supports BSD flags
4674 ;;
4675 esac
4676 ;;
4677 esac
4678 fi
4679 done
4680 IFS="$lt_save_ifs"
4681 done
4682 : ${lt_cv_path_NM=no}
4683fi
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4686$as_echo "$lt_cv_path_NM" >&6; }
4687if test "$lt_cv_path_NM" != "no"; then
4688 NM="$lt_cv_path_NM"
4689else
4690 # Didn't find any BSD compatible name lister, look for dumpbin.
4691 if test -n "$DUMPBIN"; then :
4692 # Let the user override the test.
4693 else
4694 if test -n "$ac_tool_prefix"; then
4695 for ac_prog in dumpbin "link -dump"
4696 do
4697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700$as_echo_n "checking for $ac_word... " >&6; }
4701if ${ac_cv_prog_DUMPBIN+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 if test -n "$DUMPBIN"; then
4705 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04004714 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718done
4719 done
4720IFS=$as_save_IFS
4721
4722fi
4723fi
4724DUMPBIN=$ac_cv_prog_DUMPBIN
4725if test -n "$DUMPBIN"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4727$as_echo "$DUMPBIN" >&6; }
4728else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
4731fi
4732
4733
4734 test -n "$DUMPBIN" && break
4735 done
4736fi
4737if test -z "$DUMPBIN"; then
4738 ac_ct_DUMPBIN=$DUMPBIN
4739 for ac_prog in dumpbin "link -dump"
4740do
4741 # Extract the first word of "$ac_prog", so it can be a program name with args.
4742set dummy $ac_prog; ac_word=$2
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744$as_echo_n "checking for $ac_word... " >&6; }
4745if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747else
4748 if test -n "$ac_ct_DUMPBIN"; then
4749 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04004758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762done
4763 done
4764IFS=$as_save_IFS
4765
4766fi
4767fi
4768ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4769if test -n "$ac_ct_DUMPBIN"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4771$as_echo "$ac_ct_DUMPBIN" >&6; }
4772else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
4775fi
4776
4777
4778 test -n "$ac_ct_DUMPBIN" && break
4779done
4780
4781 if test "x$ac_ct_DUMPBIN" = x; then
4782 DUMPBIN=":"
4783 else
4784 case $cross_compiling:$ac_tool_warned in
4785yes:)
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788ac_tool_warned=yes ;;
4789esac
4790 DUMPBIN=$ac_ct_DUMPBIN
4791 fi
4792fi
4793
4794 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4795 *COFF*)
4796 DUMPBIN="$DUMPBIN -symbols"
4797 ;;
4798 *)
4799 DUMPBIN=:
4800 ;;
4801 esac
4802 fi
4803
4804 if test "$DUMPBIN" != ":"; then
4805 NM="$DUMPBIN"
4806 fi
4807fi
4808test -z "$NM" && NM=nm
4809
4810
4811
4812
4813
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4816$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4817if ${lt_cv_nm_interface+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819else
4820 lt_cv_nm_interface="BSD nm"
4821 echo "int some_variable = 0;" > conftest.$ac_ext
4822 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4823 (eval "$ac_compile" 2>conftest.err)
4824 cat conftest.err >&5
4825 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4827 cat conftest.err >&5
4828 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4829 cat conftest.out >&5
4830 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4831 lt_cv_nm_interface="MS dumpbin"
4832 fi
4833 rm -f conftest*
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4836$as_echo "$lt_cv_nm_interface" >&6; }
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4839$as_echo_n "checking whether ln -s works... " >&6; }
4840LN_S=$as_ln_s
4841if test "$LN_S" = "ln -s"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4843$as_echo "yes" >&6; }
4844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4846$as_echo "no, using $LN_S" >&6; }
4847fi
4848
4849# find the maximum length of command line arguments
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4851$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4852if ${lt_cv_sys_max_cmd_len+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854else
4855 i=0
4856 teststring="ABCD"
4857
4858 case $build_os in
4859 msdosdjgpp*)
4860 # On DJGPP, this test can blow up pretty badly due to problems in libc
4861 # (any single argument exceeding 2000 bytes causes a buffer overrun
4862 # during glob expansion). Even if it were fixed, the result of this
4863 # check would be larger than it should be.
4864 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4865 ;;
4866
4867 gnu*)
4868 # Under GNU Hurd, this test is not required because there is
4869 # no limit to the length of command line arguments.
4870 # Libtool will interpret -1 as no limit whatsoever
4871 lt_cv_sys_max_cmd_len=-1;
4872 ;;
4873
4874 cygwin* | mingw* | cegcc*)
4875 # On Win9x/ME, this test blows up -- it succeeds, but takes
4876 # about 5 minutes as the teststring grows exponentially.
4877 # Worse, since 9x/ME are not pre-emptively multitasking,
4878 # you end up with a "frozen" computer, even though with patience
4879 # the test eventually succeeds (with a max line length of 256k).
4880 # Instead, let's just punt: use the minimum linelength reported by
4881 # all of the supported platforms: 8192 (on NT/2K/XP).
4882 lt_cv_sys_max_cmd_len=8192;
4883 ;;
4884
4885 mint*)
4886 # On MiNT this can take a long time and run out of memory.
4887 lt_cv_sys_max_cmd_len=8192;
4888 ;;
4889
4890 amigaos*)
4891 # On AmigaOS with pdksh, this test takes hours, literally.
4892 # So we just punt and use a minimum line length of 8192.
4893 lt_cv_sys_max_cmd_len=8192;
4894 ;;
4895
4896 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4897 # This has been around since 386BSD, at least. Likely further.
4898 if test -x /sbin/sysctl; then
4899 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4900 elif test -x /usr/sbin/sysctl; then
4901 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4902 else
4903 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4904 fi
4905 # And add a safety zone
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4908 ;;
4909
4910 interix*)
4911 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4912 lt_cv_sys_max_cmd_len=196608
4913 ;;
4914
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004915 os2*)
4916 # The test takes a long time on OS/2.
4917 lt_cv_sys_max_cmd_len=8192
4918 ;;
4919
Emeric Vigier2f625822012-08-06 11:09:52 -04004920 osf*)
4921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4923 # nice to cause kernel panics so lets avoid the loop below.
4924 # First set a reasonable default.
4925 lt_cv_sys_max_cmd_len=16384
4926 #
4927 if test -x /sbin/sysconfig; then
4928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4929 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4930 esac
4931 fi
4932 ;;
4933 sco3.2v5*)
4934 lt_cv_sys_max_cmd_len=102400
4935 ;;
4936 sysv5* | sco5v6* | sysv4.2uw2*)
4937 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4938 if test -n "$kargmax"; then
4939 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4940 else
4941 lt_cv_sys_max_cmd_len=32768
4942 fi
4943 ;;
4944 *)
4945 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4946 if test -n "$lt_cv_sys_max_cmd_len"; then
4947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4949 else
4950 # Make teststring a little bigger before we do anything with it.
4951 # a 1K string should be a reasonable start.
4952 for i in 1 2 3 4 5 6 7 8 ; do
4953 teststring=$teststring$teststring
4954 done
4955 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4956 # If test is not a shell built-in, we'll probably end up computing a
4957 # maximum length that is only half of the actual maximum length, but
4958 # we can't tell.
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004959 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
Emeric Vigier2f625822012-08-06 11:09:52 -04004960 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4961 test $i != 17 # 1/2 MB should be enough
4962 do
4963 i=`expr $i + 1`
4964 teststring=$teststring$teststring
4965 done
4966 # Only check the string length outside the loop.
4967 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4968 teststring=
4969 # Add a significant safety factor because C++ compilers can tack on
4970 # massive amounts of additional arguments before passing them to the
4971 # linker. It appears as though 1/2 is a usable value.
4972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4973 fi
4974 ;;
4975 esac
4976
4977fi
4978
4979if test -n $lt_cv_sys_max_cmd_len ; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4981$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4982else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4984$as_echo "none" >&6; }
4985fi
4986max_cmd_len=$lt_cv_sys_max_cmd_len
4987
4988
4989
4990
4991
4992
4993: ${CP="cp -f"}
4994: ${MV="mv -f"}
4995: ${RM="rm -f"}
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4998$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4999# Try some XSI features
5000xsi_shell=no
5001( _lt_dummy="a/b/c"
5002 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5003 = c,a/b,b/c, \
5004 && eval 'test $(( 1 + 1 )) -eq 2 \
5005 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5006 && xsi_shell=yes
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5008$as_echo "$xsi_shell" >&6; }
5009
5010
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5012$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5013lt_shell_append=no
5014( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5015 >/dev/null 2>&1 \
5016 && lt_shell_append=yes
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5018$as_echo "$lt_shell_append" >&6; }
5019
5020
5021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022 lt_unset=unset
5023else
5024 lt_unset=false
5025fi
5026
5027
5028
5029
5030
5031# test EBCDIC or ASCII
5032case `echo X|tr X '\101'` in
5033 A) # ASCII based system
5034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5035 lt_SP2NL='tr \040 \012'
5036 lt_NL2SP='tr \015\012 \040\040'
5037 ;;
5038 *) # EBCDIC based system
5039 lt_SP2NL='tr \100 \n'
5040 lt_NL2SP='tr \r\n \100\100'
5041 ;;
5042esac
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5053$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5054if ${lt_cv_to_host_file_cmd+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 case $host in
5058 *-*-mingw* )
5059 case $build in
5060 *-*-mingw* ) # actually msys
5061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5062 ;;
5063 *-*-cygwin* )
5064 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5065 ;;
5066 * ) # otherwise, assume *nix
5067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5068 ;;
5069 esac
5070 ;;
5071 *-*-cygwin* )
5072 case $build in
5073 *-*-mingw* ) # actually msys
5074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5075 ;;
5076 *-*-cygwin* )
5077 lt_cv_to_host_file_cmd=func_convert_file_noop
5078 ;;
5079 * ) # otherwise, assume *nix
5080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5081 ;;
5082 esac
5083 ;;
5084 * ) # unhandled hosts (and "normal" native builds)
5085 lt_cv_to_host_file_cmd=func_convert_file_noop
5086 ;;
5087esac
5088
5089fi
5090
5091to_host_file_cmd=$lt_cv_to_host_file_cmd
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5093$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5094
5095
5096
5097
5098
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5100$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5101if ${lt_cv_to_tool_file_cmd+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103else
5104 #assume ordinary cross tools, or native build.
5105lt_cv_to_tool_file_cmd=func_convert_file_noop
5106case $host in
5107 *-*-mingw* )
5108 case $build in
5109 *-*-mingw* ) # actually msys
5110 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5111 ;;
5112 esac
5113 ;;
5114esac
5115
5116fi
5117
5118to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5120$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5121
5122
5123
5124
5125
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5127$as_echo_n "checking for $LD option to reload object files... " >&6; }
5128if ${lt_cv_ld_reload_flag+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 lt_cv_ld_reload_flag='-r'
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5134$as_echo "$lt_cv_ld_reload_flag" >&6; }
5135reload_flag=$lt_cv_ld_reload_flag
5136case $reload_flag in
5137"" | " "*) ;;
5138*) reload_flag=" $reload_flag" ;;
5139esac
5140reload_cmds='$LD$reload_flag -o $output$reload_objs'
5141case $host_os in
5142 cygwin* | mingw* | pw32* | cegcc*)
5143 if test "$GCC" != yes; then
5144 reload_cmds=false
5145 fi
5146 ;;
5147 darwin*)
5148 if test "$GCC" = yes; then
5149 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5150 else
5151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5152 fi
5153 ;;
5154esac
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}objdump; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
5169if ${ac_cv_prog_OBJDUMP+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171else
5172 if test -n "$OBJDUMP"; then
5173 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005182 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186done
5187 done
5188IFS=$as_save_IFS
5189
5190fi
5191fi
5192OBJDUMP=$ac_cv_prog_OBJDUMP
5193if test -n "$OBJDUMP"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5195$as_echo "$OBJDUMP" >&6; }
5196else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
5199fi
5200
5201
5202fi
5203if test -z "$ac_cv_prog_OBJDUMP"; then
5204 ac_ct_OBJDUMP=$OBJDUMP
5205 # Extract the first word of "objdump", so it can be a program name with args.
5206set dummy objdump; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 if test -n "$ac_ct_OBJDUMP"; then
5213 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005222 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226done
5227 done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5233if test -n "$ac_ct_OBJDUMP"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5235$as_echo "$ac_ct_OBJDUMP" >&6; }
5236else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241 if test "x$ac_ct_OBJDUMP" = x; then
5242 OBJDUMP="false"
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245yes:)
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248ac_tool_warned=yes ;;
5249esac
5250 OBJDUMP=$ac_ct_OBJDUMP
5251 fi
5252else
5253 OBJDUMP="$ac_cv_prog_OBJDUMP"
5254fi
5255
5256test -z "$OBJDUMP" && OBJDUMP=objdump
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5267$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5268if ${lt_cv_deplibs_check_method+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270else
5271 lt_cv_file_magic_cmd='$MAGIC_CMD'
5272lt_cv_file_magic_test_file=
5273lt_cv_deplibs_check_method='unknown'
5274# Need to set the preceding variable on all platforms that support
5275# interlibrary dependencies.
5276# 'none' -- dependencies not supported.
5277# `unknown' -- same as none, but documents that we really don't know.
5278# 'pass_all' -- all dependencies passed with no checks.
5279# 'test_compile' -- check by making test program.
5280# 'file_magic [[regex]]' -- check by looking for files in library path
5281# which responds to the $file_magic_cmd with a given extended regex.
5282# If you have `file' or equivalent on your system and you're not sure
5283# whether `pass_all' will *always* work, you probably want this one.
5284
5285case $host_os in
5286aix[4-9]*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290beos*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294bsdi[45]*)
5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5296 lt_cv_file_magic_cmd='/usr/bin/file -L'
5297 lt_cv_file_magic_test_file=/shlib/libc.so
5298 ;;
5299
5300cygwin*)
5301 # func_win32_libid is a shell function defined in ltmain.sh
5302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5303 lt_cv_file_magic_cmd='func_win32_libid'
5304 ;;
5305
5306mingw* | pw32*)
5307 # Base MSYS/MinGW do not provide the 'file' command needed by
5308 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5309 # unless we find 'file', for example because we are cross-compiling.
5310 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5311 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5313 lt_cv_file_magic_cmd='func_win32_libid'
5314 else
5315 # Keep this pattern in sync with the one in func_win32_libid.
5316 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5317 lt_cv_file_magic_cmd='$OBJDUMP -f'
5318 fi
5319 ;;
5320
5321cegcc*)
5322 # use the weaker test based on 'objdump'. See mingw*.
5323 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5324 lt_cv_file_magic_cmd='$OBJDUMP -f'
5325 ;;
5326
5327darwin* | rhapsody*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331freebsd* | dragonfly*)
5332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5333 case $host_cpu in
5334 i*86 )
5335 # Not sure whether the presence of OpenBSD here was a mistake.
5336 # Let's accept both of them until this is cleared up.
5337 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5338 lt_cv_file_magic_cmd=/usr/bin/file
5339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5340 ;;
5341 esac
5342 else
5343 lt_cv_deplibs_check_method=pass_all
5344 fi
5345 ;;
5346
5347gnu*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351haiku*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355hpux10.20* | hpux11*)
5356 lt_cv_file_magic_cmd=/usr/bin/file
5357 case $host_cpu in
5358 ia64*)
5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5360 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5361 ;;
5362 hppa*64*)
5363 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]'
5364 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5365 ;;
5366 *)
5367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5368 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5369 ;;
5370 esac
5371 ;;
5372
5373interix[3-9]*)
5374 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5376 ;;
5377
5378irix5* | irix6* | nonstopux*)
5379 case $LD in
5380 *-32|*"-32 ") libmagic=32-bit;;
5381 *-n32|*"-n32 ") libmagic=N32;;
5382 *-64|*"-64 ") libmagic=64-bit;;
5383 *) libmagic=never-match;;
5384 esac
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005388# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -04005389linux* | k*bsd*-gnu | kopensolaris*-gnu)
5390 lt_cv_deplibs_check_method=pass_all
5391 ;;
5392
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005393netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04005394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5396 else
5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5398 fi
5399 ;;
5400
5401newos6*)
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5403 lt_cv_file_magic_cmd=/usr/bin/file
5404 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5405 ;;
5406
5407*nto* | *qnx*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411openbsd*)
5412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5414 else
5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5416 fi
5417 ;;
5418
5419osf3* | osf4* | osf5*)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422
5423rdos*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426
5427solaris*)
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430
5431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
5434
5435sysv4 | sysv4.3*)
5436 case $host_vendor in
5437 motorola)
5438 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]'
5439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5440 ;;
5441 ncr)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444 sequent)
5445 lt_cv_file_magic_cmd='/bin/file'
5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5447 ;;
5448 sni)
5449 lt_cv_file_magic_cmd='/bin/file'
5450 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5451 lt_cv_file_magic_test_file=/lib/libc.so
5452 ;;
5453 siemens)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456 pc)
5457 lt_cv_deplibs_check_method=pass_all
5458 ;;
5459 esac
5460 ;;
5461
5462tpf*)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465esac
5466
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5469$as_echo "$lt_cv_deplibs_check_method" >&6; }
5470
5471file_magic_glob=
5472want_nocaseglob=no
5473if test "$build" = "$host"; then
5474 case $host_os in
5475 mingw* | pw32*)
5476 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5477 want_nocaseglob=yes
5478 else
5479 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5480 fi
5481 ;;
5482 esac
5483fi
5484
5485file_magic_cmd=$lt_cv_file_magic_cmd
5486deplibs_check_method=$lt_cv_deplibs_check_method
5487test -z "$deplibs_check_method" && deplibs_check_method=unknown
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if ${ac_cv_prog_DLLTOOL+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 if test -n "$DLLTOOL"; then
5519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005528 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532done
5533 done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538DLLTOOL=$ac_cv_prog_DLLTOOL
5539if test -n "$DLLTOOL"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5541$as_echo "$DLLTOOL" >&6; }
5542else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548fi
5549if test -z "$ac_cv_prog_DLLTOOL"; then
5550 ac_ct_DLLTOOL=$DLLTOOL
5551 # Extract the first word of "dlltool", so it can be a program name with args.
5552set dummy dlltool; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557else
5558 if test -n "$ac_ct_DLLTOOL"; then
5559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005568 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5571 fi
5572done
5573 done
5574IFS=$as_save_IFS
5575
5576fi
5577fi
5578ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5579if test -n "$ac_ct_DLLTOOL"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5581$as_echo "$ac_ct_DLLTOOL" >&6; }
5582else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584$as_echo "no" >&6; }
5585fi
5586
5587 if test "x$ac_ct_DLLTOOL" = x; then
5588 DLLTOOL="false"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591yes:)
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594ac_tool_warned=yes ;;
5595esac
5596 DLLTOOL=$ac_ct_DLLTOOL
5597 fi
5598else
5599 DLLTOOL="$ac_cv_prog_DLLTOOL"
5600fi
5601
5602test -z "$DLLTOOL" && DLLTOOL=dlltool
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5614$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5615if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617else
5618 lt_cv_sharedlib_from_linklib_cmd='unknown'
5619
5620case $host_os in
5621cygwin* | mingw* | pw32* | cegcc*)
5622 # two different shell functions defined in ltmain.sh
5623 # decide which to use based on capabilities of $DLLTOOL
5624 case `$DLLTOOL --help 2>&1` in
5625 *--identify-strict*)
5626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5627 ;;
5628 *)
5629 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5630 ;;
5631 esac
5632 ;;
5633*)
5634 # fallback: assume linklib IS sharedlib
5635 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5636 ;;
5637esac
5638
5639fi
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5641$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5642sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5643test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5644
5645
5646
5647
5648
5649
5650
5651
5652if test -n "$ac_tool_prefix"; then
5653 for ac_prog in ar
5654 do
5655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658$as_echo_n "checking for $ac_word... " >&6; }
5659if ${ac_cv_prog_AR+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661else
5662 if test -n "$AR"; then
5663 ac_cv_prog_AR="$AR" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005672 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676done
5677 done
5678IFS=$as_save_IFS
5679
5680fi
5681fi
5682AR=$ac_cv_prog_AR
5683if test -n "$AR"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5685$as_echo "$AR" >&6; }
5686else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691
5692 test -n "$AR" && break
5693 done
5694fi
5695if test -z "$AR"; then
5696 ac_ct_AR=$AR
5697 for ac_prog in ar
5698do
5699 # Extract the first word of "$ac_prog", so it can be a program name with args.
5700set dummy $ac_prog; ac_word=$2
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
5703if ${ac_cv_prog_ac_ct_AR+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705else
5706 if test -n "$ac_ct_AR"; then
5707 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005716 ac_cv_prog_ac_ct_AR="$ac_prog"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721 done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726ac_ct_AR=$ac_cv_prog_ac_ct_AR
5727if test -n "$ac_ct_AR"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5729$as_echo "$ac_ct_AR" >&6; }
5730else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733fi
5734
5735
5736 test -n "$ac_ct_AR" && break
5737done
5738
5739 if test "x$ac_ct_AR" = x; then
5740 AR="false"
5741 else
5742 case $cross_compiling:$ac_tool_warned in
5743yes:)
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5746ac_tool_warned=yes ;;
5747esac
5748 AR=$ac_ct_AR
5749 fi
5750fi
5751
5752: ${AR=ar}
5753: ${AR_FLAGS=cru}
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5766$as_echo_n "checking for archiver @FILE support... " >&6; }
5767if ${lt_cv_ar_at_file+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769else
5770 lt_cv_ar_at_file=no
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h. */
5773
5774int
5775main ()
5776{
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783 echo conftest.$ac_objext > conftest.lst
5784 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5786 (eval $lt_ar_try) 2>&5
5787 ac_status=$?
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }
5790 if test "$ac_status" -eq 0; then
5791 # Ensure the archiver fails upon bogus file names.
5792 rm -f conftest.$ac_objext libconftest.a
5793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5794 (eval $lt_ar_try) 2>&5
5795 ac_status=$?
5796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797 test $ac_status = 0; }
5798 if test "$ac_status" -ne 0; then
5799 lt_cv_ar_at_file=@
5800 fi
5801 fi
5802 rm -f conftest.* libconftest.a
5803
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806
5807fi
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5809$as_echo "$lt_cv_ar_at_file" >&6; }
5810
5811if test "x$lt_cv_ar_at_file" = xno; then
5812 archiver_list_spec=
5813else
5814 archiver_list_spec=$lt_cv_ar_at_file
5815fi
5816
5817
5818
5819
5820
5821
5822
5823if test -n "$ac_tool_prefix"; then
5824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5825set dummy ${ac_tool_prefix}strip; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if ${ac_cv_prog_STRIP+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$STRIP"; then
5832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851STRIP=$ac_cv_prog_STRIP
5852if test -n "$STRIP"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5854$as_echo "$STRIP" >&6; }
5855else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860
5861fi
5862if test -z "$ac_cv_prog_STRIP"; then
5863 ac_ct_STRIP=$STRIP
5864 # Extract the first word of "strip", so it can be a program name with args.
5865set dummy strip; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
5868if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$ac_ct_STRIP"; then
5872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005881 ac_cv_prog_ac_ct_STRIP="strip"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5892if test -n "$ac_ct_STRIP"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5894$as_echo "$ac_ct_STRIP" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900 if test "x$ac_ct_STRIP" = x; then
5901 STRIP=":"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909 STRIP=$ac_ct_STRIP
5910 fi
5911else
5912 STRIP="$ac_cv_prog_STRIP"
5913fi
5914
5915test -z "$STRIP" && STRIP=:
5916
5917
5918
5919
5920
5921
5922if test -n "$ac_tool_prefix"; then
5923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5924set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if ${ac_cv_prog_RANLIB+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$RANLIB"; then
5931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005940 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950RANLIB=$ac_cv_prog_RANLIB
5951if test -n "$RANLIB"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5953$as_echo "$RANLIB" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960fi
5961if test -z "$ac_cv_prog_RANLIB"; then
5962 ac_ct_RANLIB=$RANLIB
5963 # Extract the first word of "ranlib", so it can be a program name with args.
5964set dummy ranlib; ac_word=$2
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966$as_echo_n "checking for $ac_word... " >&6; }
5967if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969else
5970 if test -n "$ac_ct_RANLIB"; then
5971 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05005979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04005980 ac_cv_prog_ac_ct_RANLIB="ranlib"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985 done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5991if test -n "$ac_ct_RANLIB"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5993$as_echo "$ac_ct_RANLIB" >&6; }
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997fi
5998
5999 if test "x$ac_ct_RANLIB" = x; then
6000 RANLIB=":"
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003yes:)
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006ac_tool_warned=yes ;;
6007esac
6008 RANLIB=$ac_ct_RANLIB
6009 fi
6010else
6011 RANLIB="$ac_cv_prog_RANLIB"
6012fi
6013
6014test -z "$RANLIB" && RANLIB=:
6015
6016
6017
6018
6019
6020
6021# Determine commands to create old-style static archives.
6022old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6023old_postinstall_cmds='chmod 644 $oldlib'
6024old_postuninstall_cmds=
6025
6026if test -n "$RANLIB"; then
6027 case $host_os in
6028 openbsd*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006030 ;;
6031 *)
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006033 ;;
6034 esac
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006035 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Emeric Vigier2f625822012-08-06 11:09:52 -04006036fi
6037
6038case $host_os in
6039 darwin*)
6040 lock_old_archive_extraction=yes ;;
6041 *)
6042 lock_old_archive_extraction=no ;;
6043esac
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065for ac_prog in gawk mawk nawk awk
6066do
6067 # Extract the first word of "$ac_prog", so it can be a program name with args.
6068set dummy $ac_prog; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_AWK+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$AWK"; then
6075 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006084 ac_cv_prog_AWK="$ac_prog"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094AWK=$ac_cv_prog_AWK
6095if test -n "$AWK"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6097$as_echo "$AWK" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104 test -n "$AWK" && break
6105done
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125# If no C compiler was specified, use CC.
6126LTCC=${LTCC-"$CC"}
6127
6128# If no C compiler flags were specified, use CFLAGS.
6129LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6130
6131# Allow CC to be a program name with arguments.
6132compiler=$CC
6133
6134
6135# Check for command to grab the raw symbol name followed by C symbol from nm.
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6137$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6138if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141
6142# These are sane defaults that work on at least a few old systems.
6143# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6144
6145# Character class describing NM global symbol codes.
6146symcode='[BCDEGRST]'
6147
6148# Regexp to match symbols that can be accessed directly from C.
6149sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6150
6151# Define system-specific variables.
6152case $host_os in
6153aix*)
6154 symcode='[BCDT]'
6155 ;;
6156cygwin* | mingw* | pw32* | cegcc*)
6157 symcode='[ABCDGISTW]'
6158 ;;
6159hpux*)
6160 if test "$host_cpu" = ia64; then
6161 symcode='[ABCDEGRST]'
6162 fi
6163 ;;
6164irix* | nonstopux*)
6165 symcode='[BCDEGRST]'
6166 ;;
6167osf*)
6168 symcode='[BCDEGQRST]'
6169 ;;
6170solaris*)
6171 symcode='[BDRT]'
6172 ;;
6173sco3.2v5*)
6174 symcode='[DT]'
6175 ;;
6176sysv4.2uw2*)
6177 symcode='[DT]'
6178 ;;
6179sysv5* | sco5v6* | unixware* | OpenUNIX*)
6180 symcode='[ABDT]'
6181 ;;
6182sysv4)
6183 symcode='[DFNSTU]'
6184 ;;
6185esac
6186
6187# If we're using GNU nm, then use its standard symbol codes.
6188case `$NM -V 2>&1` in
6189*GNU* | *'with BFD'*)
6190 symcode='[ABCDGIRSTW]' ;;
6191esac
6192
6193# Transform an extracted symbol line into a proper C declaration.
6194# Some systems (esp. on ia64) link data and code symbols differently,
6195# so use this general approach.
6196lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6197
6198# Transform an extracted symbol line into symbol name and symbol address
6199lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6200lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6201
6202# Handle CRLF in mingw tool chain
6203opt_cr=
6204case $build_os in
6205mingw*)
6206 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6207 ;;
6208esac
6209
6210# Try without a prefix underscore, then with it.
6211for ac_symprfx in "" "_"; do
6212
6213 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6214 symxfrm="\\1 $ac_symprfx\\2 \\2"
6215
6216 # Write the raw and C identifiers.
6217 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6218 # Fake it for dumpbin and say T for any non-static function
6219 # and D for any global variable.
6220 # Also find C++ and __fastcall symbols from MSVC++,
6221 # which start with @ or ?.
6222 lt_cv_sys_global_symbol_pipe="$AWK '"\
6223" {last_section=section; section=\$ 3};"\
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006224" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Emeric Vigier2f625822012-08-06 11:09:52 -04006225" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6226" \$ 0!~/External *\|/{next};"\
6227" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6228" {if(hide[section]) next};"\
6229" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6230" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6231" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6232" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6233" ' prfx=^$ac_symprfx"
6234 else
6235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6236 fi
6237 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6238
6239 # Check to see that the pipe works correctly.
6240 pipe_works=no
6241
6242 rm -f conftest*
6243 cat > conftest.$ac_ext <<_LT_EOF
6244#ifdef __cplusplus
6245extern "C" {
6246#endif
6247char nm_test_var;
6248void nm_test_func(void);
6249void nm_test_func(void){}
6250#ifdef __cplusplus
6251}
6252#endif
6253int main(){nm_test_var='a';nm_test_func();return(0);}
6254_LT_EOF
6255
6256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257 (eval $ac_compile) 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }; then
6261 # Now try to grab the symbols.
6262 nlist=conftest.nm
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6264 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; } && test -s "$nlist"; then
6268 # Try sorting and uniquifying the output.
6269 if sort "$nlist" | uniq > "$nlist"T; then
6270 mv -f "$nlist"T "$nlist"
6271 else
6272 rm -f "$nlist"T
6273 fi
6274
6275 # Make sure that we snagged all the symbols we need.
6276 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6277 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6278 cat <<_LT_EOF > conftest.$ac_ext
6279/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6280#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6281/* DATA imports from DLLs on WIN32 con't be const, because runtime
6282 relocations are performed -- see ld's documentation on pseudo-relocs. */
6283# define LT_DLSYM_CONST
6284#elif defined(__osf__)
6285/* This system does not cope well with relocations in const data. */
6286# define LT_DLSYM_CONST
6287#else
6288# define LT_DLSYM_CONST const
6289#endif
6290
6291#ifdef __cplusplus
6292extern "C" {
6293#endif
6294
6295_LT_EOF
6296 # Now generate the symbol file.
6297 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6298
6299 cat <<_LT_EOF >> conftest.$ac_ext
6300
6301/* The mapping between symbol names and symbols. */
6302LT_DLSYM_CONST struct {
6303 const char *name;
6304 void *address;
6305}
6306lt__PROGRAM__LTX_preloaded_symbols[] =
6307{
6308 { "@PROGRAM@", (void *) 0 },
6309_LT_EOF
6310 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6311 cat <<\_LT_EOF >> conftest.$ac_ext
6312 {0, (void *) 0}
6313};
6314
6315/* This works around a problem in FreeBSD linker */
6316#ifdef FREEBSD_WORKAROUND
6317static const void *lt_preloaded_setup() {
6318 return lt__PROGRAM__LTX_preloaded_symbols;
6319}
6320#endif
6321
6322#ifdef __cplusplus
6323}
6324#endif
6325_LT_EOF
6326 # Now try linking the two files.
6327 mv conftest.$ac_objext conftstm.$ac_objext
6328 lt_globsym_save_LIBS=$LIBS
6329 lt_globsym_save_CFLAGS=$CFLAGS
6330 LIBS="conftstm.$ac_objext"
6331 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6333 (eval $ac_link) 2>&5
6334 ac_status=$?
6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6337 pipe_works=yes
6338 fi
6339 LIBS=$lt_globsym_save_LIBS
6340 CFLAGS=$lt_globsym_save_CFLAGS
6341 else
6342 echo "cannot find nm_test_func in $nlist" >&5
6343 fi
6344 else
6345 echo "cannot find nm_test_var in $nlist" >&5
6346 fi
6347 else
6348 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6349 fi
6350 else
6351 echo "$progname: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6353 fi
6354 rm -rf conftest* conftst*
6355
6356 # Do not use the global_symbol_pipe unless it works.
6357 if test "$pipe_works" = yes; then
6358 break
6359 else
6360 lt_cv_sys_global_symbol_pipe=
6361 fi
6362done
6363
6364fi
6365
6366if test -z "$lt_cv_sys_global_symbol_pipe"; then
6367 lt_cv_sys_global_symbol_to_cdecl=
6368fi
6369if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6371$as_echo "failed" >&6; }
6372else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6374$as_echo "ok" >&6; }
6375fi
6376
6377# Response file support.
6378if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6379 nm_file_list_spec='@'
6380elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6381 nm_file_list_spec='@'
6382fi
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6411$as_echo_n "checking for sysroot... " >&6; }
6412
6413# Check whether --with-sysroot was given.
6414if test "${with_sysroot+set}" = set; then :
6415 withval=$with_sysroot;
6416else
6417 with_sysroot=no
6418fi
6419
6420
6421lt_sysroot=
6422case ${with_sysroot} in #(
6423 yes)
6424 if test "$GCC" = yes; then
6425 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6426 fi
6427 ;; #(
6428 /*)
6429 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6430 ;; #(
6431 no|'')
6432 ;; #(
6433 *)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6435$as_echo "${with_sysroot}" >&6; }
6436 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6437 ;;
6438esac
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6441$as_echo "${lt_sysroot:-no}" >&6; }
6442
6443
6444
6445
6446
6447# Check whether --enable-libtool-lock was given.
6448if test "${enable_libtool_lock+set}" = set; then :
6449 enableval=$enable_libtool_lock;
6450fi
6451
6452test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6453
6454# Some flags need to be propagated to the compiler or linker for good
6455# libtool support.
6456case $host in
6457ia64-*-hpux*)
6458 # Find out which ABI we are using.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.$ac_objext` in
6466 *ELF-32*)
6467 HPUX_IA64_MODE="32"
6468 ;;
6469 *ELF-64*)
6470 HPUX_IA64_MODE="64"
6471 ;;
6472 esac
6473 fi
6474 rm -rf conftest*
6475 ;;
6476*-*-irix6*)
6477 # Find out which ABI we are using.
6478 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6480 (eval $ac_compile) 2>&5
6481 ac_status=$?
6482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483 test $ac_status = 0; }; then
6484 if test "$lt_cv_prog_gnu_ld" = yes; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *32-bit*)
6487 LD="${LD-ld} -melf32bsmip"
6488 ;;
6489 *N32*)
6490 LD="${LD-ld} -melf32bmipn32"
6491 ;;
6492 *64-bit*)
6493 LD="${LD-ld} -melf64bmip"
6494 ;;
6495 esac
6496 else
6497 case `/usr/bin/file conftest.$ac_objext` in
6498 *32-bit*)
6499 LD="${LD-ld} -32"
6500 ;;
6501 *N32*)
6502 LD="${LD-ld} -n32"
6503 ;;
6504 *64-bit*)
6505 LD="${LD-ld} -64"
6506 ;;
6507 esac
6508 fi
6509 fi
6510 rm -rf conftest*
6511 ;;
6512
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006513x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Emeric Vigier2f625822012-08-06 11:09:52 -04006514s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6515 # Find out which ABI we are using.
6516 echo 'int i;' > conftest.$ac_ext
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 case `/usr/bin/file conftest.o` in
6523 *32-bit*)
6524 case $host in
6525 x86_64-*kfreebsd*-gnu)
6526 LD="${LD-ld} -m elf_i386_fbsd"
6527 ;;
6528 x86_64-*linux*)
6529 LD="${LD-ld} -m elf_i386"
6530 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006531 powerpc64le-*linux*)
6532 LD="${LD-ld} -m elf32lppclinux"
6533 ;;
6534 powerpc64-*linux*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006535 LD="${LD-ld} -m elf32ppclinux"
6536 ;;
6537 s390x-*linux*)
6538 LD="${LD-ld} -m elf_s390"
6539 ;;
6540 sparc64-*linux*)
6541 LD="${LD-ld} -m elf32_sparc"
6542 ;;
6543 esac
6544 ;;
6545 *64-bit*)
6546 case $host in
6547 x86_64-*kfreebsd*-gnu)
6548 LD="${LD-ld} -m elf_x86_64_fbsd"
6549 ;;
6550 x86_64-*linux*)
6551 LD="${LD-ld} -m elf_x86_64"
6552 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006553 powerpcle-*linux*)
6554 LD="${LD-ld} -m elf64lppc"
6555 ;;
6556 powerpc-*linux*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006557 LD="${LD-ld} -m elf64ppc"
6558 ;;
6559 s390*-*linux*|s390*-*tpf*)
6560 LD="${LD-ld} -m elf64_s390"
6561 ;;
6562 sparc*-*linux*)
6563 LD="${LD-ld} -m elf64_sparc"
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 rm -rf conftest*
6570 ;;
6571
6572*-*-sco3.2v5*)
6573 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6574 SAVE_CFLAGS="$CFLAGS"
6575 CFLAGS="$CFLAGS -belf"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6577$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6578if ${lt_cv_cc_needs_belf+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580else
6581 ac_ext=c
6582ac_cpp='$CPP $CPPFLAGS'
6583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h. */
6589
6590int
6591main ()
6592{
6593
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598if ac_fn_c_try_link "$LINENO"; then :
6599 lt_cv_cc_needs_belf=yes
6600else
6601 lt_cv_cc_needs_belf=no
6602fi
6603rm -f core conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605 ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6613$as_echo "$lt_cv_cc_needs_belf" >&6; }
6614 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6615 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6616 CFLAGS="$SAVE_CFLAGS"
6617 fi
6618 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006619*-*solaris*)
Emeric Vigier2f625822012-08-06 11:09:52 -04006620 # Find out which ABI we are using.
6621 echo 'int i;' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 case `/usr/bin/file conftest.o` in
6628 *64-bit*)
6629 case $lt_cv_prog_gnu_ld in
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006630 yes*)
6631 case $host in
6632 i?86-*-solaris*)
6633 LD="${LD-ld} -m elf_x86_64"
6634 ;;
6635 sparc*-*-solaris*)
6636 LD="${LD-ld} -m elf64_sparc"
6637 ;;
6638 esac
6639 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6640 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6641 LD="${LD-ld}_sol2"
6642 fi
6643 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04006644 *)
6645 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6646 LD="${LD-ld} -64"
6647 fi
6648 ;;
6649 esac
6650 ;;
6651 esac
6652 fi
6653 rm -rf conftest*
6654 ;;
6655esac
6656
6657need_locks="$enable_libtool_lock"
6658
6659if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6661set dummy ${ac_tool_prefix}mt; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666else
6667 if test -n "$MANIFEST_TOOL"; then
6668 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006677 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682 done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6688if test -n "$MANIFEST_TOOL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6690$as_echo "$MANIFEST_TOOL" >&6; }
6691else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696
6697fi
6698if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6699 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6700 # Extract the first word of "mt", so it can be a program name with args.
6701set dummy mt; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706else
6707 if test -n "$ac_ct_MANIFEST_TOOL"; then
6708 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722 done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6728if test -n "$ac_ct_MANIFEST_TOOL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6730$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6731else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6737 MANIFEST_TOOL=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740yes:)
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6746 fi
6747else
6748 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6749fi
6750
6751test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6753$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6754if ${lt_cv_path_mainfest_tool+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757 lt_cv_path_mainfest_tool=no
6758 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6759 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6760 cat conftest.err >&5
6761 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6762 lt_cv_path_mainfest_tool=yes
6763 fi
6764 rm -f conftest*
6765fi
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6767$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6768if test "x$lt_cv_path_mainfest_tool" != xyes; then
6769 MANIFEST_TOOL=:
6770fi
6771
6772
6773
6774
6775
6776
6777 case $host_os in
6778 rhapsody* | darwin*)
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6781set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if ${ac_cv_prog_DSYMUTIL+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 if test -n "$DSYMUTIL"; then
6788 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802 done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807DSYMUTIL=$ac_cv_prog_DSYMUTIL
6808if test -n "$DSYMUTIL"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6810$as_echo "$DSYMUTIL" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816
6817fi
6818if test -z "$ac_cv_prog_DSYMUTIL"; then
6819 ac_ct_DSYMUTIL=$DSYMUTIL
6820 # Extract the first word of "dsymutil", so it can be a program name with args.
6821set dummy dsymutil; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 if test -n "$ac_ct_DSYMUTIL"; then
6828 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6848if test -n "$ac_ct_DSYMUTIL"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6850$as_echo "$ac_ct_DSYMUTIL" >&6; }
6851else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856 if test "x$ac_ct_DSYMUTIL" = x; then
6857 DSYMUTIL=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865 DSYMUTIL=$ac_ct_DSYMUTIL
6866 fi
6867else
6868 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6869fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_NMEDIT+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$NMEDIT"; then
6880 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899NMEDIT=$ac_cv_prog_NMEDIT
6900if test -n "$NMEDIT"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6902$as_echo "$NMEDIT" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909fi
6910if test -z "$ac_cv_prog_NMEDIT"; then
6911 ac_ct_NMEDIT=$NMEDIT
6912 # Extract the first word of "nmedit", so it can be a program name with args.
6913set dummy nmedit; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$ac_ct_NMEDIT"; then
6920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6940if test -n "$ac_ct_NMEDIT"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6942$as_echo "$ac_ct_NMEDIT" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948 if test "x$ac_ct_NMEDIT" = x; then
6949 NMEDIT=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 NMEDIT=$ac_ct_NMEDIT
6958 fi
6959else
6960 NMEDIT="$ac_cv_prog_NMEDIT"
6961fi
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}lipo; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if ${ac_cv_prog_LIPO+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970else
6971 if test -n "$LIPO"; then
6972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05006980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04006981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986 done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991LIPO=$ac_cv_prog_LIPO
6992if test -n "$LIPO"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6994$as_echo "$LIPO" >&6; }
6995else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000
7001fi
7002if test -z "$ac_cv_prog_LIPO"; then
7003 ac_ct_LIPO=$LIPO
7004 # Extract the first word of "lipo", so it can be a program name with args.
7005set dummy lipo; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010else
7011 if test -n "$ac_ct_LIPO"; then
7012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007021 ac_cv_prog_ac_ct_LIPO="lipo"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026 done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7032if test -n "$ac_ct_LIPO"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7034$as_echo "$ac_ct_LIPO" >&6; }
7035else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038fi
7039
7040 if test "x$ac_ct_LIPO" = x; then
7041 LIPO=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 LIPO=$ac_ct_LIPO
7050 fi
7051else
7052 LIPO="$ac_cv_prog_LIPO"
7053fi
7054
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}otool; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if ${ac_cv_prog_OTOOL+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062else
7063 if test -n "$OTOOL"; then
7064 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083OTOOL=$ac_cv_prog_OTOOL
7084if test -n "$OTOOL"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7086$as_echo "$OTOOL" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092
7093fi
7094if test -z "$ac_cv_prog_OTOOL"; then
7095 ac_ct_OTOOL=$OTOOL
7096 # Extract the first word of "otool", so it can be a program name with args.
7097set dummy otool; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102else
7103 if test -n "$ac_ct_OTOOL"; then
7104 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007113 ac_cv_prog_ac_ct_OTOOL="otool"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118 done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7124if test -n "$ac_ct_OTOOL"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7126$as_echo "$ac_ct_OTOOL" >&6; }
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132 if test "x$ac_ct_OTOOL" = x; then
7133 OTOOL=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 OTOOL=$ac_ct_OTOOL
7142 fi
7143else
7144 OTOOL="$ac_cv_prog_OTOOL"
7145fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}otool64; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_OTOOL64+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154else
7155 if test -n "$OTOOL64"; then
7156 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170 done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175OTOOL64=$ac_cv_prog_OTOOL64
7176if test -n "$OTOOL64"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7178$as_echo "$OTOOL64" >&6; }
7179else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185fi
7186if test -z "$ac_cv_prog_OTOOL64"; then
7187 ac_ct_OTOOL64=$OTOOL64
7188 # Extract the first word of "otool64", so it can be a program name with args.
7189set dummy otool64; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194else
7195 if test -n "$ac_ct_OTOOL64"; then
7196 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007205 ac_cv_prog_ac_ct_OTOOL64="otool64"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209done
7210 done
7211IFS=$as_save_IFS
7212
7213fi
7214fi
7215ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7216if test -n "$ac_ct_OTOOL64"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7218$as_echo "$ac_ct_OTOOL64" >&6; }
7219else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224 if test "x$ac_ct_OTOOL64" = x; then
7225 OTOOL64=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233 OTOOL64=$ac_ct_OTOOL64
7234 fi
7235else
7236 OTOOL64="$ac_cv_prog_OTOOL64"
7237fi
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7266$as_echo_n "checking for -single_module linker flag... " >&6; }
7267if ${lt_cv_apple_cc_single_mod+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269else
7270 lt_cv_apple_cc_single_mod=no
7271 if test -z "${LT_MULTI_MODULE}"; then
7272 # By default we will add the -single_module flag. You can override
7273 # by either setting the environment variable LT_MULTI_MODULE
7274 # non-empty at configure time, or by adding -multi_module to the
7275 # link flags.
7276 rm -rf libconftest.dylib*
7277 echo "int foo(void){return 1;}" > conftest.c
7278 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7279-dynamiclib -Wl,-single_module conftest.c" >&5
7280 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7281 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7282 _lt_result=$?
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007283 # If there is a non-empty error log, and "single_module"
7284 # appears in it, assume the flag caused a linker warning
7285 if test -s conftest.err && $GREP single_module conftest.err; then
7286 cat conftest.err >&5
7287 # Otherwise, if the output was created with a 0 exit code from
7288 # the compiler, it worked.
7289 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007290 lt_cv_apple_cc_single_mod=yes
7291 else
7292 cat conftest.err >&5
7293 fi
7294 rm -rf libconftest.dylib*
7295 rm -f conftest.*
7296 fi
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7299$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007300
Emeric Vigier2f625822012-08-06 11:09:52 -04007301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7302$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7303if ${lt_cv_ld_exported_symbols_list+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305else
7306 lt_cv_ld_exported_symbols_list=no
7307 save_LDFLAGS=$LDFLAGS
7308 echo "_main" > conftest.sym
7309 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312
7313int
7314main ()
7315{
7316
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_link "$LINENO"; then :
7322 lt_cv_ld_exported_symbols_list=yes
7323else
7324 lt_cv_ld_exported_symbols_list=no
7325fi
7326rm -f core conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7328 LDFLAGS="$save_LDFLAGS"
7329
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7332$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007333
Emeric Vigier2f625822012-08-06 11:09:52 -04007334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7335$as_echo_n "checking for -force_load linker flag... " >&6; }
7336if ${lt_cv_ld_force_load+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338else
7339 lt_cv_ld_force_load=no
7340 cat > conftest.c << _LT_EOF
7341int forced_loaded() { return 2;}
7342_LT_EOF
7343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7345 echo "$AR cru libconftest.a conftest.o" >&5
7346 $AR cru libconftest.a conftest.o 2>&5
7347 echo "$RANLIB libconftest.a" >&5
7348 $RANLIB libconftest.a 2>&5
7349 cat > conftest.c << _LT_EOF
7350int main() { return 0;}
7351_LT_EOF
7352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7354 _lt_result=$?
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007355 if test -s conftest.err && $GREP force_load conftest.err; then
7356 cat conftest.err >&5
7357 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
Emeric Vigier2f625822012-08-06 11:09:52 -04007358 lt_cv_ld_force_load=yes
7359 else
7360 cat conftest.err >&5
7361 fi
7362 rm -f conftest.err libconftest.a conftest conftest.c
7363 rm -rf conftest.dSYM
7364
7365fi
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7367$as_echo "$lt_cv_ld_force_load" >&6; }
7368 case $host_os in
7369 rhapsody* | darwin1.[012])
7370 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7371 darwin1.*)
7372 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7373 darwin*) # darwin 5.x on
7374 # if running on 10.5 or later, the deployment target defaults
7375 # to the OS version, if on x86, and 10.4, the deployment
7376 # target defaults to 10.4. Don't you love it?
7377 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7378 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7379 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7380 10.[012]*)
7381 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7382 10.*)
7383 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7384 esac
7385 ;;
7386 esac
7387 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7388 _lt_dar_single_mod='$single_module'
7389 fi
7390 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7391 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7392 else
7393 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7394 fi
7395 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7396 _lt_dsymutil='~$DSYMUTIL $lib || :'
7397 else
7398 _lt_dsymutil=
7399 fi
7400 ;;
7401 esac
7402
7403
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7405$as_echo_n "checking for ANSI C header files... " >&6; }
7406if ${ac_cv_header_stdc+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408else
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h. */
7411#include <stdlib.h>
7412#include <stdarg.h>
7413#include <string.h>
7414#include <float.h>
7415
7416int
7417main ()
7418{
7419
7420 ;
7421 return 0;
7422}
7423_ACEOF
7424if ac_fn_c_try_compile "$LINENO"; then :
7425 ac_cv_header_stdc=yes
7426else
7427 ac_cv_header_stdc=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430
7431if test $ac_cv_header_stdc = yes; then
7432 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */
7435#include <string.h>
7436
7437_ACEOF
7438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7439 $EGREP "memchr" >/dev/null 2>&1; then :
7440
7441else
7442 ac_cv_header_stdc=no
7443fi
7444rm -f conftest*
7445
7446fi
7447
7448if test $ac_cv_header_stdc = yes; then
7449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h. */
7452#include <stdlib.h>
7453
7454_ACEOF
7455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7456 $EGREP "free" >/dev/null 2>&1; then :
7457
7458else
7459 ac_cv_header_stdc=no
7460fi
7461rm -f conftest*
7462
7463fi
7464
7465if test $ac_cv_header_stdc = yes; then
7466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7467 if test "$cross_compiling" = yes; then :
7468 :
7469else
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
7472#include <ctype.h>
7473#include <stdlib.h>
7474#if ((' ' & 0x0FF) == 0x020)
7475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7477#else
7478# define ISLOWER(c) \
7479 (('a' <= (c) && (c) <= 'i') \
7480 || ('j' <= (c) && (c) <= 'r') \
7481 || ('s' <= (c) && (c) <= 'z'))
7482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7483#endif
7484
7485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7486int
7487main ()
7488{
7489 int i;
7490 for (i = 0; i < 256; i++)
7491 if (XOR (islower (i), ISLOWER (i))
7492 || toupper (i) != TOUPPER (i))
7493 return 2;
7494 return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_run "$LINENO"; then :
7498
7499else
7500 ac_cv_header_stdc=no
7501fi
7502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7503 conftest.$ac_objext conftest.beam conftest.$ac_ext
7504fi
7505
7506fi
7507fi
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7509$as_echo "$ac_cv_header_stdc" >&6; }
7510if test $ac_cv_header_stdc = yes; then
7511
7512$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7513
7514fi
7515
7516# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7517for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7518 inttypes.h stdint.h unistd.h
7519do :
7520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7521ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7522"
7523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7524 cat >>confdefs.h <<_ACEOF
7525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7526_ACEOF
7527
7528fi
7529
7530done
7531
7532
7533for ac_header in dlfcn.h
7534do :
7535 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7536"
7537if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7538 cat >>confdefs.h <<_ACEOF
7539#define HAVE_DLFCN_H 1
7540_ACEOF
7541
7542fi
7543
7544done
7545
7546
7547
7548
7549func_stripname_cnf ()
7550{
7551 case ${2} in
7552 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7553 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7554 esac
7555} # func_stripname_cnf
7556
7557
7558
7559
7560
7561# Set options
7562
7563
7564
7565 enable_dlopen=no
7566
7567
7568 enable_win32_dll=no
7569
7570
7571 # Check whether --enable-shared was given.
7572if test "${enable_shared+set}" = set; then :
7573 enableval=$enable_shared; p=${PACKAGE-default}
7574 case $enableval in
7575 yes) enable_shared=yes ;;
7576 no) enable_shared=no ;;
7577 *)
7578 enable_shared=no
7579 # Look at the argument we got. We use all the common list separators.
7580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7581 for pkg in $enableval; do
7582 IFS="$lt_save_ifs"
7583 if test "X$pkg" = "X$p"; then
7584 enable_shared=yes
7585 fi
7586 done
7587 IFS="$lt_save_ifs"
7588 ;;
7589 esac
7590else
7591 enable_shared=yes
7592fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602 # Check whether --enable-static was given.
7603if test "${enable_static+set}" = set; then :
7604 enableval=$enable_static; p=${PACKAGE-default}
7605 case $enableval in
7606 yes) enable_static=yes ;;
7607 no) enable_static=no ;;
7608 *)
7609 enable_static=no
7610 # Look at the argument we got. We use all the common list separators.
7611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7612 for pkg in $enableval; do
7613 IFS="$lt_save_ifs"
7614 if test "X$pkg" = "X$p"; then
7615 enable_static=yes
7616 fi
7617 done
7618 IFS="$lt_save_ifs"
7619 ;;
7620 esac
7621else
7622 enable_static=yes
7623fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634# Check whether --with-pic was given.
7635if test "${with_pic+set}" = set; then :
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007636 withval=$with_pic; lt_p=${PACKAGE-default}
7637 case $withval in
7638 yes|no) pic_mode=$withval ;;
7639 *)
7640 pic_mode=default
7641 # Look at the argument we got. We use all the common list separators.
7642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7643 for lt_pkg in $withval; do
7644 IFS="$lt_save_ifs"
7645 if test "X$lt_pkg" = "X$lt_p"; then
7646 pic_mode=yes
7647 fi
7648 done
7649 IFS="$lt_save_ifs"
7650 ;;
7651 esac
Emeric Vigier2f625822012-08-06 11:09:52 -04007652else
7653 pic_mode=default
7654fi
7655
7656
7657test -z "$pic_mode" && pic_mode=default
7658
7659
7660
7661
7662
7663
7664
7665 # Check whether --enable-fast-install was given.
7666if test "${enable_fast_install+set}" = set; then :
7667 enableval=$enable_fast_install; p=${PACKAGE-default}
7668 case $enableval in
7669 yes) enable_fast_install=yes ;;
7670 no) enable_fast_install=no ;;
7671 *)
7672 enable_fast_install=no
7673 # Look at the argument we got. We use all the common list separators.
7674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7675 for pkg in $enableval; do
7676 IFS="$lt_save_ifs"
7677 if test "X$pkg" = "X$p"; then
7678 enable_fast_install=yes
7679 fi
7680 done
7681 IFS="$lt_save_ifs"
7682 ;;
7683 esac
7684else
7685 enable_fast_install=yes
7686fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698# This can be used to rebuild libtool when needed
7699LIBTOOL_DEPS="$ltmain"
7700
7701# Always use our own libtool.
7702LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
Alexandre Lisionddd731e2014-01-31 11:50:08 -05007729
7730
7731
7732
Emeric Vigier2f625822012-08-06 11:09:52 -04007733test -z "$LN_S" && LN_S="ln -s"
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748if test -n "${ZSH_VERSION+set}" ; then
7749 setopt NO_GLOB_SUBST
7750fi
7751
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7753$as_echo_n "checking for objdir... " >&6; }
7754if ${lt_cv_objdir+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756else
7757 rm -f .libs 2>/dev/null
7758mkdir .libs 2>/dev/null
7759if test -d .libs; then
7760 lt_cv_objdir=.libs
7761else
7762 # MS-DOS does not allow filenames that begin with a dot.
7763 lt_cv_objdir=_libs
7764fi
7765rmdir .libs 2>/dev/null
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7768$as_echo "$lt_cv_objdir" >&6; }
7769objdir=$lt_cv_objdir
7770
7771
7772
7773
7774
7775cat >>confdefs.h <<_ACEOF
7776#define LT_OBJDIR "$lt_cv_objdir/"
7777_ACEOF
7778
7779
7780
7781
7782case $host_os in
7783aix3*)
7784 # AIX sometimes has problems with the GCC collect2 program. For some
7785 # reason, if we set the COLLECT_NAMES environment variable, the problems
7786 # vanish in a puff of smoke.
7787 if test "X${COLLECT_NAMES+set}" != Xset; then
7788 COLLECT_NAMES=
7789 export COLLECT_NAMES
7790 fi
7791 ;;
7792esac
7793
7794# Global variables:
7795ofile=libtool
7796can_build_shared=yes
7797
7798# All known linkers require a `.a' archive for static linking (except MSVC,
7799# which needs '.lib').
7800libext=a
7801
7802with_gnu_ld="$lt_cv_prog_gnu_ld"
7803
7804old_CC="$CC"
7805old_CFLAGS="$CFLAGS"
7806
7807# Set sane defaults for various variables
7808test -z "$CC" && CC=cc
7809test -z "$LTCC" && LTCC=$CC
7810test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7811test -z "$LD" && LD=ld
7812test -z "$ac_objext" && ac_objext=o
7813
7814for cc_temp in $compiler""; do
7815 case $cc_temp in
7816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7818 \-*) ;;
7819 *) break;;
7820 esac
7821done
7822cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7823
7824
7825# Only perform the check for file, if the check method requires it
7826test -z "$MAGIC_CMD" && MAGIC_CMD=file
7827case $deplibs_check_method in
7828file_magic*)
7829 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7831$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7832if ${lt_cv_path_MAGIC_CMD+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834else
7835 case $MAGIC_CMD in
7836[\\/*] | ?:[\\/]*)
7837 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7838 ;;
7839*)
7840 lt_save_MAGIC_CMD="$MAGIC_CMD"
7841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7842 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7843 for ac_dir in $ac_dummy; do
7844 IFS="$lt_save_ifs"
7845 test -z "$ac_dir" && ac_dir=.
7846 if test -f $ac_dir/${ac_tool_prefix}file; then
7847 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7848 if test -n "$file_magic_test_file"; then
7849 case $deplibs_check_method in
7850 "file_magic "*)
7851 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7854 $EGREP "$file_magic_regex" > /dev/null; then
7855 :
7856 else
7857 cat <<_LT_EOF 1>&2
7858
7859*** Warning: the command libtool uses to detect shared libraries,
7860*** $file_magic_cmd, produces output that libtool cannot recognize.
7861*** The result is that libtool may fail to recognize shared libraries
7862*** as such. This will affect the creation of libtool libraries that
7863*** depend on shared libraries, but programs linked with such libtool
7864*** libraries will work regardless of this problem. Nevertheless, you
7865*** may want to report the problem to your system manager and/or to
7866*** bug-libtool@gnu.org
7867
7868_LT_EOF
7869 fi ;;
7870 esac
7871 fi
7872 break
7873 fi
7874 done
7875 IFS="$lt_save_ifs"
7876 MAGIC_CMD="$lt_save_MAGIC_CMD"
7877 ;;
7878esac
7879fi
7880
7881MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882if test -n "$MAGIC_CMD"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7884$as_echo "$MAGIC_CMD" >&6; }
7885else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888fi
7889
7890
7891
7892
7893
7894if test -z "$lt_cv_path_MAGIC_CMD"; then
7895 if test -n "$ac_tool_prefix"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7897$as_echo_n "checking for file... " >&6; }
7898if ${lt_cv_path_MAGIC_CMD+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900else
7901 case $MAGIC_CMD in
7902[\\/*] | ?:[\\/]*)
7903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7904 ;;
7905*)
7906 lt_save_MAGIC_CMD="$MAGIC_CMD"
7907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7909 for ac_dir in $ac_dummy; do
7910 IFS="$lt_save_ifs"
7911 test -z "$ac_dir" && ac_dir=.
7912 if test -f $ac_dir/file; then
7913 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7914 if test -n "$file_magic_test_file"; then
7915 case $deplibs_check_method in
7916 "file_magic "*)
7917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7920 $EGREP "$file_magic_regex" > /dev/null; then
7921 :
7922 else
7923 cat <<_LT_EOF 1>&2
7924
7925*** Warning: the command libtool uses to detect shared libraries,
7926*** $file_magic_cmd, produces output that libtool cannot recognize.
7927*** The result is that libtool may fail to recognize shared libraries
7928*** as such. This will affect the creation of libtool libraries that
7929*** depend on shared libraries, but programs linked with such libtool
7930*** libraries will work regardless of this problem. Nevertheless, you
7931*** may want to report the problem to your system manager and/or to
7932*** bug-libtool@gnu.org
7933
7934_LT_EOF
7935 fi ;;
7936 esac
7937 fi
7938 break
7939 fi
7940 done
7941 IFS="$lt_save_ifs"
7942 MAGIC_CMD="$lt_save_MAGIC_CMD"
7943 ;;
7944esac
7945fi
7946
7947MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948if test -n "$MAGIC_CMD"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7950$as_echo "$MAGIC_CMD" >&6; }
7951else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956
7957 else
7958 MAGIC_CMD=:
7959 fi
7960fi
7961
7962 fi
7963 ;;
7964esac
7965
7966# Use C for the default configuration in the libtool script
7967
7968lt_save_CC="$CC"
7969ac_ext=c
7970ac_cpp='$CPP $CPPFLAGS'
7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974
7975
7976# Source file extension for C test sources.
7977ac_ext=c
7978
7979# Object file extension for compiled C test sources.
7980objext=o
7981objext=$objext
7982
7983# Code to be used in simple compile tests
7984lt_simple_compile_test_code="int some_variable = 0;"
7985
7986# Code to be used in simple link tests
7987lt_simple_link_test_code='int main(){return(0);}'
7988
7989
7990
7991
7992
7993
7994
7995# If no C compiler was specified, use CC.
7996LTCC=${LTCC-"$CC"}
7997
7998# If no C compiler flags were specified, use CFLAGS.
7999LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8000
8001# Allow CC to be a program name with arguments.
8002compiler=$CC
8003
8004# Save the default compiler, since it gets overwritten when the other
8005# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8006compiler_DEFAULT=$CC
8007
8008# save warnings/boilerplate of simple test code
8009ac_outfile=conftest.$ac_objext
8010echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8011eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8012_lt_compiler_boilerplate=`cat conftest.err`
8013$RM conftest*
8014
8015ac_outfile=conftest.$ac_objext
8016echo "$lt_simple_link_test_code" >conftest.$ac_ext
8017eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8018_lt_linker_boilerplate=`cat conftest.err`
8019$RM -r conftest*
8020
8021
8022## CAVEAT EMPTOR:
8023## There is no encapsulation within the following macros, do not change
8024## the running order or otherwise move them around unless you know exactly
8025## what you are doing...
8026if test -n "$compiler"; then
8027
8028lt_prog_compiler_no_builtin_flag=
8029
8030if test "$GCC" = yes; then
8031 case $cc_basename in
8032 nvcc*)
8033 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8034 *)
8035 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8036 esac
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8039$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8040if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 lt_cv_prog_compiler_rtti_exceptions=no
8044 ac_outfile=conftest.$ac_objext
8045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8046 lt_compiler_flag="-fno-rtti -fno-exceptions"
8047 # Insert the option either (1) after the last *FLAGS variable, or
8048 # (2) before a word containing "conftest.", or (3) at the end.
8049 # Note that $ac_compile itself does not contain backslashes and begins
8050 # with a dollar sign (not a hyphen), so the echo should work correctly.
8051 # The option is referenced via a variable to avoid confusing sed.
8052 lt_compile=`echo "$ac_compile" | $SED \
8053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8055 -e 's:$: $lt_compiler_flag:'`
8056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8057 (eval "$lt_compile" 2>conftest.err)
8058 ac_status=$?
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 if (exit $ac_status) && test -s "$ac_outfile"; then
8062 # The compiler can only warn and ignore the option if not recognized
8063 # So say no if there are warnings other than the usual output.
8064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8067 lt_cv_prog_compiler_rtti_exceptions=yes
8068 fi
8069 fi
8070 $RM conftest*
8071
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8074$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8075
8076if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8077 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8078else
8079 :
8080fi
8081
8082fi
8083
8084
8085
8086
8087
8088
8089 lt_prog_compiler_wl=
8090lt_prog_compiler_pic=
8091lt_prog_compiler_static=
8092
8093
8094 if test "$GCC" = yes; then
8095 lt_prog_compiler_wl='-Wl,'
8096 lt_prog_compiler_static='-static'
8097
8098 case $host_os in
8099 aix*)
8100 # All AIX code is PIC.
8101 if test "$host_cpu" = ia64; then
8102 # AIX 5 now supports IA64 processor
8103 lt_prog_compiler_static='-Bstatic'
8104 fi
8105 ;;
8106
8107 amigaos*)
8108 case $host_cpu in
8109 powerpc)
8110 # see comment about AmigaOS4 .so support
8111 lt_prog_compiler_pic='-fPIC'
8112 ;;
8113 m68k)
8114 # FIXME: we need at least 68020 code to build shared libraries, but
8115 # adding the `-m68020' flag to GCC prevents building anything better,
8116 # like `-m68040'.
8117 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8118 ;;
8119 esac
8120 ;;
8121
8122 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8123 # PIC is the default for these OSes.
8124 ;;
8125
8126 mingw* | cygwin* | pw32* | os2* | cegcc*)
8127 # This hack is so that the source file can tell whether it is being
8128 # built for inclusion in a dll (and should export symbols for example).
8129 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8130 # (--disable-auto-import) libraries
8131 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 ;;
8133
8134 darwin* | rhapsody*)
8135 # PIC is the default on this platform
8136 # Common symbols not allowed in MH_DYLIB files
8137 lt_prog_compiler_pic='-fno-common'
8138 ;;
8139
8140 haiku*)
8141 # PIC is the default for Haiku.
8142 # The "-static" flag exists, but is broken.
8143 lt_prog_compiler_static=
8144 ;;
8145
8146 hpux*)
8147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8149 # sets the default TLS model and affects inlining.
8150 case $host_cpu in
8151 hppa*64*)
8152 # +Z the default
8153 ;;
8154 *)
8155 lt_prog_compiler_pic='-fPIC'
8156 ;;
8157 esac
8158 ;;
8159
8160 interix[3-9]*)
8161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8162 # Instead, we relocate shared libraries at runtime.
8163 ;;
8164
8165 msdosdjgpp*)
8166 # Just because we use GCC doesn't mean we suddenly get shared libraries
8167 # on systems that don't support them.
8168 lt_prog_compiler_can_build_shared=no
8169 enable_shared=no
8170 ;;
8171
8172 *nto* | *qnx*)
8173 # QNX uses GNU C++, but need to define -shared option too, otherwise
8174 # it will coredump.
8175 lt_prog_compiler_pic='-fPIC -shared'
8176 ;;
8177
8178 sysv4*MP*)
8179 if test -d /usr/nec; then
8180 lt_prog_compiler_pic=-Kconform_pic
8181 fi
8182 ;;
8183
8184 *)
8185 lt_prog_compiler_pic='-fPIC'
8186 ;;
8187 esac
8188
8189 case $cc_basename in
8190 nvcc*) # Cuda Compiler Driver 2.2
8191 lt_prog_compiler_wl='-Xlinker '
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008192 if test -n "$lt_prog_compiler_pic"; then
8193 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8194 fi
Emeric Vigier2f625822012-08-06 11:09:52 -04008195 ;;
8196 esac
8197 else
8198 # PORTME Check for flag to pass linker flags through the system compiler.
8199 case $host_os in
8200 aix*)
8201 lt_prog_compiler_wl='-Wl,'
8202 if test "$host_cpu" = ia64; then
8203 # AIX 5 now supports IA64 processor
8204 lt_prog_compiler_static='-Bstatic'
8205 else
8206 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8207 fi
8208 ;;
8209
8210 mingw* | cygwin* | pw32* | os2* | cegcc*)
8211 # This hack is so that the source file can tell whether it is being
8212 # built for inclusion in a dll (and should export symbols for example).
8213 lt_prog_compiler_pic='-DDLL_EXPORT'
8214 ;;
8215
8216 hpux9* | hpux10* | hpux11*)
8217 lt_prog_compiler_wl='-Wl,'
8218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8219 # not for PA HP-UX.
8220 case $host_cpu in
8221 hppa*64*|ia64*)
8222 # +Z the default
8223 ;;
8224 *)
8225 lt_prog_compiler_pic='+Z'
8226 ;;
8227 esac
8228 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8229 lt_prog_compiler_static='${wl}-a ${wl}archive'
8230 ;;
8231
8232 irix5* | irix6* | nonstopux*)
8233 lt_prog_compiler_wl='-Wl,'
8234 # PIC (with -KPIC) is the default.
8235 lt_prog_compiler_static='-non_shared'
8236 ;;
8237
8238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8239 case $cc_basename in
8240 # old Intel for x86_64 which still supported -KPIC.
8241 ecc*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-static'
8245 ;;
8246 # icc used to be incompatible with GCC.
8247 # ICC 10 doesn't accept -KPIC any more.
8248 icc* | ifort*)
8249 lt_prog_compiler_wl='-Wl,'
8250 lt_prog_compiler_pic='-fPIC'
8251 lt_prog_compiler_static='-static'
8252 ;;
8253 # Lahey Fortran 8.1.
8254 lf95*)
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_pic='--shared'
8257 lt_prog_compiler_static='--static'
8258 ;;
8259 nagfor*)
8260 # NAG Fortran compiler
8261 lt_prog_compiler_wl='-Wl,-Wl,,'
8262 lt_prog_compiler_pic='-PIC'
8263 lt_prog_compiler_static='-Bstatic'
8264 ;;
8265 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8266 # Portland Group compilers (*not* the Pentium gcc compiler,
8267 # which looks to be a dead project)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fpic'
8270 lt_prog_compiler_static='-Bstatic'
8271 ;;
8272 ccc*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # All Alpha code is PIC.
8275 lt_prog_compiler_static='-non_shared'
8276 ;;
8277 xl* | bgxl* | bgf* | mpixl*)
8278 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-qpic'
8281 lt_prog_compiler_static='-qstaticlink'
8282 ;;
8283 *)
8284 case `$CC -V 2>&1 | sed 5q` in
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008285 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
Emeric Vigier2f625822012-08-06 11:09:52 -04008286 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8287 lt_prog_compiler_pic='-KPIC'
8288 lt_prog_compiler_static='-Bstatic'
8289 lt_prog_compiler_wl=''
8290 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008291 *Sun\ F* | *Sun*Fortran*)
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-Bstatic'
8294 lt_prog_compiler_wl='-Qoption ld '
8295 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008296 *Sun\ C*)
8297 # Sun C 5.9
8298 lt_prog_compiler_pic='-KPIC'
8299 lt_prog_compiler_static='-Bstatic'
8300 lt_prog_compiler_wl='-Wl,'
8301 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008302 *Intel*\ [CF]*Compiler*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fPIC'
8305 lt_prog_compiler_static='-static'
8306 ;;
8307 *Portland\ Group*)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='-fpic'
8310 lt_prog_compiler_static='-Bstatic'
8311 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008312 esac
8313 ;;
8314 esac
8315 ;;
8316
8317 newsos6)
8318 lt_prog_compiler_pic='-KPIC'
8319 lt_prog_compiler_static='-Bstatic'
8320 ;;
8321
8322 *nto* | *qnx*)
8323 # QNX uses GNU C++, but need to define -shared option too, otherwise
8324 # it will coredump.
8325 lt_prog_compiler_pic='-fPIC -shared'
8326 ;;
8327
8328 osf3* | osf4* | osf5*)
8329 lt_prog_compiler_wl='-Wl,'
8330 # All OSF/1 code is PIC.
8331 lt_prog_compiler_static='-non_shared'
8332 ;;
8333
8334 rdos*)
8335 lt_prog_compiler_static='-non_shared'
8336 ;;
8337
8338 solaris*)
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-Bstatic'
8341 case $cc_basename in
8342 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8343 lt_prog_compiler_wl='-Qoption ld ';;
8344 *)
8345 lt_prog_compiler_wl='-Wl,';;
8346 esac
8347 ;;
8348
8349 sunos4*)
8350 lt_prog_compiler_wl='-Qoption ld '
8351 lt_prog_compiler_pic='-PIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 ;;
8354
8355 sysv4 | sysv4.2uw2* | sysv4.3*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8359 ;;
8360
8361 sysv4*MP*)
8362 if test -d /usr/nec ;then
8363 lt_prog_compiler_pic='-Kconform_pic'
8364 lt_prog_compiler_static='-Bstatic'
8365 fi
8366 ;;
8367
8368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 unicos*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_can_build_shared=no
8377 ;;
8378
8379 uts4*)
8380 lt_prog_compiler_pic='-pic'
8381 lt_prog_compiler_static='-Bstatic'
8382 ;;
8383
8384 *)
8385 lt_prog_compiler_can_build_shared=no
8386 ;;
8387 esac
8388 fi
8389
8390case $host_os in
8391 # For platforms which do not support PIC, -DPIC is meaningless:
8392 *djgpp*)
8393 lt_prog_compiler_pic=
8394 ;;
8395 *)
8396 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8397 ;;
8398esac
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8401$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8402if ${lt_cv_prog_compiler_pic+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404else
8405 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8408$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8409lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8410
8411#
8412# Check to make sure the PIC flag actually works.
8413#
8414if test -n "$lt_prog_compiler_pic"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8416$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8417if ${lt_cv_prog_compiler_pic_works+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419else
8420 lt_cv_prog_compiler_pic_works=no
8421 ac_outfile=conftest.$ac_objext
8422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 # The option is referenced via a variable to avoid confusing sed.
8429 lt_compile=`echo "$ac_compile" | $SED \
8430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8432 -e 's:$: $lt_compiler_flag:'`
8433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8434 (eval "$lt_compile" 2>conftest.err)
8435 ac_status=$?
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 if (exit $ac_status) && test -s "$ac_outfile"; then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings other than the usual output.
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_pic_works=yes
8445 fi
8446 fi
8447 $RM conftest*
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8451$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8452
8453if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8454 case $lt_prog_compiler_pic in
8455 "" | " "*) ;;
8456 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8457 esac
8458else
8459 lt_prog_compiler_pic=
8460 lt_prog_compiler_can_build_shared=no
8461fi
8462
8463fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475#
8476# Check to make sure the static flag actually works.
8477#
8478wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8480$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8481if ${lt_cv_prog_compiler_static_works+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 lt_cv_prog_compiler_static_works=no
8485 save_LDFLAGS="$LDFLAGS"
8486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8487 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8489 # The linker can only warn and ignore the option if not recognized
8490 # So say no if there are warnings
8491 if test -s conftest.err; then
8492 # Append any errors to the config.log.
8493 cat conftest.err 1>&5
8494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_static_works=yes
8498 fi
8499 else
8500 lt_cv_prog_compiler_static_works=yes
8501 fi
8502 fi
8503 $RM -r conftest*
8504 LDFLAGS="$save_LDFLAGS"
8505
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8508$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8509
8510if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8511 :
8512else
8513 lt_prog_compiler_static=
8514fi
8515
8516
8517
8518
8519
8520
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8523$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8524if ${lt_cv_prog_compiler_c_o+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526else
8527 lt_cv_prog_compiler_c_o=no
8528 $RM -r conftest 2>/dev/null
8529 mkdir conftest
8530 cd conftest
8531 mkdir out
8532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533
8534 lt_compiler_flag="-o out/conftest2.$ac_objext"
8535 # Insert the option either (1) after the last *FLAGS variable, or
8536 # (2) before a word containing "conftest.", or (3) at the end.
8537 # Note that $ac_compile itself does not contain backslashes and begins
8538 # with a dollar sign (not a hyphen), so the echo should work correctly.
8539 lt_compile=`echo "$ac_compile" | $SED \
8540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8542 -e 's:$: $lt_compiler_flag:'`
8543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8544 (eval "$lt_compile" 2>out/conftest.err)
8545 ac_status=$?
8546 cat out/conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8549 then
8550 # The compiler can only warn and ignore the option if not recognized
8551 # So say no if there are warnings
8552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8555 lt_cv_prog_compiler_c_o=yes
8556 fi
8557 fi
8558 chmod u+w . 2>&5
8559 $RM conftest*
8560 # SGI C++ compiler will create directory out/ii_files/ for
8561 # template instantiation
8562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8563 $RM out/* && rmdir out
8564 cd ..
8565 $RM -r conftest
8566 $RM conftest*
8567
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8570$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8571
8572
8573
8574
8575
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8579if ${lt_cv_prog_compiler_c_o+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581else
8582 lt_cv_prog_compiler_c_o=no
8583 $RM -r conftest 2>/dev/null
8584 mkdir conftest
8585 cd conftest
8586 mkdir out
8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8588
8589 lt_compiler_flag="-o out/conftest2.$ac_objext"
8590 # Insert the option either (1) after the last *FLAGS variable, or
8591 # (2) before a word containing "conftest.", or (3) at the end.
8592 # Note that $ac_compile itself does not contain backslashes and begins
8593 # with a dollar sign (not a hyphen), so the echo should work correctly.
8594 lt_compile=`echo "$ac_compile" | $SED \
8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8597 -e 's:$: $lt_compiler_flag:'`
8598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8599 (eval "$lt_compile" 2>out/conftest.err)
8600 ac_status=$?
8601 cat out/conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8604 then
8605 # The compiler can only warn and ignore the option if not recognized
8606 # So say no if there are warnings
8607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8610 lt_cv_prog_compiler_c_o=yes
8611 fi
8612 fi
8613 chmod u+w . 2>&5
8614 $RM conftest*
8615 # SGI C++ compiler will create directory out/ii_files/ for
8616 # template instantiation
8617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8618 $RM out/* && rmdir out
8619 cd ..
8620 $RM -r conftest
8621 $RM conftest*
8622
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8625$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626
8627
8628
8629
8630hard_links="nottested"
8631if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8632 # do not overwrite the value of need_locks provided by the user
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8634$as_echo_n "checking if we can lock with hard links... " >&6; }
8635 hard_links=yes
8636 $RM conftest*
8637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8638 touch conftest.a
8639 ln conftest.a conftest.b 2>&5 || hard_links=no
8640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8642$as_echo "$hard_links" >&6; }
8643 if test "$hard_links" = no; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8645$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8646 need_locks=warn
8647 fi
8648else
8649 need_locks=no
8650fi
8651
8652
8653
8654
8655
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8658$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8659
8660 runpath_var=
8661 allow_undefined_flag=
8662 always_export_symbols=no
8663 archive_cmds=
8664 archive_expsym_cmds=
8665 compiler_needs_object=no
8666 enable_shared_with_static_runtimes=no
8667 export_dynamic_flag_spec=
8668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8669 hardcode_automatic=no
8670 hardcode_direct=no
8671 hardcode_direct_absolute=no
8672 hardcode_libdir_flag_spec=
Emeric Vigier2f625822012-08-06 11:09:52 -04008673 hardcode_libdir_separator=
8674 hardcode_minus_L=no
8675 hardcode_shlibpath_var=unsupported
8676 inherit_rpath=no
8677 link_all_deplibs=unknown
8678 module_cmds=
8679 module_expsym_cmds=
8680 old_archive_from_new_cmds=
8681 old_archive_from_expsyms_cmds=
8682 thread_safe_flag_spec=
8683 whole_archive_flag_spec=
8684 # include_expsyms should be a list of space-separated symbols to be *always*
8685 # included in the symbol list
8686 include_expsyms=
8687 # exclude_expsyms can be an extended regexp of symbols to exclude
8688 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8690 # as well as any symbol that contains `d'.
8691 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8693 # platforms (ab)use it in PIC code, but their linkers get confused if
8694 # the symbol is explicitly referenced. Since portable code cannot
8695 # rely on this symbol name, it's probably fine to never include it in
8696 # preloaded symbol tables.
8697 # Exclude shared library initialization/finalization symbols.
8698 extract_expsyms_cmds=
8699
8700 case $host_os in
8701 cygwin* | mingw* | pw32* | cegcc*)
8702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8703 # When not using gcc, we currently assume that we are using
8704 # Microsoft Visual C++.
8705 if test "$GCC" != yes; then
8706 with_gnu_ld=no
8707 fi
8708 ;;
8709 interix*)
8710 # we just hope/assume this is gcc and not c89 (= MSVC++)
8711 with_gnu_ld=yes
8712 ;;
8713 openbsd*)
8714 with_gnu_ld=no
8715 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -04008716 esac
8717
8718 ld_shlibs=yes
8719
8720 # On some targets, GNU ld is compatible enough with the native linker
8721 # that we're better off using the native interface for both.
8722 lt_use_gnu_ld_interface=no
8723 if test "$with_gnu_ld" = yes; then
8724 case $host_os in
8725 aix*)
8726 # The AIX port of GNU ld has always aspired to compatibility
8727 # with the native linker. However, as the warning in the GNU ld
8728 # block says, versions before 2.19.5* couldn't really create working
8729 # shared libraries, regardless of the interface used.
8730 case `$LD -v 2>&1` in
8731 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8732 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8733 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8734 *)
8735 lt_use_gnu_ld_interface=yes
8736 ;;
8737 esac
8738 ;;
8739 *)
8740 lt_use_gnu_ld_interface=yes
8741 ;;
8742 esac
8743 fi
8744
8745 if test "$lt_use_gnu_ld_interface" = yes; then
8746 # If archive_cmds runs LD, not CC, wlarc should be empty
8747 wlarc='${wl}'
8748
8749 # Set some defaults for GNU ld with shared library support. These
8750 # are reset later if shared libraries are not supported. Putting them
8751 # here allows them to be overridden if necessary.
8752 runpath_var=LD_RUN_PATH
8753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754 export_dynamic_flag_spec='${wl}--export-dynamic'
8755 # ancient GNU ld didn't support --whole-archive et. al.
8756 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8757 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8758 else
8759 whole_archive_flag_spec=
8760 fi
8761 supports_anon_versioning=no
8762 case `$LD -v 2>&1` in
8763 *GNU\ gold*) supports_anon_versioning=yes ;;
8764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8767 *\ 2.11.*) ;; # other 2.11 versions
8768 *) supports_anon_versioning=yes ;;
8769 esac
8770
8771 # See if GNU ld supports shared libraries.
8772 case $host_os in
8773 aix[3-9]*)
8774 # On AIX/PPC, the GNU linker is very broken
8775 if test "$host_cpu" != ia64; then
8776 ld_shlibs=no
8777 cat <<_LT_EOF 1>&2
8778
8779*** Warning: the GNU linker, at least up to release 2.19, is reported
8780*** to be unable to reliably create shared libraries on AIX.
8781*** Therefore, libtool is disabling shared libraries support. If you
8782*** really care for shared libraries, you may want to install binutils
8783*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8784*** You will then need to restart the configuration process.
8785
8786_LT_EOF
8787 fi
8788 ;;
8789
8790 amigaos*)
8791 case $host_cpu in
8792 powerpc)
8793 # see comment about AmigaOS4 .so support
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 archive_expsym_cmds=''
8796 ;;
8797 m68k)
8798 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)'
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_minus_L=yes
8801 ;;
8802 esac
8803 ;;
8804
8805 beos*)
8806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8807 allow_undefined_flag=unsupported
8808 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8809 # support --undefined. This deserves some investigation. FIXME
8810 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 else
8812 ld_shlibs=no
8813 fi
8814 ;;
8815
8816 cygwin* | mingw* | pw32* | cegcc*)
8817 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8818 # as there is no search path for DLLs.
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 export_dynamic_flag_spec='${wl}--export-all-symbols'
8821 allow_undefined_flag=unsupported
8822 always_export_symbols=no
8823 enable_shared_with_static_runtimes=yes
8824 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'
8825 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8826
8827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8829 # If the export-symbols file already is a .def file (1st line
8830 # is EXPORTS), use it as is; otherwise, prepend...
8831 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8832 cp $export_symbols $output_objdir/$soname.def;
8833 else
8834 echo EXPORTS > $output_objdir/$soname.def;
8835 cat $export_symbols >> $output_objdir/$soname.def;
8836 fi~
8837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8838 else
8839 ld_shlibs=no
8840 fi
8841 ;;
8842
8843 haiku*)
8844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 link_all_deplibs=yes
8846 ;;
8847
8848 interix[3-9]*)
8849 hardcode_direct=no
8850 hardcode_shlibpath_var=no
8851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8852 export_dynamic_flag_spec='${wl}-E'
8853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8854 # Instead, shared libraries are loaded at an image base (0x10000000 by
8855 # default) and relocated if they conflict, which is a slow very memory
8856 # consuming and fragmenting process. To avoid this, we pick a random,
8857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8860 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'
8861 ;;
8862
8863 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8864 tmp_diet=no
8865 if test "$host_os" = linux-dietlibc; then
8866 case $cc_basename in
8867 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8868 esac
8869 fi
8870 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8871 && test "$tmp_diet" = no
8872 then
8873 tmp_addflag=' $pic_flag'
8874 tmp_sharedflag='-shared'
8875 case $cc_basename,$host_cpu in
8876 pgcc*) # Portland Group C compiler
8877 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'
8878 tmp_addflag=' $pic_flag'
8879 ;;
8880 pgf77* | pgf90* | pgf95* | pgfortran*)
8881 # Portland Group f77 and f90 compilers
8882 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'
8883 tmp_addflag=' $pic_flag -Mnomain' ;;
8884 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8885 tmp_addflag=' -i_dynamic' ;;
8886 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8887 tmp_addflag=' -i_dynamic -nofor_main' ;;
8888 ifc* | ifort*) # Intel Fortran compiler
8889 tmp_addflag=' -nofor_main' ;;
8890 lf95*) # Lahey Fortran 8.1
8891 whole_archive_flag_spec=
8892 tmp_sharedflag='--shared' ;;
8893 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8894 tmp_sharedflag='-qmkshrobj'
8895 tmp_addflag= ;;
8896 nvcc*) # Cuda Compiler Driver 2.2
8897 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'
8898 compiler_needs_object=yes
8899 ;;
8900 esac
8901 case `$CC -V 2>&1 | sed 5q` in
8902 *Sun\ C*) # Sun C 5.9
8903 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'
8904 compiler_needs_object=yes
8905 tmp_sharedflag='-G' ;;
8906 *Sun\ F*) # Sun Fortran 8.3
8907 tmp_sharedflag='-G' ;;
8908 esac
8909 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910
8911 if test "x$supports_anon_versioning" = xyes; then
8912 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8914 echo "local: *; };" >> $output_objdir/$libname.ver~
8915 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8916 fi
8917
8918 case $cc_basename in
8919 xlf* | bgf* | bgxlf* | mpixlf*)
8920 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8921 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Emeric Vigier2f625822012-08-06 11:09:52 -04008923 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8924 if test "x$supports_anon_versioning" = xyes; then
8925 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8927 echo "local: *; };" >> $output_objdir/$libname.ver~
8928 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8929 fi
8930 ;;
8931 esac
8932 else
8933 ld_shlibs=no
8934 fi
8935 ;;
8936
Alexandre Lisionddd731e2014-01-31 11:50:08 -05008937 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04008938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8939 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8940 wlarc=
8941 else
8942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8944 fi
8945 ;;
8946
8947 solaris*)
8948 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8949 ld_shlibs=no
8950 cat <<_LT_EOF 1>&2
8951
8952*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8953*** create shared libraries on Solaris systems. Therefore, libtool
8954*** is disabling shared libraries support. We urge you to upgrade GNU
8955*** binutils to release 2.9.1 or newer. Another option is to modify
8956*** your PATH or compiler configuration so that the native linker is
8957*** used, and then restart.
8958
8959_LT_EOF
8960 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8963 else
8964 ld_shlibs=no
8965 fi
8966 ;;
8967
8968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8969 case `$LD -v 2>&1` in
8970 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8973
8974*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8975*** reliably create shared libraries on SCO systems. Therefore, libtool
8976*** is disabling shared libraries support. We urge you to upgrade GNU
8977*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8978*** your PATH or compiler configuration so that the native linker is
8979*** used, and then restart.
8980
8981_LT_EOF
8982 ;;
8983 *)
8984 # For security reasons, it is highly recommended that you always
8985 # use absolute paths for naming shared libraries, and exclude the
8986 # DT_RUNPATH tag from executables and libraries. But doing so
8987 # requires that you compile everything twice, which is a pain.
8988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992 else
8993 ld_shlibs=no
8994 fi
8995 ;;
8996 esac
8997 ;;
8998
8999 sunos4*)
9000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9001 wlarc=
9002 hardcode_direct=yes
9003 hardcode_shlibpath_var=no
9004 ;;
9005
9006 *)
9007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
9014 esac
9015
9016 if test "$ld_shlibs" = no; then
9017 runpath_var=
9018 hardcode_libdir_flag_spec=
9019 export_dynamic_flag_spec=
9020 whole_archive_flag_spec=
9021 fi
9022 else
9023 # PORTME fill in a description of your system's linker (not GNU ld)
9024 case $host_os in
9025 aix3*)
9026 allow_undefined_flag=unsupported
9027 always_export_symbols=yes
9028 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'
9029 # Note: this linker hardcodes the directories in LIBPATH if there
9030 # are no directories specified by -L.
9031 hardcode_minus_L=yes
9032 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9033 # Neither direct hardcoding nor static linking is supported with a
9034 # broken collect2.
9035 hardcode_direct=unsupported
9036 fi
9037 ;;
9038
9039 aix[4-9]*)
9040 if test "$host_cpu" = ia64; then
9041 # On IA64, the linker does run time linking by default, so we don't
9042 # have to do anything special.
9043 aix_use_runtimelinking=no
9044 exp_sym_flag='-Bexport'
9045 no_entry_flag=""
9046 else
9047 # If we're using GNU nm, then we don't want the "-C" option.
9048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9049 # Also, AIX nm treats weak defined symbols like other global
9050 # defined symbols, whereas GNU nm marks them as "W".
9051 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9052 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9053 else
9054 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9055 fi
9056 aix_use_runtimelinking=no
9057
9058 # Test if we are trying to use run time linking or normal
9059 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9060 # need to do runtime linking.
9061 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9062 for ld_flag in $LDFLAGS; do
9063 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9064 aix_use_runtimelinking=yes
9065 break
9066 fi
9067 done
9068 ;;
9069 esac
9070
9071 exp_sym_flag='-bexport'
9072 no_entry_flag='-bnoentry'
9073 fi
9074
9075 # When large executables or shared objects are built, AIX ld can
9076 # have problems creating the table of contents. If linking a library
9077 # or program results in "error TOC overflow" add -mminimal-toc to
9078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9080
9081 archive_cmds=''
9082 hardcode_direct=yes
9083 hardcode_direct_absolute=yes
9084 hardcode_libdir_separator=':'
9085 link_all_deplibs=yes
9086 file_list_spec='${wl}-f,'
9087
9088 if test "$GCC" = yes; then
9089 case $host_os in aix4.[012]|aix4.[012].*)
9090 # We only want to do this on AIX 4.2 and lower, the check
9091 # below for broken collect2 doesn't work under 4.3+
9092 collect2name=`${CC} -print-prog-name=collect2`
9093 if test -f "$collect2name" &&
9094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9095 then
9096 # We have reworked collect2
9097 :
9098 else
9099 # We have old collect2
9100 hardcode_direct=unsupported
9101 # It fails to find uninstalled libraries when the uninstalled
9102 # path is not listed in the libpath. Setting hardcode_minus_L
9103 # to unsupported forces relinking
9104 hardcode_minus_L=yes
9105 hardcode_libdir_flag_spec='-L$libdir'
9106 hardcode_libdir_separator=
9107 fi
9108 ;;
9109 esac
9110 shared_flag='-shared'
9111 if test "$aix_use_runtimelinking" = yes; then
9112 shared_flag="$shared_flag "'${wl}-G'
9113 fi
Emeric Vigier2f625822012-08-06 11:09:52 -04009114 else
9115 # not using gcc
9116 if test "$host_cpu" = ia64; then
9117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9118 # chokes on -Wl,-G. The following line is correct:
9119 shared_flag='-G'
9120 else
9121 if test "$aix_use_runtimelinking" = yes; then
9122 shared_flag='${wl}-G'
9123 else
9124 shared_flag='${wl}-bM:SRE'
9125 fi
9126 fi
9127 fi
9128
9129 export_dynamic_flag_spec='${wl}-bexpall'
9130 # It seems that -bexpall does not export symbols beginning with
9131 # underscore (_), so it is better to generate a list of symbols to export.
9132 always_export_symbols=yes
9133 if test "$aix_use_runtimelinking" = yes; then
9134 # Warning - without using the other runtime loading flags (-brtl),
9135 # -berok will link without error, but may produce a broken library.
9136 allow_undefined_flag='-berok'
9137 # Determine the default libpath from the value encoded in an
9138 # empty executable.
9139 if test "${lt_cv_aix_libpath+set}" = set; then
9140 aix_libpath=$lt_cv_aix_libpath
9141else
9142 if ${lt_cv_aix_libpath_+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h. */
9147
9148int
9149main ()
9150{
9151
9152 ;
9153 return 0;
9154}
9155_ACEOF
9156if ac_fn_c_try_link "$LINENO"; then :
9157
9158 lt_aix_libpath_sed='
9159 /Import File Strings/,/^$/ {
9160 /^0/ {
9161 s/^0 *\([^ ]*\) *$/\1/
9162 p
9163 }
9164 }'
9165 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9166 # Check for a 64-bit object if we didn't find anything.
9167 if test -z "$lt_cv_aix_libpath_"; then
9168 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9169 fi
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 if test -z "$lt_cv_aix_libpath_"; then
9174 lt_cv_aix_libpath_="/usr/lib:/lib"
9175 fi
9176
9177fi
9178
9179 aix_libpath=$lt_cv_aix_libpath_
9180fi
9181
9182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9183 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9184 else
9185 if test "$host_cpu" = ia64; then
9186 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9187 allow_undefined_flag="-z nodefs"
9188 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"
9189 else
9190 # Determine the default libpath from the value encoded in an
9191 # empty executable.
9192 if test "${lt_cv_aix_libpath+set}" = set; then
9193 aix_libpath=$lt_cv_aix_libpath
9194else
9195 if ${lt_cv_aix_libpath_+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h. */
9200
9201int
9202main ()
9203{
9204
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_link "$LINENO"; then :
9210
9211 lt_aix_libpath_sed='
9212 /Import File Strings/,/^$/ {
9213 /^0/ {
9214 s/^0 *\([^ ]*\) *$/\1/
9215 p
9216 }
9217 }'
9218 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219 # Check for a 64-bit object if we didn't find anything.
9220 if test -z "$lt_cv_aix_libpath_"; then
9221 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 fi
9223fi
9224rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 if test -z "$lt_cv_aix_libpath_"; then
9227 lt_cv_aix_libpath_="/usr/lib:/lib"
9228 fi
9229
9230fi
9231
9232 aix_libpath=$lt_cv_aix_libpath_
9233fi
9234
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 # Warning - without using the other run time loading flags,
9237 # -berok will link without error, but may produce a broken library.
9238 no_undefined_flag=' ${wl}-bernotok'
9239 allow_undefined_flag=' ${wl}-berok'
9240 if test "$with_gnu_ld" = yes; then
9241 # We only use this code for GNU lds that support --whole-archive.
9242 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9243 else
9244 # Exported symbols can be pulled into shared objects from archives
9245 whole_archive_flag_spec='$convenience'
9246 fi
9247 archive_cmds_need_lc=yes
9248 # This is similar to how AIX traditionally builds its shared libraries.
9249 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9250 fi
9251 fi
9252 ;;
9253
9254 amigaos*)
9255 case $host_cpu in
9256 powerpc)
9257 # see comment about AmigaOS4 .so support
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds=''
9260 ;;
9261 m68k)
9262 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)'
9263 hardcode_libdir_flag_spec='-L$libdir'
9264 hardcode_minus_L=yes
9265 ;;
9266 esac
9267 ;;
9268
9269 bsdi[45]*)
9270 export_dynamic_flag_spec=-rdynamic
9271 ;;
9272
9273 cygwin* | mingw* | pw32* | cegcc*)
9274 # When not using gcc, we currently assume that we are using
9275 # Microsoft Visual C++.
9276 # hardcode_libdir_flag_spec is actually meaningless, as there is
9277 # no search path for DLLs.
9278 case $cc_basename in
9279 cl*)
9280 # Native MSVC
9281 hardcode_libdir_flag_spec=' '
9282 allow_undefined_flag=unsupported
9283 always_export_symbols=yes
9284 file_list_spec='@'
9285 # Tell ltmain to make .lib files, not .a files.
9286 libext=lib
9287 # Tell ltmain to make .dll files, not .so files.
9288 shrext_cmds=".dll"
9289 # FIXME: Setting linknames here is a bad hack.
9290 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9291 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9292 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9293 else
9294 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9295 fi~
9296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9297 linknames='
9298 # The linker will not automatically build a static lib if we build a DLL.
9299 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9300 enable_shared_with_static_runtimes=yes
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009301 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
Emeric Vigier2f625822012-08-06 11:09:52 -04009302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9303 # Don't use ranlib
9304 old_postinstall_cmds='chmod 644 $oldlib'
9305 postlink_cmds='lt_outputfile="@OUTPUT@"~
9306 lt_tool_outputfile="@TOOL_OUTPUT@"~
9307 case $lt_outputfile in
9308 *.exe|*.EXE) ;;
9309 *)
9310 lt_outputfile="$lt_outputfile.exe"
9311 lt_tool_outputfile="$lt_tool_outputfile.exe"
9312 ;;
9313 esac~
9314 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9315 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9316 $RM "$lt_outputfile.manifest";
9317 fi'
9318 ;;
9319 *)
9320 # Assume MSVC wrapper
9321 hardcode_libdir_flag_spec=' '
9322 allow_undefined_flag=unsupported
9323 # Tell ltmain to make .lib files, not .a files.
9324 libext=lib
9325 # Tell ltmain to make .dll files, not .so files.
9326 shrext_cmds=".dll"
9327 # FIXME: Setting linknames here is a bad hack.
9328 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9329 # The linker will automatically build a .lib file if we build a DLL.
9330 old_archive_from_new_cmds='true'
9331 # FIXME: Should let the user specify the lib program.
9332 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9333 enable_shared_with_static_runtimes=yes
9334 ;;
9335 esac
9336 ;;
9337
9338 darwin* | rhapsody*)
9339
9340
9341 archive_cmds_need_lc=no
9342 hardcode_direct=no
9343 hardcode_automatic=yes
9344 hardcode_shlibpath_var=unsupported
9345 if test "$lt_cv_ld_force_load" = "yes"; then
9346 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\"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009347
Emeric Vigier2f625822012-08-06 11:09:52 -04009348 else
9349 whole_archive_flag_spec=''
9350 fi
9351 link_all_deplibs=yes
9352 allow_undefined_flag="$_lt_dar_allow_undefined"
9353 case $cc_basename in
9354 ifort*) _lt_dar_can_shared=yes ;;
9355 *) _lt_dar_can_shared=$GCC ;;
9356 esac
9357 if test "$_lt_dar_can_shared" = "yes"; then
9358 output_verbose_link_cmd=func_echo_all
9359 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9360 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9361 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}"
9362 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}"
9363
9364 else
9365 ld_shlibs=no
9366 fi
9367
9368 ;;
9369
9370 dgux*)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_shlibpath_var=no
9374 ;;
9375
Emeric Vigier2f625822012-08-06 11:09:52 -04009376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9377 # support. Future versions do this automatically, but an explicit c++rt0.o
9378 # does not break anything, and helps significantly (at the cost of a little
9379 # extra space).
9380 freebsd2.2*)
9381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9382 hardcode_libdir_flag_spec='-R$libdir'
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009388 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -04009389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=yes
9391 hardcode_minus_L=yes
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9396 freebsd* | dragonfly*)
9397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9398 hardcode_libdir_flag_spec='-R$libdir'
9399 hardcode_direct=yes
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 hpux9*)
9404 if test "$GCC" = yes; then
9405 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9406 else
9407 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9408 fi
9409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9410 hardcode_libdir_separator=:
9411 hardcode_direct=yes
9412
9413 # hardcode_minus_L: Not really in the search PATH,
9414 # but as the default location of the library.
9415 hardcode_minus_L=yes
9416 export_dynamic_flag_spec='${wl}-E'
9417 ;;
9418
9419 hpux10*)
9420 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9421 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 else
9423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9424 fi
9425 if test "$with_gnu_ld" = no; then
9426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Emeric Vigier2f625822012-08-06 11:09:52 -04009427 hardcode_libdir_separator=:
9428 hardcode_direct=yes
9429 hardcode_direct_absolute=yes
9430 export_dynamic_flag_spec='${wl}-E'
9431 # hardcode_minus_L: Not really in the search PATH,
9432 # but as the default location of the library.
9433 hardcode_minus_L=yes
9434 fi
9435 ;;
9436
9437 hpux11*)
9438 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9439 case $host_cpu in
9440 hppa*64*)
9441 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 ;;
9443 ia64*)
9444 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 *)
9447 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 esac
9450 else
9451 case $host_cpu in
9452 hppa*64*)
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 ia64*)
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457 ;;
9458 *)
9459
9460 # Older versions of the 11.00 compiler do not understand -b yet
9461 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9463$as_echo_n "checking if $CC understands -b... " >&6; }
9464if ${lt_cv_prog_compiler__b+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466else
9467 lt_cv_prog_compiler__b=no
9468 save_LDFLAGS="$LDFLAGS"
9469 LDFLAGS="$LDFLAGS -b"
9470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9472 # The linker can only warn and ignore the option if not recognized
9473 # So say no if there are warnings
9474 if test -s conftest.err; then
9475 # Append any errors to the config.log.
9476 cat conftest.err 1>&5
9477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler__b=yes
9481 fi
9482 else
9483 lt_cv_prog_compiler__b=yes
9484 fi
9485 fi
9486 $RM -r conftest*
9487 LDFLAGS="$save_LDFLAGS"
9488
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9491$as_echo "$lt_cv_prog_compiler__b" >&6; }
9492
9493if test x"$lt_cv_prog_compiler__b" = xyes; then
9494 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9495else
9496 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9497fi
9498
9499 ;;
9500 esac
9501 fi
9502 if test "$with_gnu_ld" = no; then
9503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505
9506 case $host_cpu in
9507 hppa*64*|ia64*)
9508 hardcode_direct=no
9509 hardcode_shlibpath_var=no
9510 ;;
9511 *)
9512 hardcode_direct=yes
9513 hardcode_direct_absolute=yes
9514 export_dynamic_flag_spec='${wl}-E'
9515
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9519 ;;
9520 esac
9521 fi
9522 ;;
9523
9524 irix5* | irix6* | nonstopux*)
9525 if test "$GCC" = yes; then
9526 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'
9527 # Try to use the -exported_symbol ld option, if it does not
9528 # work, assume that -exports_file does not work either and
9529 # implicitly export all symbols.
9530 # This should be the same for all languages, so no per-tag cache variable.
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9532$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9533if ${lt_cv_irix_exported_symbol+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535else
9536 save_LDFLAGS="$LDFLAGS"
9537 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h. */
9540int foo (void) { return 0; }
9541_ACEOF
9542if ac_fn_c_try_link "$LINENO"; then :
9543 lt_cv_irix_exported_symbol=yes
9544else
9545 lt_cv_irix_exported_symbol=no
9546fi
9547rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 LDFLAGS="$save_LDFLAGS"
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9552$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9553 if test "$lt_cv_irix_exported_symbol" = yes; then
9554 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'
9555 fi
9556 else
9557 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'
9558 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'
9559 fi
9560 archive_cmds_need_lc='no'
9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562 hardcode_libdir_separator=:
9563 inherit_rpath=yes
9564 link_all_deplibs=yes
9565 ;;
9566
Alexandre Lisionddd731e2014-01-31 11:50:08 -05009567 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -04009568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9570 else
9571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9572 fi
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 ;;
9577
9578 newsos6)
9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_direct=yes
9581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582 hardcode_libdir_separator=:
9583 hardcode_shlibpath_var=no
9584 ;;
9585
9586 *nto* | *qnx*)
9587 ;;
9588
9589 openbsd*)
9590 if test -f /usr/libexec/ld.so; then
9591 hardcode_direct=yes
9592 hardcode_shlibpath_var=no
9593 hardcode_direct_absolute=yes
9594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9598 export_dynamic_flag_spec='${wl}-E'
9599 else
9600 case $host_os in
9601 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='-R$libdir'
9604 ;;
9605 *)
9606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9608 ;;
9609 esac
9610 fi
9611 else
9612 ld_shlibs=no
9613 fi
9614 ;;
9615
9616 os2*)
9617 hardcode_libdir_flag_spec='-L$libdir'
9618 hardcode_minus_L=yes
9619 allow_undefined_flag=unsupported
9620 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9621 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9622 ;;
9623
9624 osf3*)
9625 if test "$GCC" = yes; then
9626 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9627 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'
9628 else
9629 allow_undefined_flag=' -expect_unresolved \*'
9630 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'
9631 fi
9632 archive_cmds_need_lc='no'
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 hardcode_libdir_separator=:
9635 ;;
9636
9637 osf4* | osf5*) # as osf3* with the addition of -msym flag
9638 if test "$GCC" = yes; then
9639 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9640 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'
9641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642 else
9643 allow_undefined_flag=' -expect_unresolved \*'
9644 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'
9645 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~
9646 $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'
9647
9648 # Both c and cxx compiler support -rpath directly
9649 hardcode_libdir_flag_spec='-rpath $libdir'
9650 fi
9651 archive_cmds_need_lc='no'
9652 hardcode_libdir_separator=:
9653 ;;
9654
9655 solaris*)
9656 no_undefined_flag=' -z defs'
9657 if test "$GCC" = yes; then
9658 wlarc='${wl}'
9659 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9661 $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'
9662 else
9663 case `$CC -V 2>&1` in
9664 *"Compilers 5.0"*)
9665 wlarc=''
9666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9669 ;;
9670 *)
9671 wlarc='${wl}'
9672 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9674 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9675 ;;
9676 esac
9677 fi
9678 hardcode_libdir_flag_spec='-R$libdir'
9679 hardcode_shlibpath_var=no
9680 case $host_os in
9681 solaris2.[0-5] | solaris2.[0-5].*) ;;
9682 *)
9683 # The compiler driver will combine and reorder linker options,
9684 # but understands `-z linker_flag'. GCC discards it without `$wl',
9685 # but is careful enough not to reorder.
9686 # Supported since Solaris 2.6 (maybe 2.5.1?)
9687 if test "$GCC" = yes; then
9688 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9689 else
9690 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9691 fi
9692 ;;
9693 esac
9694 link_all_deplibs=yes
9695 ;;
9696
9697 sunos4*)
9698 if test "x$host_vendor" = xsequent; then
9699 # Use $CC to link under sequent, because it throws in some extra .o
9700 # files that make .init and .fini sections work.
9701 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9704 fi
9705 hardcode_libdir_flag_spec='-L$libdir'
9706 hardcode_direct=yes
9707 hardcode_minus_L=yes
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 sysv4)
9712 case $host_vendor in
9713 sni)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_direct=yes # is this really true???
9716 ;;
9717 siemens)
9718 ## LD is ld it makes a PLAMLIB
9719 ## CC just makes a GrossModule.
9720 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9721 reload_cmds='$CC -r -o $output$reload_objs'
9722 hardcode_direct=no
9723 ;;
9724 motorola)
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9727 ;;
9728 esac
9729 runpath_var='LD_RUN_PATH'
9730 hardcode_shlibpath_var=no
9731 ;;
9732
9733 sysv4.3*)
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_shlibpath_var=no
9736 export_dynamic_flag_spec='-Bexport'
9737 ;;
9738
9739 sysv4*MP*)
9740 if test -d /usr/nec; then
9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_shlibpath_var=no
9743 runpath_var=LD_RUN_PATH
9744 hardcode_runpath_var=yes
9745 ld_shlibs=yes
9746 fi
9747 ;;
9748
9749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9750 no_undefined_flag='${wl}-z,text'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 runpath_var='LD_RUN_PATH'
9754
9755 if test "$GCC" = yes; then
9756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 fi
9762 ;;
9763
9764 sysv5* | sco3.2v5* | sco5v6*)
9765 # Note: We can NOT use -z defs as we might desire, because we do not
9766 # link with -lc, and that would cause any symbols used from libc to
9767 # always be unresolved, which means just about no library would
9768 # ever link correctly. If we're not using GNU ld we use -z text
9769 # though, which does catch some bad symbols but isn't as heavy-handed
9770 # as -z defs.
9771 no_undefined_flag='${wl}-z,text'
9772 allow_undefined_flag='${wl}-z,nodefs'
9773 archive_cmds_need_lc=no
9774 hardcode_shlibpath_var=no
9775 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9776 hardcode_libdir_separator=':'
9777 link_all_deplibs=yes
9778 export_dynamic_flag_spec='${wl}-Bexport'
9779 runpath_var='LD_RUN_PATH'
9780
9781 if test "$GCC" = yes; then
9782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 else
9785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 fi
9788 ;;
9789
9790 uts4*)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 *)
9797 ld_shlibs=no
9798 ;;
9799 esac
9800
9801 if test x$host_vendor = xsni; then
9802 case $host in
9803 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9804 export_dynamic_flag_spec='${wl}-Blargedynsym'
9805 ;;
9806 esac
9807 fi
9808 fi
9809
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9811$as_echo "$ld_shlibs" >&6; }
9812test "$ld_shlibs" = no && can_build_shared=no
9813
9814with_gnu_ld=$with_gnu_ld
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830#
9831# Do we need to explicitly link libc?
9832#
9833case "x$archive_cmds_need_lc" in
9834x|xyes)
9835 # Assume -lc should be added
9836 archive_cmds_need_lc=yes
9837
9838 if test "$enable_shared" = yes && test "$GCC" = yes; then
9839 case $archive_cmds in
9840 *'~'*)
9841 # FIXME: we may have to deal with multi-command sequences.
9842 ;;
9843 '$CC '*)
9844 # Test whether the compiler implicitly links with -lc since on some
9845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9846 # to ld, don't add -lc before -lgcc.
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9848$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9849if ${lt_cv_archive_cmds_need_lc+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851else
9852 $RM conftest*
9853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9854
9855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9856 (eval $ac_compile) 2>&5
9857 ac_status=$?
9858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9859 test $ac_status = 0; } 2>conftest.err; then
9860 soname=conftest
9861 lib=conftest
9862 libobjs=conftest.$ac_objext
9863 deplibs=
9864 wl=$lt_prog_compiler_wl
9865 pic_flag=$lt_prog_compiler_pic
9866 compiler_flags=-v
9867 linker_flags=-v
9868 verstring=
9869 output_objdir=.
9870 libname=conftest
9871 lt_save_allow_undefined_flag=$allow_undefined_flag
9872 allow_undefined_flag=
9873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9874 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9875 ac_status=$?
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }
9878 then
9879 lt_cv_archive_cmds_need_lc=no
9880 else
9881 lt_cv_archive_cmds_need_lc=yes
9882 fi
9883 allow_undefined_flag=$lt_save_allow_undefined_flag
9884 else
9885 cat conftest.err 1>&5
9886 fi
9887 $RM conftest*
9888
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9891$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9892 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9893 ;;
9894 esac
9895 fi
9896 ;;
9897esac
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
Emeric Vigier2f625822012-08-06 11:09:52 -040010050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10051$as_echo_n "checking dynamic linker characteristics... " >&6; }
10052
10053if test "$GCC" = yes; then
10054 case $host_os in
10055 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10056 *) lt_awk_arg="/^libraries:/" ;;
10057 esac
10058 case $host_os in
10059 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10060 *) lt_sed_strip_eq="s,=/,/,g" ;;
10061 esac
10062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10063 case $lt_search_path_spec in
10064 *\;*)
10065 # if the path contains ";" then we assume it to be the separator
10066 # otherwise default to the standard path separator (i.e. ":") - it is
10067 # assumed that no part of a normal pathname contains ";" but that should
10068 # okay in the real world where ";" in dirpaths is itself problematic.
10069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10070 ;;
10071 *)
10072 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10073 ;;
10074 esac
10075 # Ok, now we have the path, separated by spaces, we can step through it
10076 # and add multilib dir if necessary.
10077 lt_tmp_lt_search_path_spec=
10078 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10079 for lt_sys_path in $lt_search_path_spec; do
10080 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10082 else
10083 test -d "$lt_sys_path" && \
10084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10085 fi
10086 done
10087 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10088BEGIN {RS=" "; FS="/|\n";} {
10089 lt_foo="";
10090 lt_count=0;
10091 for (lt_i = NF; lt_i > 0; lt_i--) {
10092 if ($lt_i != "" && $lt_i != ".") {
10093 if ($lt_i == "..") {
10094 lt_count++;
10095 } else {
10096 if (lt_count == 0) {
10097 lt_foo="/" $lt_i lt_foo;
10098 } else {
10099 lt_count--;
10100 }
10101 }
10102 }
10103 }
10104 if (lt_foo != "") { lt_freq[lt_foo]++; }
10105 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10106}'`
10107 # AWK program above erroneously prepends '/' to C:/dos/paths
10108 # for these hosts.
10109 case $host_os in
10110 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10111 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10112 esac
10113 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10114else
10115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10116fi
10117library_names_spec=
10118libname_spec='lib$name'
10119soname_spec=
10120shrext_cmds=".so"
10121postinstall_cmds=
10122postuninstall_cmds=
10123finish_cmds=
10124finish_eval=
10125shlibpath_var=
10126shlibpath_overrides_runpath=unknown
10127version_type=none
10128dynamic_linker="$host_os ld.so"
10129sys_lib_dlsearch_path_spec="/lib /usr/lib"
10130need_lib_prefix=unknown
10131hardcode_into_libs=no
10132
10133# when you set need_version to no, make sure it does not cause -set_version
10134# flags to be left without arguments
10135need_version=unknown
10136
10137case $host_os in
10138aix3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010139 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10141 shlibpath_var=LIBPATH
10142
10143 # AIX 3 has no versioning support, so we append a major version to the name.
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 ;;
10146
10147aix[4-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010148 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010149 need_lib_prefix=no
10150 need_version=no
10151 hardcode_into_libs=yes
10152 if test "$host_cpu" = ia64; then
10153 # AIX 5 supports IA64
10154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 else
10157 # With GCC up to 2.95.x, collect2 would create an import file
10158 # for dependence libraries. The import file would start with
10159 # the line `#! .'. This would cause the generated library to
10160 # depend on `.', always an invalid library. This was fixed in
10161 # development snapshots of GCC prior to 3.0.
10162 case $host_os in
10163 aix4 | aix4.[01] | aix4.[01].*)
10164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10165 echo ' yes '
10166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10167 :
10168 else
10169 can_build_shared=no
10170 fi
10171 ;;
10172 esac
10173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10174 # soname into executable. Probably we can add versioning support to
10175 # collect2, so additional links can be useful in future.
10176 if test "$aix_use_runtimelinking" = yes; then
10177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10178 # instead of lib<name>.a to let people know that these are not
10179 # typical AIX shared libraries.
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 else
10182 # We preserve .a as extension for shared libraries through AIX4.2
10183 # and later when we are not doing run time linking.
10184 library_names_spec='${libname}${release}.a $libname.a'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 fi
10187 shlibpath_var=LIBPATH
10188 fi
10189 ;;
10190
10191amigaos*)
10192 case $host_cpu in
10193 powerpc)
10194 # Since July 2007 AmigaOS4 officially supports .so libraries.
10195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 ;;
10198 m68k)
10199 library_names_spec='$libname.ixlibrary $libname.a'
10200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10201 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10202 ;;
10203 esac
10204 ;;
10205
10206beos*)
10207 library_names_spec='${libname}${shared_ext}'
10208 dynamic_linker="$host_os ld.so"
10209 shlibpath_var=LIBRARY_PATH
10210 ;;
10211
10212bsdi[45]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010213 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10221 # the default ld.so.conf also contains /usr/contrib/lib and
10222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10223 # libtool to hard-code these into programs
10224 ;;
10225
10226cygwin* | mingw* | pw32* | cegcc*)
10227 version_type=windows
10228 shrext_cmds=".dll"
10229 need_version=no
10230 need_lib_prefix=no
10231
10232 case $GCC,$cc_basename in
10233 yes,*)
10234 # gcc
10235 library_names_spec='$libname.dll.a'
10236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10237 postinstall_cmds='base_file=`basename \${file}`~
10238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10239 dldir=$destdir/`dirname \$dlpath`~
10240 test -d \$dldir || mkdir -p \$dldir~
10241 $install_prog $dir/$dlname \$dldir/$dlname~
10242 chmod a+x \$dldir/$dlname~
10243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10245 fi'
10246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10247 dlpath=$dir/\$dldll~
10248 $RM \$dlpath'
10249 shlibpath_overrides_runpath=yes
10250
10251 case $host_os in
10252 cygwin*)
10253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255
10256 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10257 ;;
10258 mingw* | cegcc*)
10259 # MinGW DLLs use traditional 'lib' prefix
10260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10261 ;;
10262 pw32*)
10263 # pw32 DLLs use 'pw' prefix rather than 'lib'
10264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10265 ;;
10266 esac
10267 dynamic_linker='Win32 ld.exe'
10268 ;;
10269
10270 *,cl*)
10271 # Native MSVC
10272 libname_spec='$name'
10273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10274 library_names_spec='${libname}.dll.lib'
10275
10276 case $build_os in
10277 mingw*)
10278 sys_lib_search_path_spec=
10279 lt_save_ifs=$IFS
10280 IFS=';'
10281 for lt_path in $LIB
10282 do
10283 IFS=$lt_save_ifs
10284 # Let DOS variable expansion print the short 8.3 style file name.
10285 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10287 done
10288 IFS=$lt_save_ifs
10289 # Convert to MSYS style.
10290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10291 ;;
10292 cygwin*)
10293 # Convert to unix form, then to dos form, then back to unix form
10294 # but this time dos style (no spaces!) so that the unix form looks
10295 # like /cygdrive/c/PROGRA~1:/cygdr...
10296 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10297 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10298 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10299 ;;
10300 *)
10301 sys_lib_search_path_spec="$LIB"
10302 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10303 # It is most probably a Windows format PATH.
10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10305 else
10306 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10307 fi
10308 # FIXME: find the short name or the path components, as spaces are
10309 # common. (e.g. "Program Files" -> "PROGRA~1")
10310 ;;
10311 esac
10312
10313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10314 postinstall_cmds='base_file=`basename \${file}`~
10315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10316 dldir=$destdir/`dirname \$dlpath`~
10317 test -d \$dldir || mkdir -p \$dldir~
10318 $install_prog $dir/$dlname \$dldir/$dlname'
10319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10320 dlpath=$dir/\$dldll~
10321 $RM \$dlpath'
10322 shlibpath_overrides_runpath=yes
10323 dynamic_linker='Win32 link.exe'
10324 ;;
10325
10326 *)
10327 # Assume MSVC wrapper
10328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10329 dynamic_linker='Win32 ld.exe'
10330 ;;
10331 esac
10332 # FIXME: first we should search . and the directory the executable is in
10333 shlibpath_var=PATH
10334 ;;
10335
10336darwin* | rhapsody*)
10337 dynamic_linker="$host_os dyld"
10338 version_type=darwin
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10342 soname_spec='${libname}${release}${major}$shared_ext'
10343 shlibpath_overrides_runpath=yes
10344 shlibpath_var=DYLD_LIBRARY_PATH
10345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10346
10347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10349 ;;
10350
10351dgux*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010352 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 ;;
10359
Emeric Vigier2f625822012-08-06 11:09:52 -040010360freebsd* | dragonfly*)
10361 # DragonFly does not have aout. When/if they implement a new
10362 # versioning mechanism, adjust this.
10363 if test -x /usr/bin/objformat; then
10364 objformat=`/usr/bin/objformat`
10365 else
10366 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010367 freebsd[23].*) objformat=aout ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040010368 *) objformat=elf ;;
10369 esac
10370 fi
10371 version_type=freebsd-$objformat
10372 case $version_type in
10373 freebsd-elf*)
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 need_version=no
10376 need_lib_prefix=no
10377 ;;
10378 freebsd-*)
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10380 need_version=yes
10381 ;;
10382 esac
10383 shlibpath_var=LD_LIBRARY_PATH
10384 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010385 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040010386 shlibpath_overrides_runpath=yes
10387 ;;
10388 freebsd3.[01]* | freebsdelf3.[01]*)
10389 shlibpath_overrides_runpath=yes
10390 hardcode_into_libs=yes
10391 ;;
10392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10394 shlibpath_overrides_runpath=no
10395 hardcode_into_libs=yes
10396 ;;
10397 *) # from 4.6 on, and DragonFly
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10400 ;;
10401 esac
10402 ;;
10403
10404gnu*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010405 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10413 ;;
10414
10415haiku*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010416 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010417 need_lib_prefix=no
10418 need_version=no
10419 dynamic_linker="$host_os runtime_loader"
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes
10424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10425 hardcode_into_libs=yes
10426 ;;
10427
10428hpux9* | hpux10* | hpux11*)
10429 # Give a soname corresponding to the major version so that dld.sl refuses to
10430 # link against other versions.
10431 version_type=sunos
10432 need_lib_prefix=no
10433 need_version=no
10434 case $host_cpu in
10435 ia64*)
10436 shrext_cmds='.so'
10437 hardcode_into_libs=yes
10438 dynamic_linker="$host_os dld.so"
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 if test "X$HPUX_IA64_MODE" = X32; then
10444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10445 else
10446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10447 fi
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449 ;;
10450 hppa*64*)
10451 shrext_cmds='.sl'
10452 hardcode_into_libs=yes
10453 dynamic_linker="$host_os dld.sl"
10454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10460 ;;
10461 *)
10462 shrext_cmds='.sl'
10463 dynamic_linker="$host_os dld.sl"
10464 shlibpath_var=SHLIB_PATH
10465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 ;;
10469 esac
10470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10471 postinstall_cmds='chmod 555 $lib'
10472 # or fails outright, so override atomically:
10473 install_override_mode=555
10474 ;;
10475
10476interix[3-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010477 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=no
10485 hardcode_into_libs=yes
10486 ;;
10487
10488irix5* | irix6* | nonstopux*)
10489 case $host_os in
10490 nonstopux*) version_type=nonstopux ;;
10491 *)
10492 if test "$lt_cv_prog_gnu_ld" = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010493 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010494 else
10495 version_type=irix
10496 fi ;;
10497 esac
10498 need_lib_prefix=no
10499 need_version=no
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10502 case $host_os in
10503 irix5* | nonstopux*)
10504 libsuff= shlibsuff=
10505 ;;
10506 *)
10507 case $LD in # libtool.m4 will add one of these switches to LD
10508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10509 libsuff= shlibsuff= libmagic=32-bit;;
10510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10511 libsuff=32 shlibsuff=N32 libmagic=N32;;
10512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10514 *) libsuff= shlibsuff= libmagic=never-match;;
10515 esac
10516 ;;
10517 esac
10518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10519 shlibpath_overrides_runpath=no
10520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10522 hardcode_into_libs=yes
10523 ;;
10524
10525# No shared lib support for Linux oldld, aout, or coff.
10526linux*oldld* | linux*aout* | linux*coff*)
10527 dynamic_linker=no
10528 ;;
10529
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010530# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -040010531linux* | k*bsd*-gnu | kopensolaris*-gnu)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010532 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540
10541 # Some binutils ld are patched to set DT_RUNPATH
10542 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544else
10545 lt_cv_shlibpath_overrides_runpath=no
10546 save_LDFLAGS=$LDFLAGS
10547 save_libdir=$libdir
10548 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10549 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551/* end confdefs.h. */
10552
10553int
10554main ()
10555{
10556
10557 ;
10558 return 0;
10559}
10560_ACEOF
10561if ac_fn_c_try_link "$LINENO"; then :
10562 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10563 lt_cv_shlibpath_overrides_runpath=yes
10564fi
10565fi
10566rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LDFLAGS=$save_LDFLAGS
10569 libdir=$save_libdir
10570
10571fi
10572
10573 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10574
10575 # This implies no fast_install, which is unacceptable.
10576 # Some rework will be needed to allow for fast_install
10577 # before this can be enabled.
10578 hardcode_into_libs=yes
10579
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010580 # Add ABI-specific directories to the system library path.
10581 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10582
Emeric Vigier2f625822012-08-06 11:09:52 -040010583 # Append ld.so.conf contents to the search path
10584 if test -f /etc/ld.so.conf; then
10585 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' ' '`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010586 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10587
Emeric Vigier2f625822012-08-06 11:09:52 -040010588 fi
10589
10590 # We used to test for /lib/ld.so.1 and disable shared libraries on
10591 # powerpc, because MkLinux only supported shared libraries with the
10592 # GNU dynamic linker. Since this was broken with cross compilers,
10593 # most powerpc-linux boxes support dynamic linking these days and
10594 # people can always --disable-shared, the test was removed, and we
10595 # assume the GNU/Linux dynamic linker is in use.
10596 dynamic_linker='GNU/Linux ld.so'
10597 ;;
10598
Emeric Vigier2f625822012-08-06 11:09:52 -040010599netbsd*)
10600 version_type=sunos
10601 need_lib_prefix=no
10602 need_version=no
10603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10606 dynamic_linker='NetBSD (a.out) ld.so'
10607 else
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 dynamic_linker='NetBSD ld.elf_so'
10611 fi
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes
10614 hardcode_into_libs=yes
10615 ;;
10616
10617newsos6)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010618 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes
10622 ;;
10623
10624*nto* | *qnx*)
10625 version_type=qnx
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=no
10632 hardcode_into_libs=yes
10633 dynamic_linker='ldqnx.so'
10634 ;;
10635
10636openbsd*)
10637 version_type=sunos
10638 sys_lib_dlsearch_path_spec="/usr/lib"
10639 need_lib_prefix=no
10640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10641 case $host_os in
10642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10643 *) need_version=no ;;
10644 esac
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10649 case $host_os in
10650 openbsd2.[89] | openbsd2.[89].*)
10651 shlibpath_overrides_runpath=no
10652 ;;
10653 *)
10654 shlibpath_overrides_runpath=yes
10655 ;;
10656 esac
10657 else
10658 shlibpath_overrides_runpath=yes
10659 fi
10660 ;;
10661
10662os2*)
10663 libname_spec='$name'
10664 shrext_cmds=".dll"
10665 need_lib_prefix=no
10666 library_names_spec='$libname${shared_ext} $libname.a'
10667 dynamic_linker='OS/2 ld.exe'
10668 shlibpath_var=LIBPATH
10669 ;;
10670
10671osf3* | osf4* | osf5*)
10672 version_type=osf
10673 need_lib_prefix=no
10674 need_version=no
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10680 ;;
10681
10682rdos*)
10683 dynamic_linker=no
10684 ;;
10685
10686solaris*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010687 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=yes
10694 hardcode_into_libs=yes
10695 # ldd complains unless libraries are executable
10696 postinstall_cmds='chmod +x $lib'
10697 ;;
10698
10699sunos4*)
10700 version_type=sunos
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 shlibpath_overrides_runpath=yes
10705 if test "$with_gnu_ld" = yes; then
10706 need_lib_prefix=no
10707 fi
10708 need_version=yes
10709 ;;
10710
10711sysv4 | sysv4.3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010712 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 case $host_vendor in
10717 sni)
10718 shlibpath_overrides_runpath=no
10719 need_lib_prefix=no
10720 runpath_var=LD_RUN_PATH
10721 ;;
10722 siemens)
10723 need_lib_prefix=no
10724 ;;
10725 motorola)
10726 need_lib_prefix=no
10727 need_version=no
10728 shlibpath_overrides_runpath=no
10729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10730 ;;
10731 esac
10732 ;;
10733
10734sysv4*MP*)
10735 if test -d /usr/nec ;then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010736 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10738 soname_spec='$libname${shared_ext}.$major'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 fi
10741 ;;
10742
10743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10744 version_type=freebsd-elf
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10752 if test "$with_gnu_ld" = yes; then
10753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10754 else
10755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10756 case $host_os in
10757 sco3.2v5*)
10758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10759 ;;
10760 esac
10761 fi
10762 sys_lib_dlsearch_path_spec='/usr/lib'
10763 ;;
10764
10765tpf*)
10766 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010767 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010768 need_lib_prefix=no
10769 need_version=no
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 shlibpath_overrides_runpath=no
10773 hardcode_into_libs=yes
10774 ;;
10775
10776uts4*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050010777 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040010778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 ;;
10782
10783*)
10784 dynamic_linker=no
10785 ;;
10786esac
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10788$as_echo "$dynamic_linker" >&6; }
10789test "$dynamic_linker" = no && can_build_shared=no
10790
10791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10792if test "$GCC" = yes; then
10793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10794fi
10795
10796if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10798fi
10799if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10801fi
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10895$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10896hardcode_action=
10897if test -n "$hardcode_libdir_flag_spec" ||
10898 test -n "$runpath_var" ||
10899 test "X$hardcode_automatic" = "Xyes" ; then
10900
10901 # We can hardcode non-existent directories.
10902 if test "$hardcode_direct" != no &&
10903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10904 # have to relink, otherwise we might link with an installed library
10905 # when we should be linking with a yet-to-be-installed one
10906 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10907 test "$hardcode_minus_L" != no; then
10908 # Linking always hardcodes the temporary library directory.
10909 hardcode_action=relink
10910 else
10911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10912 hardcode_action=immediate
10913 fi
10914else
10915 # We cannot hardcode anything, or else we can only hardcode existing
10916 # directories.
10917 hardcode_action=unsupported
10918fi
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10920$as_echo "$hardcode_action" >&6; }
10921
10922if test "$hardcode_action" = relink ||
10923 test "$inherit_rpath" = yes; then
10924 # Fast installation is not supported
10925 enable_fast_install=no
10926elif test "$shlibpath_overrides_runpath" = yes ||
10927 test "$enable_shared" = no; then
10928 # Fast installation is not necessary
10929 enable_fast_install=needless
10930fi
10931
10932
10933
10934
10935
10936
10937 if test "x$enable_dlopen" != xyes; then
10938 enable_dlopen=unknown
10939 enable_dlopen_self=unknown
10940 enable_dlopen_self_static=unknown
10941else
10942 lt_cv_dlopen=no
10943 lt_cv_dlopen_libs=
10944
10945 case $host_os in
10946 beos*)
10947 lt_cv_dlopen="load_add_on"
10948 lt_cv_dlopen_libs=
10949 lt_cv_dlopen_self=yes
10950 ;;
10951
10952 mingw* | pw32* | cegcc*)
10953 lt_cv_dlopen="LoadLibrary"
10954 lt_cv_dlopen_libs=
10955 ;;
10956
10957 cygwin*)
10958 lt_cv_dlopen="dlopen"
10959 lt_cv_dlopen_libs=
10960 ;;
10961
10962 darwin*)
10963 # if libdl is installed we need to link against it
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10965$as_echo_n "checking for dlopen in -ldl... " >&6; }
10966if ${ac_cv_lib_dl_dlopen+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968else
10969 ac_check_lib_save_LIBS=$LIBS
10970LIBS="-ldl $LIBS"
10971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972/* end confdefs.h. */
10973
10974/* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977#ifdef __cplusplus
10978extern "C"
10979#endif
10980char dlopen ();
10981int
10982main ()
10983{
10984return dlopen ();
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_link "$LINENO"; then :
10990 ac_cv_lib_dl_dlopen=yes
10991else
10992 ac_cv_lib_dl_dlopen=no
10993fi
10994rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996LIBS=$ac_check_lib_save_LIBS
10997fi
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10999$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11000if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11002else
11003
11004 lt_cv_dlopen="dyld"
11005 lt_cv_dlopen_libs=
11006 lt_cv_dlopen_self=yes
11007
11008fi
11009
11010 ;;
11011
11012 *)
11013 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11014if test "x$ac_cv_func_shl_load" = xyes; then :
11015 lt_cv_dlopen="shl_load"
11016else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11018$as_echo_n "checking for shl_load in -ldld... " >&6; }
11019if ${ac_cv_lib_dld_shl_load+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021else
11022 ac_check_lib_save_LIBS=$LIBS
11023LIBS="-ldld $LIBS"
11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h. */
11026
11027/* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030#ifdef __cplusplus
11031extern "C"
11032#endif
11033char shl_load ();
11034int
11035main ()
11036{
11037return shl_load ();
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_dld_shl_load=yes
11044else
11045 ac_cv_lib_dld_shl_load=no
11046fi
11047rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049LIBS=$ac_check_lib_save_LIBS
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11052$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11053if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11054 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11055else
11056 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11057if test "x$ac_cv_func_dlopen" = xyes; then :
11058 lt_cv_dlopen="dlopen"
11059else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11061$as_echo_n "checking for dlopen in -ldl... " >&6; }
11062if ${ac_cv_lib_dl_dlopen+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064else
11065 ac_check_lib_save_LIBS=$LIBS
11066LIBS="-ldl $LIBS"
11067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068/* end confdefs.h. */
11069
11070/* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073#ifdef __cplusplus
11074extern "C"
11075#endif
11076char dlopen ();
11077int
11078main ()
11079{
11080return dlopen ();
11081 ;
11082 return 0;
11083}
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086 ac_cv_lib_dl_dlopen=yes
11087else
11088 ac_cv_lib_dl_dlopen=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092LIBS=$ac_check_lib_save_LIBS
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11095$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11096if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11098else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11100$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11101if ${ac_cv_lib_svld_dlopen+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103else
11104 ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lsvld $LIBS"
11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h. */
11108
11109/* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112#ifdef __cplusplus
11113extern "C"
11114#endif
11115char dlopen ();
11116int
11117main ()
11118{
11119return dlopen ();
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_svld_dlopen=yes
11126else
11127 ac_cv_lib_svld_dlopen=no
11128fi
11129rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131LIBS=$ac_check_lib_save_LIBS
11132fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11134$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11135if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11137else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11139$as_echo_n "checking for dld_link in -ldld... " >&6; }
11140if ${ac_cv_lib_dld_dld_link+:} false; then :
11141 $as_echo_n "(cached) " >&6
11142else
11143 ac_check_lib_save_LIBS=$LIBS
11144LIBS="-ldld $LIBS"
11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h. */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dld_link ();
11155int
11156main ()
11157{
11158return dld_link ();
11159 ;
11160 return 0;
11161}
11162_ACEOF
11163if ac_fn_c_try_link "$LINENO"; then :
11164 ac_cv_lib_dld_dld_link=yes
11165else
11166 ac_cv_lib_dld_dld_link=no
11167fi
11168rm -f core conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170LIBS=$ac_check_lib_save_LIBS
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11173$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11174if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11175 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11176fi
11177
11178
11179fi
11180
11181
11182fi
11183
11184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193 ;;
11194 esac
11195
11196 if test "x$lt_cv_dlopen" != xno; then
11197 enable_dlopen=yes
11198 else
11199 enable_dlopen=no
11200 fi
11201
11202 case $lt_cv_dlopen in
11203 dlopen)
11204 save_CPPFLAGS="$CPPFLAGS"
11205 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11206
11207 save_LDFLAGS="$LDFLAGS"
11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11209
11210 save_LIBS="$LIBS"
11211 LIBS="$lt_cv_dlopen_libs $LIBS"
11212
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11214$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11215if ${lt_cv_dlopen_self+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217else
11218 if test "$cross_compiling" = yes; then :
11219 lt_cv_dlopen_self=cross
11220else
11221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11222 lt_status=$lt_dlunknown
11223 cat > conftest.$ac_ext <<_LT_EOF
11224#line $LINENO "configure"
11225#include "confdefs.h"
11226
11227#if HAVE_DLFCN_H
11228#include <dlfcn.h>
11229#endif
11230
11231#include <stdio.h>
11232
11233#ifdef RTLD_GLOBAL
11234# define LT_DLGLOBAL RTLD_GLOBAL
11235#else
11236# ifdef DL_GLOBAL
11237# define LT_DLGLOBAL DL_GLOBAL
11238# else
11239# define LT_DLGLOBAL 0
11240# endif
11241#endif
11242
11243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11244 find out it does not work in some platform. */
11245#ifndef LT_DLLAZY_OR_NOW
11246# ifdef RTLD_LAZY
11247# define LT_DLLAZY_OR_NOW RTLD_LAZY
11248# else
11249# ifdef DL_LAZY
11250# define LT_DLLAZY_OR_NOW DL_LAZY
11251# else
11252# ifdef RTLD_NOW
11253# define LT_DLLAZY_OR_NOW RTLD_NOW
11254# else
11255# ifdef DL_NOW
11256# define LT_DLLAZY_OR_NOW DL_NOW
11257# else
11258# define LT_DLLAZY_OR_NOW 0
11259# endif
11260# endif
11261# endif
11262# endif
11263#endif
11264
11265/* When -fvisbility=hidden is used, assume the code has been annotated
11266 correspondingly for the symbols needed. */
11267#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11268int fnord () __attribute__((visibility("default")));
11269#endif
11270
11271int fnord () { return 42; }
11272int main ()
11273{
11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11275 int status = $lt_dlunknown;
11276
11277 if (self)
11278 {
11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11280 else
11281 {
11282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11283 else puts (dlerror ());
11284 }
11285 /* dlclose (self); */
11286 }
11287 else
11288 puts (dlerror ());
11289
11290 return status;
11291}
11292_LT_EOF
11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11294 (eval $ac_link) 2>&5
11295 ac_status=$?
11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11298 (./conftest; exit; ) >&5 2>/dev/null
11299 lt_status=$?
11300 case x$lt_status in
11301 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11302 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11303 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11304 esac
11305 else :
11306 # compilation failed
11307 lt_cv_dlopen_self=no
11308 fi
11309fi
11310rm -fr conftest*
11311
11312
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11315$as_echo "$lt_cv_dlopen_self" >&6; }
11316
11317 if test "x$lt_cv_dlopen_self" = xyes; then
11318 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11320$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11321if ${lt_cv_dlopen_self_static+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323else
11324 if test "$cross_compiling" = yes; then :
11325 lt_cv_dlopen_self_static=cross
11326else
11327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11328 lt_status=$lt_dlunknown
11329 cat > conftest.$ac_ext <<_LT_EOF
11330#line $LINENO "configure"
11331#include "confdefs.h"
11332
11333#if HAVE_DLFCN_H
11334#include <dlfcn.h>
11335#endif
11336
11337#include <stdio.h>
11338
11339#ifdef RTLD_GLOBAL
11340# define LT_DLGLOBAL RTLD_GLOBAL
11341#else
11342# ifdef DL_GLOBAL
11343# define LT_DLGLOBAL DL_GLOBAL
11344# else
11345# define LT_DLGLOBAL 0
11346# endif
11347#endif
11348
11349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11350 find out it does not work in some platform. */
11351#ifndef LT_DLLAZY_OR_NOW
11352# ifdef RTLD_LAZY
11353# define LT_DLLAZY_OR_NOW RTLD_LAZY
11354# else
11355# ifdef DL_LAZY
11356# define LT_DLLAZY_OR_NOW DL_LAZY
11357# else
11358# ifdef RTLD_NOW
11359# define LT_DLLAZY_OR_NOW RTLD_NOW
11360# else
11361# ifdef DL_NOW
11362# define LT_DLLAZY_OR_NOW DL_NOW
11363# else
11364# define LT_DLLAZY_OR_NOW 0
11365# endif
11366# endif
11367# endif
11368# endif
11369#endif
11370
11371/* When -fvisbility=hidden is used, assume the code has been annotated
11372 correspondingly for the symbols needed. */
11373#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11374int fnord () __attribute__((visibility("default")));
11375#endif
11376
11377int fnord () { return 42; }
11378int main ()
11379{
11380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11381 int status = $lt_dlunknown;
11382
11383 if (self)
11384 {
11385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11386 else
11387 {
11388 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389 else puts (dlerror ());
11390 }
11391 /* dlclose (self); */
11392 }
11393 else
11394 puts (dlerror ());
11395
11396 return status;
11397}
11398_LT_EOF
11399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11400 (eval $ac_link) 2>&5
11401 ac_status=$?
11402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11404 (./conftest; exit; ) >&5 2>/dev/null
11405 lt_status=$?
11406 case x$lt_status in
11407 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11408 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11409 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11410 esac
11411 else :
11412 # compilation failed
11413 lt_cv_dlopen_self_static=no
11414 fi
11415fi
11416rm -fr conftest*
11417
11418
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11421$as_echo "$lt_cv_dlopen_self_static" >&6; }
11422 fi
11423
11424 CPPFLAGS="$save_CPPFLAGS"
11425 LDFLAGS="$save_LDFLAGS"
11426 LIBS="$save_LIBS"
11427 ;;
11428 esac
11429
11430 case $lt_cv_dlopen_self in
11431 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11432 *) enable_dlopen_self=unknown ;;
11433 esac
11434
11435 case $lt_cv_dlopen_self_static in
11436 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11437 *) enable_dlopen_self_static=unknown ;;
11438 esac
11439fi
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457striplib=
11458old_striplib=
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11460$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11461if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11462 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11463 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465$as_echo "yes" >&6; }
11466else
11467# FIXME - insert some real tests, host_os isn't really good enough
11468 case $host_os in
11469 darwin*)
11470 if test -n "$STRIP" ; then
11471 striplib="$STRIP -x"
11472 old_striplib="$STRIP -S"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474$as_echo "yes" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
11478 fi
11479 ;;
11480 *)
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
11483 ;;
11484 esac
11485fi
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498 # Report which library types will actually be built
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11500$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11502$as_echo "$can_build_shared" >&6; }
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11505$as_echo_n "checking whether to build shared libraries... " >&6; }
11506 test "$can_build_shared" = "no" && enable_shared=no
11507
11508 # On AIX, shared libraries and static libraries use the same namespace, and
11509 # are all built from PIC.
11510 case $host_os in
11511 aix3*)
11512 test "$enable_shared" = yes && enable_static=no
11513 if test -n "$RANLIB"; then
11514 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11515 postinstall_cmds='$RANLIB $lib'
11516 fi
11517 ;;
11518
11519 aix[4-9]*)
11520 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11521 test "$enable_shared" = yes && enable_static=no
11522 fi
11523 ;;
11524 esac
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11526$as_echo "$enable_shared" >&6; }
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11529$as_echo_n "checking whether to build static libraries... " >&6; }
11530 # Make sure either enable_shared or enable_static is yes.
11531 test "$enable_shared" = yes || enable_static=yes
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11533$as_echo "$enable_static" >&6; }
11534
11535
11536
11537
11538fi
11539ac_ext=c
11540ac_cpp='$CPP $CPPFLAGS'
11541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544
11545CC="$lt_save_CC"
11546
11547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11548 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11549 (test "X$CXX" != "Xg++"))) ; then
11550 ac_ext=cpp
11551ac_cpp='$CXXCPP $CPPFLAGS'
11552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11556$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11557if test -z "$CXXCPP"; then
11558 if ${ac_cv_prog_CXXCPP+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560else
11561 # Double quotes because CXXCPP needs to be expanded
11562 for CXXCPP in "$CXX -E" "/lib/cpp"
11563 do
11564 ac_preproc_ok=false
11565for ac_cxx_preproc_warn_flag in '' yes
11566do
11567 # Use a header file that comes with gcc, so configuring glibc
11568 # with a fresh cross-compiler works.
11569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11570 # <limits.h> exists even on freestanding compilers.
11571 # On the NeXT, cc -E runs the code through the compiler's parser,
11572 # not just through cpp. "Syntax error" is here to catch this case.
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575#ifdef __STDC__
11576# include <limits.h>
11577#else
11578# include <assert.h>
11579#endif
11580 Syntax error
11581_ACEOF
11582if ac_fn_cxx_try_cpp "$LINENO"; then :
11583
11584else
11585 # Broken: fails on valid input.
11586continue
11587fi
11588rm -f conftest.err conftest.i conftest.$ac_ext
11589
11590 # OK, works on sane cases. Now check whether nonexistent headers
11591 # can be detected and how.
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h. */
11594#include <ac_nonexistent.h>
11595_ACEOF
11596if ac_fn_cxx_try_cpp "$LINENO"; then :
11597 # Broken: success on invalid input.
11598continue
11599else
11600 # Passes both tests.
11601ac_preproc_ok=:
11602break
11603fi
11604rm -f conftest.err conftest.i conftest.$ac_ext
11605
11606done
11607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11608rm -f conftest.i conftest.err conftest.$ac_ext
11609if $ac_preproc_ok; then :
11610 break
11611fi
11612
11613 done
11614 ac_cv_prog_CXXCPP=$CXXCPP
11615
11616fi
11617 CXXCPP=$ac_cv_prog_CXXCPP
11618else
11619 ac_cv_prog_CXXCPP=$CXXCPP
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11622$as_echo "$CXXCPP" >&6; }
11623ac_preproc_ok=false
11624for ac_cxx_preproc_warn_flag in '' yes
11625do
11626 # Use a header file that comes with gcc, so configuring glibc
11627 # with a fresh cross-compiler works.
11628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 # <limits.h> exists even on freestanding compilers.
11630 # On the NeXT, cc -E runs the code through the compiler's parser,
11631 # not just through cpp. "Syntax error" is here to catch this case.
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633/* end confdefs.h. */
11634#ifdef __STDC__
11635# include <limits.h>
11636#else
11637# include <assert.h>
11638#endif
11639 Syntax error
11640_ACEOF
11641if ac_fn_cxx_try_cpp "$LINENO"; then :
11642
11643else
11644 # Broken: fails on valid input.
11645continue
11646fi
11647rm -f conftest.err conftest.i conftest.$ac_ext
11648
11649 # OK, works on sane cases. Now check whether nonexistent headers
11650 # can be detected and how.
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h. */
11653#include <ac_nonexistent.h>
11654_ACEOF
11655if ac_fn_cxx_try_cpp "$LINENO"; then :
11656 # Broken: success on invalid input.
11657continue
11658else
11659 # Passes both tests.
11660ac_preproc_ok=:
11661break
11662fi
11663rm -f conftest.err conftest.i conftest.$ac_ext
11664
11665done
11666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11667rm -f conftest.i conftest.err conftest.$ac_ext
11668if $ac_preproc_ok; then :
11669
11670else
11671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11673as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11674See \`config.log' for more details" "$LINENO" 5; }
11675fi
11676
11677ac_ext=c
11678ac_cpp='$CPP $CPPFLAGS'
11679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11681ac_compiler_gnu=$ac_cv_c_compiler_gnu
11682
11683else
11684 _lt_caught_CXX_error=yes
11685fi
11686
11687ac_ext=cpp
11688ac_cpp='$CXXCPP $CPPFLAGS'
11689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11692
11693archive_cmds_need_lc_CXX=no
11694allow_undefined_flag_CXX=
11695always_export_symbols_CXX=no
11696archive_expsym_cmds_CXX=
11697compiler_needs_object_CXX=no
11698export_dynamic_flag_spec_CXX=
11699hardcode_direct_CXX=no
11700hardcode_direct_absolute_CXX=no
11701hardcode_libdir_flag_spec_CXX=
Emeric Vigier2f625822012-08-06 11:09:52 -040011702hardcode_libdir_separator_CXX=
11703hardcode_minus_L_CXX=no
11704hardcode_shlibpath_var_CXX=unsupported
11705hardcode_automatic_CXX=no
11706inherit_rpath_CXX=no
11707module_cmds_CXX=
11708module_expsym_cmds_CXX=
11709link_all_deplibs_CXX=unknown
11710old_archive_cmds_CXX=$old_archive_cmds
11711reload_flag_CXX=$reload_flag
11712reload_cmds_CXX=$reload_cmds
11713no_undefined_flag_CXX=
11714whole_archive_flag_spec_CXX=
11715enable_shared_with_static_runtimes_CXX=no
11716
11717# Source file extension for C++ test sources.
11718ac_ext=cpp
11719
11720# Object file extension for compiled C++ test sources.
11721objext=o
11722objext_CXX=$objext
11723
11724# No sense in running all these tests if we already determined that
11725# the CXX compiler isn't working. Some variables (like enable_shared)
11726# are currently assumed to apply to all compilers on this platform,
11727# and will be corrupted by setting them based on a non-working compiler.
11728if test "$_lt_caught_CXX_error" != yes; then
11729 # Code to be used in simple compile tests
11730 lt_simple_compile_test_code="int some_variable = 0;"
11731
11732 # Code to be used in simple link tests
11733 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11734
11735 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11736
11737
11738
11739
11740
11741
11742# If no C compiler was specified, use CC.
11743LTCC=${LTCC-"$CC"}
11744
11745# If no C compiler flags were specified, use CFLAGS.
11746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11747
11748# Allow CC to be a program name with arguments.
11749compiler=$CC
11750
11751
11752 # save warnings/boilerplate of simple test code
11753 ac_outfile=conftest.$ac_objext
11754echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11755eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11756_lt_compiler_boilerplate=`cat conftest.err`
11757$RM conftest*
11758
11759 ac_outfile=conftest.$ac_objext
11760echo "$lt_simple_link_test_code" >conftest.$ac_ext
11761eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11762_lt_linker_boilerplate=`cat conftest.err`
11763$RM -r conftest*
11764
11765
11766 # Allow CC to be a program name with arguments.
11767 lt_save_CC=$CC
11768 lt_save_CFLAGS=$CFLAGS
11769 lt_save_LD=$LD
11770 lt_save_GCC=$GCC
11771 GCC=$GXX
11772 lt_save_with_gnu_ld=$with_gnu_ld
11773 lt_save_path_LD=$lt_cv_path_LD
11774 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11775 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11776 else
11777 $as_unset lt_cv_prog_gnu_ld
11778 fi
11779 if test -n "${lt_cv_path_LDCXX+set}"; then
11780 lt_cv_path_LD=$lt_cv_path_LDCXX
11781 else
11782 $as_unset lt_cv_path_LD
11783 fi
11784 test -z "${LDCXX+set}" || LD=$LDCXX
11785 CC=${CXX-"c++"}
11786 CFLAGS=$CXXFLAGS
11787 compiler=$CC
11788 compiler_CXX=$CC
11789 for cc_temp in $compiler""; do
11790 case $cc_temp in
11791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11793 \-*) ;;
11794 *) break;;
11795 esac
11796done
11797cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11798
11799
11800 if test -n "$compiler"; then
11801 # We don't want -fno-exception when compiling C++ code, so set the
11802 # no_builtin_flag separately
11803 if test "$GXX" = yes; then
11804 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11805 else
11806 lt_prog_compiler_no_builtin_flag_CXX=
11807 fi
11808
11809 if test "$GXX" = yes; then
11810 # Set up default GNU C++ configuration
11811
11812
11813
11814# Check whether --with-gnu-ld was given.
11815if test "${with_gnu_ld+set}" = set; then :
11816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11817else
11818 with_gnu_ld=no
11819fi
11820
11821ac_prog=ld
11822if test "$GCC" = yes; then
11823 # Check if gcc -print-prog-name=ld gives a path.
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11825$as_echo_n "checking for ld used by $CC... " >&6; }
11826 case $host in
11827 *-*-mingw*)
11828 # gcc leaves a trailing carriage return which upsets mingw
11829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11830 *)
11831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11832 esac
11833 case $ac_prog in
11834 # Accept absolute paths.
11835 [\\/]* | ?:[\\/]*)
11836 re_direlt='/[^/][^/]*/\.\./'
11837 # Canonicalize the pathname of ld
11838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11841 done
11842 test -z "$LD" && LD="$ac_prog"
11843 ;;
11844 "")
11845 # If it fails, then pretend we aren't using GCC.
11846 ac_prog=ld
11847 ;;
11848 *)
11849 # If it is relative, then search for the first ld in PATH.
11850 with_gnu_ld=unknown
11851 ;;
11852 esac
11853elif test "$with_gnu_ld" = yes; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11855$as_echo_n "checking for GNU ld... " >&6; }
11856else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11858$as_echo_n "checking for non-GNU ld... " >&6; }
11859fi
11860if ${lt_cv_path_LD+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862else
11863 if test -z "$LD"; then
11864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11865 for ac_dir in $PATH; do
11866 IFS="$lt_save_ifs"
11867 test -z "$ac_dir" && ac_dir=.
11868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11869 lt_cv_path_LD="$ac_dir/$ac_prog"
11870 # Check to see if the program is GNU ld. I'd rather use --version,
11871 # but apparently some variants of GNU ld only accept -v.
11872 # Break only if it was the GNU/non-GNU ld that we prefer.
11873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11874 *GNU* | *'with BFD'*)
11875 test "$with_gnu_ld" != no && break
11876 ;;
11877 *)
11878 test "$with_gnu_ld" != yes && break
11879 ;;
11880 esac
11881 fi
11882 done
11883 IFS="$lt_save_ifs"
11884else
11885 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11886fi
11887fi
11888
11889LD="$lt_cv_path_LD"
11890if test -n "$LD"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11892$as_echo "$LD" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11899$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11900if ${lt_cv_prog_gnu_ld+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902else
11903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11904case `$LD -v 2>&1 </dev/null` in
11905*GNU* | *'with BFD'*)
11906 lt_cv_prog_gnu_ld=yes
11907 ;;
11908*)
11909 lt_cv_prog_gnu_ld=no
11910 ;;
11911esac
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11914$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11915with_gnu_ld=$lt_cv_prog_gnu_ld
11916
11917
11918
11919
11920
11921
11922
11923 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11924 # archiving commands below assume that GNU ld is being used.
11925 if test "$with_gnu_ld" = yes; then
11926 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11927 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'
11928
11929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11931
11932 # If archive_cmds runs LD, not CC, wlarc should be empty
11933 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11934 # investigate it a little bit more. (MM)
11935 wlarc='${wl}'
11936
11937 # ancient GNU ld didn't support --whole-archive et. al.
11938 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11939 $GREP 'no-whole-archive' > /dev/null; then
11940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11941 else
11942 whole_archive_flag_spec_CXX=
11943 fi
11944 else
11945 with_gnu_ld=no
11946 wlarc=
11947
11948 # A generic and very simple default shared library creation
11949 # command for GNU C++ for the case where it uses the native
11950 # linker, instead of GNU ld. If possible, this setting should
11951 # overridden to take advantage of the native linker features on
11952 # the platform it is being used on.
11953 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11954 fi
11955
11956 # Commands to make compiler produce verbose output that lists
11957 # what "hidden" libraries, object files and flags are used when
11958 # linking a shared library.
11959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11960
11961 else
11962 GXX=no
11963 with_gnu_ld=no
11964 wlarc=
11965 fi
11966
11967 # PORTME: fill in a description of your system's C++ link characteristics
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11969$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11970 ld_shlibs_CXX=yes
11971 case $host_os in
11972 aix3*)
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11975 ;;
11976 aix[4-9]*)
11977 if test "$host_cpu" = ia64; then
11978 # On IA64, the linker does run time linking by default, so we don't
11979 # have to do anything special.
11980 aix_use_runtimelinking=no
11981 exp_sym_flag='-Bexport'
11982 no_entry_flag=""
11983 else
11984 aix_use_runtimelinking=no
11985
11986 # Test if we are trying to use run time linking or normal
11987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11988 # need to do runtime linking.
11989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11990 for ld_flag in $LDFLAGS; do
11991 case $ld_flag in
11992 *-brtl*)
11993 aix_use_runtimelinking=yes
11994 break
11995 ;;
11996 esac
11997 done
11998 ;;
11999 esac
12000
12001 exp_sym_flag='-bexport'
12002 no_entry_flag='-bnoentry'
12003 fi
12004
12005 # When large executables or shared objects are built, AIX ld can
12006 # have problems creating the table of contents. If linking a library
12007 # or program results in "error TOC overflow" add -mminimal-toc to
12008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12010
12011 archive_cmds_CXX=''
12012 hardcode_direct_CXX=yes
12013 hardcode_direct_absolute_CXX=yes
12014 hardcode_libdir_separator_CXX=':'
12015 link_all_deplibs_CXX=yes
12016 file_list_spec_CXX='${wl}-f,'
12017
12018 if test "$GXX" = yes; then
12019 case $host_os in aix4.[012]|aix4.[012].*)
12020 # We only want to do this on AIX 4.2 and lower, the check
12021 # below for broken collect2 doesn't work under 4.3+
12022 collect2name=`${CC} -print-prog-name=collect2`
12023 if test -f "$collect2name" &&
12024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12025 then
12026 # We have reworked collect2
12027 :
12028 else
12029 # We have old collect2
12030 hardcode_direct_CXX=unsupported
12031 # It fails to find uninstalled libraries when the uninstalled
12032 # path is not listed in the libpath. Setting hardcode_minus_L
12033 # to unsupported forces relinking
12034 hardcode_minus_L_CXX=yes
12035 hardcode_libdir_flag_spec_CXX='-L$libdir'
12036 hardcode_libdir_separator_CXX=
12037 fi
12038 esac
12039 shared_flag='-shared'
12040 if test "$aix_use_runtimelinking" = yes; then
12041 shared_flag="$shared_flag "'${wl}-G'
12042 fi
12043 else
12044 # not using gcc
12045 if test "$host_cpu" = ia64; then
12046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12047 # chokes on -Wl,-G. The following line is correct:
12048 shared_flag='-G'
12049 else
12050 if test "$aix_use_runtimelinking" = yes; then
12051 shared_flag='${wl}-G'
12052 else
12053 shared_flag='${wl}-bM:SRE'
12054 fi
12055 fi
12056 fi
12057
12058 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12059 # It seems that -bexpall does not export symbols beginning with
12060 # underscore (_), so it is better to generate a list of symbols to
12061 # export.
12062 always_export_symbols_CXX=yes
12063 if test "$aix_use_runtimelinking" = yes; then
12064 # Warning - without using the other runtime loading flags (-brtl),
12065 # -berok will link without error, but may produce a broken library.
12066 allow_undefined_flag_CXX='-berok'
12067 # Determine the default libpath from the value encoded in an empty
12068 # executable.
12069 if test "${lt_cv_aix_libpath+set}" = set; then
12070 aix_libpath=$lt_cv_aix_libpath
12071else
12072 if ${lt_cv_aix_libpath__CXX+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074else
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h. */
12077
12078int
12079main ()
12080{
12081
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086if ac_fn_cxx_try_link "$LINENO"; then :
12087
12088 lt_aix_libpath_sed='
12089 /Import File Strings/,/^$/ {
12090 /^0/ {
12091 s/^0 *\([^ ]*\) *$/\1/
12092 p
12093 }
12094 }'
12095 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12096 # Check for a 64-bit object if we didn't find anything.
12097 if test -z "$lt_cv_aix_libpath__CXX"; then
12098 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12099 fi
12100fi
12101rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 if test -z "$lt_cv_aix_libpath__CXX"; then
12104 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12105 fi
12106
12107fi
12108
12109 aix_libpath=$lt_cv_aix_libpath__CXX
12110fi
12111
12112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12113
12114 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12115 else
12116 if test "$host_cpu" = ia64; then
12117 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12118 allow_undefined_flag_CXX="-z nodefs"
12119 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"
12120 else
12121 # Determine the default libpath from the value encoded in an
12122 # empty executable.
12123 if test "${lt_cv_aix_libpath+set}" = set; then
12124 aix_libpath=$lt_cv_aix_libpath
12125else
12126 if ${lt_cv_aix_libpath__CXX+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128else
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130/* end confdefs.h. */
12131
12132int
12133main ()
12134{
12135
12136 ;
12137 return 0;
12138}
12139_ACEOF
12140if ac_fn_cxx_try_link "$LINENO"; then :
12141
12142 lt_aix_libpath_sed='
12143 /Import File Strings/,/^$/ {
12144 /^0/ {
12145 s/^0 *\([^ ]*\) *$/\1/
12146 p
12147 }
12148 }'
12149 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12150 # Check for a 64-bit object if we didn't find anything.
12151 if test -z "$lt_cv_aix_libpath__CXX"; then
12152 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12153 fi
12154fi
12155rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 if test -z "$lt_cv_aix_libpath__CXX"; then
12158 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12159 fi
12160
12161fi
12162
12163 aix_libpath=$lt_cv_aix_libpath__CXX
12164fi
12165
12166 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12167 # Warning - without using the other run time loading flags,
12168 # -berok will link without error, but may produce a broken library.
12169 no_undefined_flag_CXX=' ${wl}-bernotok'
12170 allow_undefined_flag_CXX=' ${wl}-berok'
12171 if test "$with_gnu_ld" = yes; then
12172 # We only use this code for GNU lds that support --whole-archive.
12173 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12174 else
12175 # Exported symbols can be pulled into shared objects from archives
12176 whole_archive_flag_spec_CXX='$convenience'
12177 fi
12178 archive_cmds_need_lc_CXX=yes
12179 # This is similar to how AIX traditionally builds its shared
12180 # libraries.
12181 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12182 fi
12183 fi
12184 ;;
12185
12186 beos*)
12187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12188 allow_undefined_flag_CXX=unsupported
12189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12190 # support --undefined. This deserves some investigation. FIXME
12191 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 else
12193 ld_shlibs_CXX=no
12194 fi
12195 ;;
12196
12197 chorus*)
12198 case $cc_basename in
12199 *)
12200 # FIXME: insert proper C++ library support
12201 ld_shlibs_CXX=no
12202 ;;
12203 esac
12204 ;;
12205
12206 cygwin* | mingw* | pw32* | cegcc*)
12207 case $GXX,$cc_basename in
12208 ,cl* | no,cl*)
12209 # Native MSVC
12210 # hardcode_libdir_flag_spec is actually meaningless, as there is
12211 # no search path for DLLs.
12212 hardcode_libdir_flag_spec_CXX=' '
12213 allow_undefined_flag_CXX=unsupported
12214 always_export_symbols_CXX=yes
12215 file_list_spec_CXX='@'
12216 # Tell ltmain to make .lib files, not .a files.
12217 libext=lib
12218 # Tell ltmain to make .dll files, not .so files.
12219 shrext_cmds=".dll"
12220 # FIXME: Setting linknames here is a bad hack.
12221 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12222 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12223 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12224 else
12225 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12226 fi~
12227 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12228 linknames='
12229 # The linker will not automatically build a static lib if we build a DLL.
12230 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12231 enable_shared_with_static_runtimes_CXX=yes
12232 # Don't use ranlib
12233 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12234 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12235 lt_tool_outputfile="@TOOL_OUTPUT@"~
12236 case $lt_outputfile in
12237 *.exe|*.EXE) ;;
12238 *)
12239 lt_outputfile="$lt_outputfile.exe"
12240 lt_tool_outputfile="$lt_tool_outputfile.exe"
12241 ;;
12242 esac~
12243 func_to_tool_file "$lt_outputfile"~
12244 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12245 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12246 $RM "$lt_outputfile.manifest";
12247 fi'
12248 ;;
12249 *)
12250 # g++
12251 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12252 # as there is no search path for DLLs.
12253 hardcode_libdir_flag_spec_CXX='-L$libdir'
12254 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12255 allow_undefined_flag_CXX=unsupported
12256 always_export_symbols_CXX=no
12257 enable_shared_with_static_runtimes_CXX=yes
12258
12259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12260 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'
12261 # If the export-symbols file already is a .def file (1st line
12262 # is EXPORTS), use it as is; otherwise, prepend...
12263 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12264 cp $export_symbols $output_objdir/$soname.def;
12265 else
12266 echo EXPORTS > $output_objdir/$soname.def;
12267 cat $export_symbols >> $output_objdir/$soname.def;
12268 fi~
12269 $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'
12270 else
12271 ld_shlibs_CXX=no
12272 fi
12273 ;;
12274 esac
12275 ;;
12276 darwin* | rhapsody*)
12277
12278
12279 archive_cmds_need_lc_CXX=no
12280 hardcode_direct_CXX=no
12281 hardcode_automatic_CXX=yes
12282 hardcode_shlibpath_var_CXX=unsupported
12283 if test "$lt_cv_ld_force_load" = "yes"; then
12284 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\"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050012285
Emeric Vigier2f625822012-08-06 11:09:52 -040012286 else
12287 whole_archive_flag_spec_CXX=''
12288 fi
12289 link_all_deplibs_CXX=yes
12290 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12291 case $cc_basename in
12292 ifort*) _lt_dar_can_shared=yes ;;
12293 *) _lt_dar_can_shared=$GCC ;;
12294 esac
12295 if test "$_lt_dar_can_shared" = "yes"; then
12296 output_verbose_link_cmd=func_echo_all
12297 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}"
12298 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12299 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}"
12300 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}"
12301 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12302 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}"
12303 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}"
12304 fi
12305
12306 else
12307 ld_shlibs_CXX=no
12308 fi
12309
12310 ;;
12311
12312 dgux*)
12313 case $cc_basename in
12314 ec++*)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12317 ;;
12318 ghcx*)
12319 # Green Hills C++ Compiler
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12322 ;;
12323 *)
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12326 ;;
12327 esac
12328 ;;
12329
Alexandre Lisionddd731e2014-01-31 11:50:08 -050012330 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040012331 # C++ shared libraries reported to be fairly broken before
12332 # switch to ELF
12333 ld_shlibs_CXX=no
12334 ;;
12335
12336 freebsd-elf*)
12337 archive_cmds_need_lc_CXX=no
12338 ;;
12339
12340 freebsd* | dragonfly*)
12341 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12342 # conventions
12343 ld_shlibs_CXX=yes
12344 ;;
12345
12346 gnu*)
12347 ;;
12348
12349 haiku*)
12350 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351 link_all_deplibs_CXX=yes
12352 ;;
12353
12354 hpux9*)
12355 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12356 hardcode_libdir_separator_CXX=:
12357 export_dynamic_flag_spec_CXX='${wl}-E'
12358 hardcode_direct_CXX=yes
12359 hardcode_minus_L_CXX=yes # Not in the search PATH,
12360 # but as the default
12361 # location of the library.
12362
12363 case $cc_basename in
12364 CC*)
12365 # FIXME: insert proper C++ library support
12366 ld_shlibs_CXX=no
12367 ;;
12368 aCC*)
12369 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12370 # Commands to make compiler produce verbose output that lists
12371 # what "hidden" libraries, object files and flags are used when
12372 # linking a shared library.
12373 #
12374 # There doesn't appear to be a way to prevent this compiler from
12375 # explicitly linking system object files so we need to strip them
12376 # from the output so that they don't get included in the library
12377 # dependencies.
12378 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"'
12379 ;;
12380 *)
12381 if test "$GXX" = yes; then
12382 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12383 else
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
12386 fi
12387 ;;
12388 esac
12389 ;;
12390
12391 hpux10*|hpux11*)
12392 if test $with_gnu_ld = no; then
12393 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12394 hardcode_libdir_separator_CXX=:
12395
12396 case $host_cpu in
12397 hppa*64*|ia64*)
12398 ;;
12399 *)
12400 export_dynamic_flag_spec_CXX='${wl}-E'
12401 ;;
12402 esac
12403 fi
12404 case $host_cpu in
12405 hppa*64*|ia64*)
12406 hardcode_direct_CXX=no
12407 hardcode_shlibpath_var_CXX=no
12408 ;;
12409 *)
12410 hardcode_direct_CXX=yes
12411 hardcode_direct_absolute_CXX=yes
12412 hardcode_minus_L_CXX=yes # Not in the search PATH,
12413 # but as the default
12414 # location of the library.
12415 ;;
12416 esac
12417
12418 case $cc_basename in
12419 CC*)
12420 # FIXME: insert proper C++ library support
12421 ld_shlibs_CXX=no
12422 ;;
12423 aCC*)
12424 case $host_cpu in
12425 hppa*64*)
12426 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12427 ;;
12428 ia64*)
12429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12430 ;;
12431 *)
12432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12433 ;;
12434 esac
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12438 #
12439 # There doesn't appear to be a way to prevent this compiler from
12440 # explicitly linking system object files so we need to strip them
12441 # from the output so that they don't get included in the library
12442 # dependencies.
12443 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"'
12444 ;;
12445 *)
12446 if test "$GXX" = yes; then
12447 if test $with_gnu_ld = no; then
12448 case $host_cpu in
12449 hppa*64*)
12450 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12451 ;;
12452 ia64*)
12453 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 ;;
12455 *)
12456 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'
12457 ;;
12458 esac
12459 fi
12460 else
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 fi
12464 ;;
12465 esac
12466 ;;
12467
12468 interix[3-9]*)
12469 hardcode_direct_CXX=no
12470 hardcode_shlibpath_var_CXX=no
12471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12472 export_dynamic_flag_spec_CXX='${wl}-E'
12473 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12474 # Instead, shared libraries are loaded at an image base (0x10000000 by
12475 # default) and relocated if they conflict, which is a slow very memory
12476 # consuming and fragmenting process. To avoid this, we pick a random,
12477 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12478 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12479 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'
12480 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'
12481 ;;
12482 irix5* | irix6*)
12483 case $cc_basename in
12484 CC*)
12485 # SGI C++
12486 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'
12487
12488 # Archives containing C++ object files must be created using
12489 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12490 # necessary to make sure instantiated templates are included
12491 # in the archive.
12492 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12493 ;;
12494 *)
12495 if test "$GXX" = yes; then
12496 if test "$with_gnu_ld" = no; then
12497 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'
12498 else
12499 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'
12500 fi
12501 fi
12502 link_all_deplibs_CXX=yes
12503 ;;
12504 esac
12505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12506 hardcode_libdir_separator_CXX=:
12507 inherit_rpath_CXX=yes
12508 ;;
12509
12510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12511 case $cc_basename in
12512 KCC*)
12513 # Kuck and Associates, Inc. (KAI) C++ Compiler
12514
12515 # KCC will only create a shared library if the output file
12516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12517 # to its proper name (with version) after linking.
12518 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'
12519 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'
12520 # Commands to make compiler produce verbose output that lists
12521 # what "hidden" libraries, object files and flags are used when
12522 # linking a shared library.
12523 #
12524 # There doesn't appear to be a way to prevent this compiler from
12525 # explicitly linking system object files so we need to strip them
12526 # from the output so that they don't get included in the library
12527 # dependencies.
12528 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"'
12529
12530 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12532
12533 # Archives containing C++ object files must be created using
12534 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12535 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12536 ;;
12537 icpc* | ecpc* )
12538 # Intel C++
12539 with_gnu_ld=yes
12540 # version 8.0 and above of icpc choke on multiply defined symbols
12541 # if we add $predep_objects and $postdep_objects, however 7.1 and
12542 # earlier do not add the objects themselves.
12543 case `$CC -V 2>&1` in
12544 *"Version 7."*)
12545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12546 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'
12547 ;;
12548 *) # Version 8.0 or newer
12549 tmp_idyn=
12550 case $host_cpu in
12551 ia64*) tmp_idyn=' -i_dynamic';;
12552 esac
12553 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12554 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'
12555 ;;
12556 esac
12557 archive_cmds_need_lc_CXX=no
12558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12559 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12560 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12561 ;;
12562 pgCC* | pgcpp*)
12563 # Portland Group C++ compiler
12564 case `$CC -V` in
12565 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12566 prelink_cmds_CXX='tpldir=Template.dir~
12567 rm -rf $tpldir~
12568 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12569 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12570 old_archive_cmds_CXX='tpldir=Template.dir~
12571 rm -rf $tpldir~
12572 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12573 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12574 $RANLIB $oldlib'
12575 archive_cmds_CXX='tpldir=Template.dir~
12576 rm -rf $tpldir~
12577 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12578 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12579 archive_expsym_cmds_CXX='tpldir=Template.dir~
12580 rm -rf $tpldir~
12581 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12582 $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'
12583 ;;
12584 *) # Version 6 and above use weak symbols
12585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12586 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'
12587 ;;
12588 esac
12589
12590 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12592 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'
12593 ;;
12594 cxx*)
12595 # Compaq C++
12596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12597 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'
12598
12599 runpath_var=LD_RUN_PATH
12600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12601 hardcode_libdir_separator_CXX=:
12602
12603 # Commands to make compiler produce verbose output that lists
12604 # what "hidden" libraries, object files and flags are used when
12605 # linking a shared library.
12606 #
12607 # There doesn't appear to be a way to prevent this compiler from
12608 # explicitly linking system object files so we need to strip them
12609 # from the output so that they don't get included in the library
12610 # dependencies.
12611 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'
12612 ;;
12613 xl* | mpixl* | bgxl*)
12614 # IBM XL 8.0 on PPC, with GNU ld
12615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12617 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618 if test "x$supports_anon_versioning" = xyes; then
12619 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12621 echo "local: *; };" >> $output_objdir/$libname.ver~
12622 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12623 fi
12624 ;;
12625 *)
12626 case `$CC -V 2>&1 | sed 5q` in
12627 *Sun\ C*)
12628 # Sun C++ 5.9
12629 no_undefined_flag_CXX=' -zdefs'
12630 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12631 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'
12632 hardcode_libdir_flag_spec_CXX='-R$libdir'
12633 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'
12634 compiler_needs_object_CXX=yes
12635
12636 # Not sure whether something based on
12637 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12638 # would be better.
12639 output_verbose_link_cmd='func_echo_all'
12640
12641 # Archives containing C++ object files must be created using
12642 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12643 # necessary to make sure instantiated templates are included
12644 # in the archive.
12645 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12646 ;;
12647 esac
12648 ;;
12649 esac
12650 ;;
12651
12652 lynxos*)
12653 # FIXME: insert proper C++ library support
12654 ld_shlibs_CXX=no
12655 ;;
12656
12657 m88k*)
12658 # FIXME: insert proper C++ library support
12659 ld_shlibs_CXX=no
12660 ;;
12661
12662 mvs*)
12663 case $cc_basename in
12664 cxx*)
12665 # FIXME: insert proper C++ library support
12666 ld_shlibs_CXX=no
12667 ;;
12668 *)
12669 # FIXME: insert proper C++ library support
12670 ld_shlibs_CXX=no
12671 ;;
12672 esac
12673 ;;
12674
12675 netbsd*)
12676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12677 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12678 wlarc=
12679 hardcode_libdir_flag_spec_CXX='-R$libdir'
12680 hardcode_direct_CXX=yes
12681 hardcode_shlibpath_var_CXX=no
12682 fi
12683 # Workaround some broken pre-1.5 toolchains
12684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12685 ;;
12686
12687 *nto* | *qnx*)
12688 ld_shlibs_CXX=yes
12689 ;;
12690
12691 openbsd2*)
12692 # C++ shared libraries are fairly broken
12693 ld_shlibs_CXX=no
12694 ;;
12695
12696 openbsd*)
12697 if test -f /usr/libexec/ld.so; then
12698 hardcode_direct_CXX=yes
12699 hardcode_shlibpath_var_CXX=no
12700 hardcode_direct_absolute_CXX=yes
12701 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12705 export_dynamic_flag_spec_CXX='${wl}-E'
12706 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12707 fi
12708 output_verbose_link_cmd=func_echo_all
12709 else
12710 ld_shlibs_CXX=no
12711 fi
12712 ;;
12713
12714 osf3* | osf4* | osf5*)
12715 case $cc_basename in
12716 KCC*)
12717 # Kuck and Associates, Inc. (KAI) C++ Compiler
12718
12719 # KCC will only create a shared library if the output file
12720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12721 # to its proper name (with version) after linking.
12722 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'
12723
12724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12725 hardcode_libdir_separator_CXX=:
12726
12727 # Archives containing C++ object files must be created using
12728 # the KAI C++ compiler.
12729 case $host in
12730 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12731 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12732 esac
12733 ;;
12734 RCC*)
12735 # Rational C++ 2.4.1
12736 # FIXME: insert proper C++ library support
12737 ld_shlibs_CXX=no
12738 ;;
12739 cxx*)
12740 case $host in
12741 osf3*)
12742 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12743 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'
12744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12745 ;;
12746 *)
12747 allow_undefined_flag_CXX=' -expect_unresolved \*'
12748 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'
12749 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12750 echo "-hidden">> $lib.exp~
12751 $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~
12752 $RM $lib.exp'
12753 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12754 ;;
12755 esac
12756
12757 hardcode_libdir_separator_CXX=:
12758
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12762 #
12763 # There doesn't appear to be a way to prevent this compiler from
12764 # explicitly linking system object files so we need to strip them
12765 # from the output so that they don't get included in the library
12766 # dependencies.
12767 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"'
12768 ;;
12769 *)
12770 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12771 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12772 case $host in
12773 osf3*)
12774 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'
12775 ;;
12776 *)
12777 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'
12778 ;;
12779 esac
12780
12781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator_CXX=:
12783
12784 # Commands to make compiler produce verbose output that lists
12785 # what "hidden" libraries, object files and flags are used when
12786 # linking a shared library.
12787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12788
12789 else
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12792 fi
12793 ;;
12794 esac
12795 ;;
12796
12797 psos*)
12798 # FIXME: insert proper C++ library support
12799 ld_shlibs_CXX=no
12800 ;;
12801
12802 sunos4*)
12803 case $cc_basename in
12804 CC*)
12805 # Sun C++ 4.x
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 ;;
12809 lcc*)
12810 # Lucid
12811 # FIXME: insert proper C++ library support
12812 ld_shlibs_CXX=no
12813 ;;
12814 *)
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12817 ;;
12818 esac
12819 ;;
12820
12821 solaris*)
12822 case $cc_basename in
12823 CC* | sunCC*)
12824 # Sun C++ 4.2, 5.x and Centerline C++
12825 archive_cmds_need_lc_CXX=yes
12826 no_undefined_flag_CXX=' -zdefs'
12827 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12829 $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'
12830
12831 hardcode_libdir_flag_spec_CXX='-R$libdir'
12832 hardcode_shlibpath_var_CXX=no
12833 case $host_os in
12834 solaris2.[0-5] | solaris2.[0-5].*) ;;
12835 *)
12836 # The compiler driver will combine and reorder linker options,
12837 # but understands `-z linker_flag'.
12838 # Supported since Solaris 2.6 (maybe 2.5.1?)
12839 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12840 ;;
12841 esac
12842 link_all_deplibs_CXX=yes
12843
12844 output_verbose_link_cmd='func_echo_all'
12845
12846 # Archives containing C++ object files must be created using
12847 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12848 # necessary to make sure instantiated templates are included
12849 # in the archive.
12850 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12851 ;;
12852 gcx*)
12853 # Green Hills C++ Compiler
12854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12855
12856 # The C++ compiler must be used to create the archive.
12857 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12858 ;;
12859 *)
12860 # GNU C++ compiler with Solaris linker
12861 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12862 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12863 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12864 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12865 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12866 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12867
12868 # Commands to make compiler produce verbose output that lists
12869 # what "hidden" libraries, object files and flags are used when
12870 # linking a shared library.
12871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12872 else
12873 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12874 # platform.
12875 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12876 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12877 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12878
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12882 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12883 fi
12884
12885 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12886 case $host_os in
12887 solaris2.[0-5] | solaris2.[0-5].*) ;;
12888 *)
12889 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12890 ;;
12891 esac
12892 fi
12893 ;;
12894 esac
12895 ;;
12896
12897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12898 no_undefined_flag_CXX='${wl}-z,text'
12899 archive_cmds_need_lc_CXX=no
12900 hardcode_shlibpath_var_CXX=no
12901 runpath_var='LD_RUN_PATH'
12902
12903 case $cc_basename in
12904 CC*)
12905 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12906 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12907 ;;
12908 *)
12909 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12910 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911 ;;
12912 esac
12913 ;;
12914
12915 sysv5* | sco3.2v5* | sco5v6*)
12916 # Note: We can NOT use -z defs as we might desire, because we do not
12917 # link with -lc, and that would cause any symbols used from libc to
12918 # always be unresolved, which means just about no library would
12919 # ever link correctly. If we're not using GNU ld we use -z text
12920 # though, which does catch some bad symbols but isn't as heavy-handed
12921 # as -z defs.
12922 no_undefined_flag_CXX='${wl}-z,text'
12923 allow_undefined_flag_CXX='${wl}-z,nodefs'
12924 archive_cmds_need_lc_CXX=no
12925 hardcode_shlibpath_var_CXX=no
12926 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12927 hardcode_libdir_separator_CXX=':'
12928 link_all_deplibs_CXX=yes
12929 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12930 runpath_var='LD_RUN_PATH'
12931
12932 case $cc_basename in
12933 CC*)
12934 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12935 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12936 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12937 '"$old_archive_cmds_CXX"
12938 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12939 '"$reload_cmds_CXX"
12940 ;;
12941 *)
12942 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12944 ;;
12945 esac
12946 ;;
12947
12948 tandem*)
12949 case $cc_basename in
12950 NCC*)
12951 # NonStop-UX NCC 3.20
12952 # FIXME: insert proper C++ library support
12953 ld_shlibs_CXX=no
12954 ;;
12955 *)
12956 # FIXME: insert proper C++ library support
12957 ld_shlibs_CXX=no
12958 ;;
12959 esac
12960 ;;
12961
12962 vxworks*)
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12965 ;;
12966
12967 *)
12968 # FIXME: insert proper C++ library support
12969 ld_shlibs_CXX=no
12970 ;;
12971 esac
12972
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12974$as_echo "$ld_shlibs_CXX" >&6; }
12975 test "$ld_shlibs_CXX" = no && can_build_shared=no
12976
12977 GCC_CXX="$GXX"
12978 LD_CXX="$LD"
12979
12980 ## CAVEAT EMPTOR:
12981 ## There is no encapsulation within the following macros, do not change
12982 ## the running order or otherwise move them around unless you know exactly
12983 ## what you are doing...
12984 # Dependencies to place before and after the object being linked:
12985predep_objects_CXX=
12986postdep_objects_CXX=
12987predeps_CXX=
12988postdeps_CXX=
12989compiler_lib_search_path_CXX=
12990
12991cat > conftest.$ac_ext <<_LT_EOF
12992class Foo
12993{
12994public:
12995 Foo (void) { a = 0; }
12996private:
12997 int a;
12998};
12999_LT_EOF
13000
13001
13002_lt_libdeps_save_CFLAGS=$CFLAGS
13003case "$CC $CFLAGS " in #(
13004*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13005*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013006*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040013007esac
13008
13009if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13010 (eval $ac_compile) 2>&5
13011 ac_status=$?
13012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13013 test $ac_status = 0; }; then
13014 # Parse the compiler output and extract the necessary
13015 # objects, libraries and library flags.
13016
13017 # Sentinel used to keep track of whether or not we are before
13018 # the conftest object file.
13019 pre_test_object_deps_done=no
13020
13021 for p in `eval "$output_verbose_link_cmd"`; do
13022 case ${prev}${p} in
13023
13024 -L* | -R* | -l*)
13025 # Some compilers place space between "-{L,R}" and the path.
13026 # Remove the space.
13027 if test $p = "-L" ||
13028 test $p = "-R"; then
13029 prev=$p
13030 continue
13031 fi
13032
13033 # Expand the sysroot to ease extracting the directories later.
13034 if test -z "$prev"; then
13035 case $p in
13036 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13037 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13038 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13039 esac
13040 fi
13041 case $p in
13042 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13043 esac
13044 if test "$pre_test_object_deps_done" = no; then
13045 case ${prev} in
13046 -L | -R)
13047 # Internal compiler library paths should come after those
13048 # provided the user. The postdeps already come after the
13049 # user supplied libs so there is no need to process them.
13050 if test -z "$compiler_lib_search_path_CXX"; then
13051 compiler_lib_search_path_CXX="${prev}${p}"
13052 else
13053 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13054 fi
13055 ;;
13056 # The "-l" case would never come before the object being
13057 # linked, so don't bother handling this case.
13058 esac
13059 else
13060 if test -z "$postdeps_CXX"; then
13061 postdeps_CXX="${prev}${p}"
13062 else
13063 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13064 fi
13065 fi
13066 prev=
13067 ;;
13068
13069 *.lto.$objext) ;; # Ignore GCC LTO objects
13070 *.$objext)
13071 # This assumes that the test object file only shows up
13072 # once in the compiler output.
13073 if test "$p" = "conftest.$objext"; then
13074 pre_test_object_deps_done=yes
13075 continue
13076 fi
13077
13078 if test "$pre_test_object_deps_done" = no; then
13079 if test -z "$predep_objects_CXX"; then
13080 predep_objects_CXX="$p"
13081 else
13082 predep_objects_CXX="$predep_objects_CXX $p"
13083 fi
13084 else
13085 if test -z "$postdep_objects_CXX"; then
13086 postdep_objects_CXX="$p"
13087 else
13088 postdep_objects_CXX="$postdep_objects_CXX $p"
13089 fi
13090 fi
13091 ;;
13092
13093 *) ;; # Ignore the rest.
13094
13095 esac
13096 done
13097
13098 # Clean up.
13099 rm -f a.out a.exe
13100else
13101 echo "libtool.m4: error: problem compiling CXX test program"
13102fi
13103
13104$RM -f confest.$objext
13105CFLAGS=$_lt_libdeps_save_CFLAGS
13106
13107# PORTME: override above test on systems where it is broken
13108case $host_os in
13109interix[3-9]*)
13110 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13111 # hack all around it, let's just trust "g++" to DTRT.
13112 predep_objects_CXX=
13113 postdep_objects_CXX=
13114 postdeps_CXX=
13115 ;;
13116
13117linux*)
13118 case `$CC -V 2>&1 | sed 5q` in
13119 *Sun\ C*)
13120 # Sun C++ 5.9
13121
13122 # The more standards-conforming stlport4 library is
13123 # incompatible with the Cstd library. Avoid specifying
13124 # it if it's in CXXFLAGS. Ignore libCrun as
13125 # -library=stlport4 depends on it.
13126 case " $CXX $CXXFLAGS " in
13127 *" -library=stlport4 "*)
13128 solaris_use_stlport4=yes
13129 ;;
13130 esac
13131
13132 if test "$solaris_use_stlport4" != yes; then
13133 postdeps_CXX='-library=Cstd -library=Crun'
13134 fi
13135 ;;
13136 esac
13137 ;;
13138
13139solaris*)
13140 case $cc_basename in
13141 CC* | sunCC*)
13142 # The more standards-conforming stlport4 library is
13143 # incompatible with the Cstd library. Avoid specifying
13144 # it if it's in CXXFLAGS. Ignore libCrun as
13145 # -library=stlport4 depends on it.
13146 case " $CXX $CXXFLAGS " in
13147 *" -library=stlport4 "*)
13148 solaris_use_stlport4=yes
13149 ;;
13150 esac
13151
13152 # Adding this requires a known-good setup of shared libraries for
13153 # Sun compiler versions before 5.6, else PIC objects from an old
13154 # archive will be linked into the output, leading to subtle bugs.
13155 if test "$solaris_use_stlport4" != yes; then
13156 postdeps_CXX='-library=Cstd -library=Crun'
13157 fi
13158 ;;
13159 esac
13160 ;;
13161esac
13162
13163
13164case " $postdeps_CXX " in
13165*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13166esac
13167 compiler_lib_search_dirs_CXX=
13168if test -n "${compiler_lib_search_path_CXX}"; then
13169 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13170fi
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202 lt_prog_compiler_wl_CXX=
13203lt_prog_compiler_pic_CXX=
13204lt_prog_compiler_static_CXX=
13205
13206
13207 # C++ specific cases for pic, static, wl, etc.
13208 if test "$GXX" = yes; then
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='-static'
13211
13212 case $host_os in
13213 aix*)
13214 # All AIX code is PIC.
13215 if test "$host_cpu" = ia64; then
13216 # AIX 5 now supports IA64 processor
13217 lt_prog_compiler_static_CXX='-Bstatic'
13218 fi
13219 ;;
13220
13221 amigaos*)
13222 case $host_cpu in
13223 powerpc)
13224 # see comment about AmigaOS4 .so support
13225 lt_prog_compiler_pic_CXX='-fPIC'
13226 ;;
13227 m68k)
13228 # FIXME: we need at least 68020 code to build shared libraries, but
13229 # adding the `-m68020' flag to GCC prevents building anything better,
13230 # like `-m68040'.
13231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13232 ;;
13233 esac
13234 ;;
13235
13236 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13237 # PIC is the default for these OSes.
13238 ;;
13239 mingw* | cygwin* | os2* | pw32* | cegcc*)
13240 # This hack is so that the source file can tell whether it is being
13241 # built for inclusion in a dll (and should export symbols for example).
13242 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13243 # (--disable-auto-import) libraries
13244 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13245 ;;
13246 darwin* | rhapsody*)
13247 # PIC is the default on this platform
13248 # Common symbols not allowed in MH_DYLIB files
13249 lt_prog_compiler_pic_CXX='-fno-common'
13250 ;;
13251 *djgpp*)
13252 # DJGPP does not support shared libraries at all
13253 lt_prog_compiler_pic_CXX=
13254 ;;
13255 haiku*)
13256 # PIC is the default for Haiku.
13257 # The "-static" flag exists, but is broken.
13258 lt_prog_compiler_static_CXX=
13259 ;;
13260 interix[3-9]*)
13261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13262 # Instead, we relocate shared libraries at runtime.
13263 ;;
13264 sysv4*MP*)
13265 if test -d /usr/nec; then
13266 lt_prog_compiler_pic_CXX=-Kconform_pic
13267 fi
13268 ;;
13269 hpux*)
13270 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13271 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13272 # sets the default TLS model and affects inlining.
13273 case $host_cpu in
13274 hppa*64*)
13275 ;;
13276 *)
13277 lt_prog_compiler_pic_CXX='-fPIC'
13278 ;;
13279 esac
13280 ;;
13281 *qnx* | *nto*)
13282 # QNX uses GNU C++, but need to define -shared option too, otherwise
13283 # it will coredump.
13284 lt_prog_compiler_pic_CXX='-fPIC -shared'
13285 ;;
13286 *)
13287 lt_prog_compiler_pic_CXX='-fPIC'
13288 ;;
13289 esac
13290 else
13291 case $host_os in
13292 aix[4-9]*)
13293 # All AIX code is PIC.
13294 if test "$host_cpu" = ia64; then
13295 # AIX 5 now supports IA64 processor
13296 lt_prog_compiler_static_CXX='-Bstatic'
13297 else
13298 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13299 fi
13300 ;;
13301 chorus*)
13302 case $cc_basename in
13303 cxch68*)
13304 # Green Hills C++ Compiler
13305 # _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"
13306 ;;
13307 esac
13308 ;;
13309 mingw* | cygwin* | os2* | pw32* | cegcc*)
13310 # This hack is so that the source file can tell whether it is being
13311 # built for inclusion in a dll (and should export symbols for example).
13312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13313 ;;
13314 dgux*)
13315 case $cc_basename in
13316 ec++*)
13317 lt_prog_compiler_pic_CXX='-KPIC'
13318 ;;
13319 ghcx*)
13320 # Green Hills C++ Compiler
13321 lt_prog_compiler_pic_CXX='-pic'
13322 ;;
13323 *)
13324 ;;
13325 esac
13326 ;;
13327 freebsd* | dragonfly*)
13328 # FreeBSD uses GNU C++
13329 ;;
13330 hpux9* | hpux10* | hpux11*)
13331 case $cc_basename in
13332 CC*)
13333 lt_prog_compiler_wl_CXX='-Wl,'
13334 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13335 if test "$host_cpu" != ia64; then
13336 lt_prog_compiler_pic_CXX='+Z'
13337 fi
13338 ;;
13339 aCC*)
13340 lt_prog_compiler_wl_CXX='-Wl,'
13341 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13342 case $host_cpu in
13343 hppa*64*|ia64*)
13344 # +Z the default
13345 ;;
13346 *)
13347 lt_prog_compiler_pic_CXX='+Z'
13348 ;;
13349 esac
13350 ;;
13351 *)
13352 ;;
13353 esac
13354 ;;
13355 interix*)
13356 # This is c89, which is MS Visual C++ (no shared libs)
13357 # Anyone wants to do a port?
13358 ;;
13359 irix5* | irix6* | nonstopux*)
13360 case $cc_basename in
13361 CC*)
13362 lt_prog_compiler_wl_CXX='-Wl,'
13363 lt_prog_compiler_static_CXX='-non_shared'
13364 # CC pic flag -KPIC is the default.
13365 ;;
13366 *)
13367 ;;
13368 esac
13369 ;;
13370 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13371 case $cc_basename in
13372 KCC*)
13373 # KAI C++ Compiler
13374 lt_prog_compiler_wl_CXX='--backend -Wl,'
13375 lt_prog_compiler_pic_CXX='-fPIC'
13376 ;;
13377 ecpc* )
13378 # old Intel C++ for x86_64 which still supported -KPIC.
13379 lt_prog_compiler_wl_CXX='-Wl,'
13380 lt_prog_compiler_pic_CXX='-KPIC'
13381 lt_prog_compiler_static_CXX='-static'
13382 ;;
13383 icpc* )
13384 # Intel C++, used to be incompatible with GCC.
13385 # ICC 10 doesn't accept -KPIC any more.
13386 lt_prog_compiler_wl_CXX='-Wl,'
13387 lt_prog_compiler_pic_CXX='-fPIC'
13388 lt_prog_compiler_static_CXX='-static'
13389 ;;
13390 pgCC* | pgcpp*)
13391 # Portland Group C++ compiler
13392 lt_prog_compiler_wl_CXX='-Wl,'
13393 lt_prog_compiler_pic_CXX='-fpic'
13394 lt_prog_compiler_static_CXX='-Bstatic'
13395 ;;
13396 cxx*)
13397 # Compaq C++
13398 # Make sure the PIC flag is empty. It appears that all Alpha
13399 # Linux and Compaq Tru64 Unix objects are PIC.
13400 lt_prog_compiler_pic_CXX=
13401 lt_prog_compiler_static_CXX='-non_shared'
13402 ;;
13403 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13404 # IBM XL 8.0, 9.0 on PPC and BlueGene
13405 lt_prog_compiler_wl_CXX='-Wl,'
13406 lt_prog_compiler_pic_CXX='-qpic'
13407 lt_prog_compiler_static_CXX='-qstaticlink'
13408 ;;
13409 *)
13410 case `$CC -V 2>&1 | sed 5q` in
13411 *Sun\ C*)
13412 # Sun C++ 5.9
13413 lt_prog_compiler_pic_CXX='-KPIC'
13414 lt_prog_compiler_static_CXX='-Bstatic'
13415 lt_prog_compiler_wl_CXX='-Qoption ld '
13416 ;;
13417 esac
13418 ;;
13419 esac
13420 ;;
13421 lynxos*)
13422 ;;
13423 m88k*)
13424 ;;
13425 mvs*)
13426 case $cc_basename in
13427 cxx*)
13428 lt_prog_compiler_pic_CXX='-W c,exportall'
13429 ;;
13430 *)
13431 ;;
13432 esac
13433 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013434 netbsd*)
Emeric Vigier2f625822012-08-06 11:09:52 -040013435 ;;
13436 *qnx* | *nto*)
13437 # QNX uses GNU C++, but need to define -shared option too, otherwise
13438 # it will coredump.
13439 lt_prog_compiler_pic_CXX='-fPIC -shared'
13440 ;;
13441 osf3* | osf4* | osf5*)
13442 case $cc_basename in
13443 KCC*)
13444 lt_prog_compiler_wl_CXX='--backend -Wl,'
13445 ;;
13446 RCC*)
13447 # Rational C++ 2.4.1
13448 lt_prog_compiler_pic_CXX='-pic'
13449 ;;
13450 cxx*)
13451 # Digital/Compaq C++
13452 lt_prog_compiler_wl_CXX='-Wl,'
13453 # Make sure the PIC flag is empty. It appears that all Alpha
13454 # Linux and Compaq Tru64 Unix objects are PIC.
13455 lt_prog_compiler_pic_CXX=
13456 lt_prog_compiler_static_CXX='-non_shared'
13457 ;;
13458 *)
13459 ;;
13460 esac
13461 ;;
13462 psos*)
13463 ;;
13464 solaris*)
13465 case $cc_basename in
13466 CC* | sunCC*)
13467 # Sun C++ 4.2, 5.x and Centerline C++
13468 lt_prog_compiler_pic_CXX='-KPIC'
13469 lt_prog_compiler_static_CXX='-Bstatic'
13470 lt_prog_compiler_wl_CXX='-Qoption ld '
13471 ;;
13472 gcx*)
13473 # Green Hills C++ Compiler
13474 lt_prog_compiler_pic_CXX='-PIC'
13475 ;;
13476 *)
13477 ;;
13478 esac
13479 ;;
13480 sunos4*)
13481 case $cc_basename in
13482 CC*)
13483 # Sun C++ 4.x
13484 lt_prog_compiler_pic_CXX='-pic'
13485 lt_prog_compiler_static_CXX='-Bstatic'
13486 ;;
13487 lcc*)
13488 # Lucid
13489 lt_prog_compiler_pic_CXX='-pic'
13490 ;;
13491 *)
13492 ;;
13493 esac
13494 ;;
13495 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13496 case $cc_basename in
13497 CC*)
13498 lt_prog_compiler_wl_CXX='-Wl,'
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 lt_prog_compiler_static_CXX='-Bstatic'
13501 ;;
13502 esac
13503 ;;
13504 tandem*)
13505 case $cc_basename in
13506 NCC*)
13507 # NonStop-UX NCC 3.20
13508 lt_prog_compiler_pic_CXX='-KPIC'
13509 ;;
13510 *)
13511 ;;
13512 esac
13513 ;;
13514 vxworks*)
13515 ;;
13516 *)
13517 lt_prog_compiler_can_build_shared_CXX=no
13518 ;;
13519 esac
13520 fi
13521
13522case $host_os in
13523 # For platforms which do not support PIC, -DPIC is meaningless:
13524 *djgpp*)
13525 lt_prog_compiler_pic_CXX=
13526 ;;
13527 *)
13528 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13529 ;;
13530esac
13531
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13533$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13534if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536else
13537 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13540$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13541lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13542
13543#
13544# Check to make sure the PIC flag actually works.
13545#
13546if test -n "$lt_prog_compiler_pic_CXX"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13548$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13549if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551else
13552 lt_cv_prog_compiler_pic_works_CXX=no
13553 ac_outfile=conftest.$ac_objext
13554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13555 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13556 # Insert the option either (1) after the last *FLAGS variable, or
13557 # (2) before a word containing "conftest.", or (3) at the end.
13558 # Note that $ac_compile itself does not contain backslashes and begins
13559 # with a dollar sign (not a hyphen), so the echo should work correctly.
13560 # The option is referenced via a variable to avoid confusing sed.
13561 lt_compile=`echo "$ac_compile" | $SED \
13562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13564 -e 's:$: $lt_compiler_flag:'`
13565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13566 (eval "$lt_compile" 2>conftest.err)
13567 ac_status=$?
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 if (exit $ac_status) && test -s "$ac_outfile"; then
13571 # The compiler can only warn and ignore the option if not recognized
13572 # So say no if there are warnings other than the usual output.
13573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13576 lt_cv_prog_compiler_pic_works_CXX=yes
13577 fi
13578 fi
13579 $RM conftest*
13580
13581fi
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13583$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13584
13585if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13586 case $lt_prog_compiler_pic_CXX in
13587 "" | " "*) ;;
13588 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13589 esac
13590else
13591 lt_prog_compiler_pic_CXX=
13592 lt_prog_compiler_can_build_shared_CXX=no
13593fi
13594
13595fi
13596
13597
13598
13599
13600
13601#
13602# Check to make sure the static flag actually works.
13603#
13604wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13606$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13607if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609else
13610 lt_cv_prog_compiler_static_works_CXX=no
13611 save_LDFLAGS="$LDFLAGS"
13612 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13613 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13615 # The linker can only warn and ignore the option if not recognized
13616 # So say no if there are warnings
13617 if test -s conftest.err; then
13618 # Append any errors to the config.log.
13619 cat conftest.err 1>&5
13620 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13622 if diff conftest.exp conftest.er2 >/dev/null; then
13623 lt_cv_prog_compiler_static_works_CXX=yes
13624 fi
13625 else
13626 lt_cv_prog_compiler_static_works_CXX=yes
13627 fi
13628 fi
13629 $RM -r conftest*
13630 LDFLAGS="$save_LDFLAGS"
13631
13632fi
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13634$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13635
13636if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13637 :
13638else
13639 lt_prog_compiler_static_CXX=
13640fi
13641
13642
13643
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13646$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13647if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649else
13650 lt_cv_prog_compiler_c_o_CXX=no
13651 $RM -r conftest 2>/dev/null
13652 mkdir conftest
13653 cd conftest
13654 mkdir out
13655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13656
13657 lt_compiler_flag="-o out/conftest2.$ac_objext"
13658 # Insert the option either (1) after the last *FLAGS variable, or
13659 # (2) before a word containing "conftest.", or (3) at the end.
13660 # Note that $ac_compile itself does not contain backslashes and begins
13661 # with a dollar sign (not a hyphen), so the echo should work correctly.
13662 lt_compile=`echo "$ac_compile" | $SED \
13663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13665 -e 's:$: $lt_compiler_flag:'`
13666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13667 (eval "$lt_compile" 2>out/conftest.err)
13668 ac_status=$?
13669 cat out/conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13672 then
13673 # The compiler can only warn and ignore the option if not recognized
13674 # So say no if there are warnings
13675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13678 lt_cv_prog_compiler_c_o_CXX=yes
13679 fi
13680 fi
13681 chmod u+w . 2>&5
13682 $RM conftest*
13683 # SGI C++ compiler will create directory out/ii_files/ for
13684 # template instantiation
13685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13686 $RM out/* && rmdir out
13687 cd ..
13688 $RM -r conftest
13689 $RM conftest*
13690
13691fi
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13693$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13694
13695
13696
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13699if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701else
13702 lt_cv_prog_compiler_c_o_CXX=no
13703 $RM -r conftest 2>/dev/null
13704 mkdir conftest
13705 cd conftest
13706 mkdir out
13707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13708
13709 lt_compiler_flag="-o out/conftest2.$ac_objext"
13710 # Insert the option either (1) after the last *FLAGS variable, or
13711 # (2) before a word containing "conftest.", or (3) at the end.
13712 # Note that $ac_compile itself does not contain backslashes and begins
13713 # with a dollar sign (not a hyphen), so the echo should work correctly.
13714 lt_compile=`echo "$ac_compile" | $SED \
13715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13717 -e 's:$: $lt_compiler_flag:'`
13718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13719 (eval "$lt_compile" 2>out/conftest.err)
13720 ac_status=$?
13721 cat out/conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13724 then
13725 # The compiler can only warn and ignore the option if not recognized
13726 # So say no if there are warnings
13727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13730 lt_cv_prog_compiler_c_o_CXX=yes
13731 fi
13732 fi
13733 chmod u+w . 2>&5
13734 $RM conftest*
13735 # SGI C++ compiler will create directory out/ii_files/ for
13736 # template instantiation
13737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13738 $RM out/* && rmdir out
13739 cd ..
13740 $RM -r conftest
13741 $RM conftest*
13742
13743fi
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13745$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13746
13747
13748
13749
13750hard_links="nottested"
13751if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13752 # do not overwrite the value of need_locks provided by the user
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13754$as_echo_n "checking if we can lock with hard links... " >&6; }
13755 hard_links=yes
13756 $RM conftest*
13757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13758 touch conftest.a
13759 ln conftest.a conftest.b 2>&5 || hard_links=no
13760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13762$as_echo "$hard_links" >&6; }
13763 if test "$hard_links" = no; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13765$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13766 need_locks=warn
13767 fi
13768else
13769 need_locks=no
13770fi
13771
13772
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13776
13777 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13778 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13779 case $host_os in
13780 aix[4-9]*)
13781 # If we're using GNU nm, then we don't want the "-C" option.
13782 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13783 # Also, AIX nm treats weak defined symbols like other global defined
13784 # symbols, whereas GNU nm marks them as "W".
13785 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13786 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13787 else
13788 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13789 fi
13790 ;;
13791 pw32*)
13792 export_symbols_cmds_CXX="$ltdll_cmds"
13793 ;;
13794 cygwin* | mingw* | cegcc*)
13795 case $cc_basename in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013796 cl*)
13797 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13798 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040013799 *)
13800 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'
13801 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13802 ;;
13803 esac
13804 ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040013805 *)
13806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13807 ;;
13808 esac
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13811$as_echo "$ld_shlibs_CXX" >&6; }
13812test "$ld_shlibs_CXX" = no && can_build_shared=no
13813
13814with_gnu_ld_CXX=$with_gnu_ld
13815
13816
13817
13818
13819
13820
13821#
13822# Do we need to explicitly link libc?
13823#
13824case "x$archive_cmds_need_lc_CXX" in
13825x|xyes)
13826 # Assume -lc should be added
13827 archive_cmds_need_lc_CXX=yes
13828
13829 if test "$enable_shared" = yes && test "$GCC" = yes; then
13830 case $archive_cmds_CXX in
13831 *'~'*)
13832 # FIXME: we may have to deal with multi-command sequences.
13833 ;;
13834 '$CC '*)
13835 # Test whether the compiler implicitly links with -lc since on some
13836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13837 # to ld, don't add -lc before -lgcc.
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13839$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13840if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842else
13843 $RM conftest*
13844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13845
13846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13847 (eval $ac_compile) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13850 test $ac_status = 0; } 2>conftest.err; then
13851 soname=conftest
13852 lib=conftest
13853 libobjs=conftest.$ac_objext
13854 deplibs=
13855 wl=$lt_prog_compiler_wl_CXX
13856 pic_flag=$lt_prog_compiler_pic_CXX
13857 compiler_flags=-v
13858 linker_flags=-v
13859 verstring=
13860 output_objdir=.
13861 libname=conftest
13862 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13863 allow_undefined_flag_CXX=
13864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13865 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13866 ac_status=$?
13867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13868 test $ac_status = 0; }
13869 then
13870 lt_cv_archive_cmds_need_lc_CXX=no
13871 else
13872 lt_cv_archive_cmds_need_lc_CXX=yes
13873 fi
13874 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13875 else
13876 cat conftest.err 1>&5
13877 fi
13878 $RM conftest*
13879
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13882$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13883 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13884 ;;
13885 esac
13886 fi
13887 ;;
13888esac
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
Emeric Vigier2f625822012-08-06 11:09:52 -040013951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13952$as_echo_n "checking dynamic linker characteristics... " >&6; }
13953
13954library_names_spec=
13955libname_spec='lib$name'
13956soname_spec=
13957shrext_cmds=".so"
13958postinstall_cmds=
13959postuninstall_cmds=
13960finish_cmds=
13961finish_eval=
13962shlibpath_var=
13963shlibpath_overrides_runpath=unknown
13964version_type=none
13965dynamic_linker="$host_os ld.so"
13966sys_lib_dlsearch_path_spec="/lib /usr/lib"
13967need_lib_prefix=unknown
13968hardcode_into_libs=no
13969
13970# when you set need_version to no, make sure it does not cause -set_version
13971# flags to be left without arguments
13972need_version=unknown
13973
13974case $host_os in
13975aix3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013976 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040013977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13978 shlibpath_var=LIBPATH
13979
13980 # AIX 3 has no versioning support, so we append a major version to the name.
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 ;;
13983
13984aix[4-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050013985 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040013986 need_lib_prefix=no
13987 need_version=no
13988 hardcode_into_libs=yes
13989 if test "$host_cpu" = ia64; then
13990 # AIX 5 supports IA64
13991 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 else
13994 # With GCC up to 2.95.x, collect2 would create an import file
13995 # for dependence libraries. The import file would start with
13996 # the line `#! .'. This would cause the generated library to
13997 # depend on `.', always an invalid library. This was fixed in
13998 # development snapshots of GCC prior to 3.0.
13999 case $host_os in
14000 aix4 | aix4.[01] | aix4.[01].*)
14001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14002 echo ' yes '
14003 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14004 :
14005 else
14006 can_build_shared=no
14007 fi
14008 ;;
14009 esac
14010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14011 # soname into executable. Probably we can add versioning support to
14012 # collect2, so additional links can be useful in future.
14013 if test "$aix_use_runtimelinking" = yes; then
14014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14015 # instead of lib<name>.a to let people know that these are not
14016 # typical AIX shared libraries.
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 else
14019 # We preserve .a as extension for shared libraries through AIX4.2
14020 # and later when we are not doing run time linking.
14021 library_names_spec='${libname}${release}.a $libname.a'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 fi
14024 shlibpath_var=LIBPATH
14025 fi
14026 ;;
14027
14028amigaos*)
14029 case $host_cpu in
14030 powerpc)
14031 # Since July 2007 AmigaOS4 officially supports .so libraries.
14032 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 ;;
14035 m68k)
14036 library_names_spec='$libname.ixlibrary $libname.a'
14037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14038 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14039 ;;
14040 esac
14041 ;;
14042
14043beos*)
14044 library_names_spec='${libname}${shared_ext}'
14045 dynamic_linker="$host_os ld.so"
14046 shlibpath_var=LIBRARY_PATH
14047 ;;
14048
14049bsdi[45]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014050 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014051 need_version=no
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14058 # the default ld.so.conf also contains /usr/contrib/lib and
14059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14060 # libtool to hard-code these into programs
14061 ;;
14062
14063cygwin* | mingw* | pw32* | cegcc*)
14064 version_type=windows
14065 shrext_cmds=".dll"
14066 need_version=no
14067 need_lib_prefix=no
14068
14069 case $GCC,$cc_basename in
14070 yes,*)
14071 # gcc
14072 library_names_spec='$libname.dll.a'
14073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14074 postinstall_cmds='base_file=`basename \${file}`~
14075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14076 dldir=$destdir/`dirname \$dlpath`~
14077 test -d \$dldir || mkdir -p \$dldir~
14078 $install_prog $dir/$dlname \$dldir/$dlname~
14079 chmod a+x \$dldir/$dlname~
14080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14082 fi'
14083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14084 dlpath=$dir/\$dldll~
14085 $RM \$dlpath'
14086 shlibpath_overrides_runpath=yes
14087
14088 case $host_os in
14089 cygwin*)
14090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14092
14093 ;;
14094 mingw* | cegcc*)
14095 # MinGW DLLs use traditional 'lib' prefix
14096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14097 ;;
14098 pw32*)
14099 # pw32 DLLs use 'pw' prefix rather than 'lib'
14100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14101 ;;
14102 esac
14103 dynamic_linker='Win32 ld.exe'
14104 ;;
14105
14106 *,cl*)
14107 # Native MSVC
14108 libname_spec='$name'
14109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14110 library_names_spec='${libname}.dll.lib'
14111
14112 case $build_os in
14113 mingw*)
14114 sys_lib_search_path_spec=
14115 lt_save_ifs=$IFS
14116 IFS=';'
14117 for lt_path in $LIB
14118 do
14119 IFS=$lt_save_ifs
14120 # Let DOS variable expansion print the short 8.3 style file name.
14121 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14122 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14123 done
14124 IFS=$lt_save_ifs
14125 # Convert to MSYS style.
14126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14127 ;;
14128 cygwin*)
14129 # Convert to unix form, then to dos form, then back to unix form
14130 # but this time dos style (no spaces!) so that the unix form looks
14131 # like /cygdrive/c/PROGRA~1:/cygdr...
14132 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14133 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14134 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14135 ;;
14136 *)
14137 sys_lib_search_path_spec="$LIB"
14138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14139 # It is most probably a Windows format PATH.
14140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14141 else
14142 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14143 fi
14144 # FIXME: find the short name or the path components, as spaces are
14145 # common. (e.g. "Program Files" -> "PROGRA~1")
14146 ;;
14147 esac
14148
14149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14150 postinstall_cmds='base_file=`basename \${file}`~
14151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14152 dldir=$destdir/`dirname \$dlpath`~
14153 test -d \$dldir || mkdir -p \$dldir~
14154 $install_prog $dir/$dlname \$dldir/$dlname'
14155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14156 dlpath=$dir/\$dldll~
14157 $RM \$dlpath'
14158 shlibpath_overrides_runpath=yes
14159 dynamic_linker='Win32 link.exe'
14160 ;;
14161
14162 *)
14163 # Assume MSVC wrapper
14164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14165 dynamic_linker='Win32 ld.exe'
14166 ;;
14167 esac
14168 # FIXME: first we should search . and the directory the executable is in
14169 shlibpath_var=PATH
14170 ;;
14171
14172darwin* | rhapsody*)
14173 dynamic_linker="$host_os dyld"
14174 version_type=darwin
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14178 soname_spec='${libname}${release}${major}$shared_ext'
14179 shlibpath_overrides_runpath=yes
14180 shlibpath_var=DYLD_LIBRARY_PATH
14181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14182
14183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14184 ;;
14185
14186dgux*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014187 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014188 need_lib_prefix=no
14189 need_version=no
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 ;;
14194
Emeric Vigier2f625822012-08-06 11:09:52 -040014195freebsd* | dragonfly*)
14196 # DragonFly does not have aout. When/if they implement a new
14197 # versioning mechanism, adjust this.
14198 if test -x /usr/bin/objformat; then
14199 objformat=`/usr/bin/objformat`
14200 else
14201 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014202 freebsd[23].*) objformat=aout ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040014203 *) objformat=elf ;;
14204 esac
14205 fi
14206 version_type=freebsd-$objformat
14207 case $version_type in
14208 freebsd-elf*)
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14210 need_version=no
14211 need_lib_prefix=no
14212 ;;
14213 freebsd-*)
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14215 need_version=yes
14216 ;;
14217 esac
14218 shlibpath_var=LD_LIBRARY_PATH
14219 case $host_os in
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014220 freebsd2.*)
Emeric Vigier2f625822012-08-06 11:09:52 -040014221 shlibpath_overrides_runpath=yes
14222 ;;
14223 freebsd3.[01]* | freebsdelf3.[01]*)
14224 shlibpath_overrides_runpath=yes
14225 hardcode_into_libs=yes
14226 ;;
14227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14229 shlibpath_overrides_runpath=no
14230 hardcode_into_libs=yes
14231 ;;
14232 *) # from 4.6 on, and DragonFly
14233 shlibpath_overrides_runpath=yes
14234 hardcode_into_libs=yes
14235 ;;
14236 esac
14237 ;;
14238
14239gnu*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014240 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014241 need_lib_prefix=no
14242 need_version=no
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14244 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=no
14247 hardcode_into_libs=yes
14248 ;;
14249
14250haiku*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014251 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014252 need_lib_prefix=no
14253 need_version=no
14254 dynamic_linker="$host_os runtime_loader"
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LIBRARY_PATH
14258 shlibpath_overrides_runpath=yes
14259 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14260 hardcode_into_libs=yes
14261 ;;
14262
14263hpux9* | hpux10* | hpux11*)
14264 # Give a soname corresponding to the major version so that dld.sl refuses to
14265 # link against other versions.
14266 version_type=sunos
14267 need_lib_prefix=no
14268 need_version=no
14269 case $host_cpu in
14270 ia64*)
14271 shrext_cmds='.so'
14272 hardcode_into_libs=yes
14273 dynamic_linker="$host_os dld.so"
14274 shlibpath_var=LD_LIBRARY_PATH
14275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 if test "X$HPUX_IA64_MODE" = X32; then
14279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14280 else
14281 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14282 fi
14283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14284 ;;
14285 hppa*64*)
14286 shrext_cmds='.sl'
14287 hardcode_into_libs=yes
14288 dynamic_linker="$host_os dld.sl"
14289 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14295 ;;
14296 *)
14297 shrext_cmds='.sl'
14298 dynamic_linker="$host_os dld.sl"
14299 shlibpath_var=SHLIB_PATH
14300 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 ;;
14304 esac
14305 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14306 postinstall_cmds='chmod 555 $lib'
14307 # or fails outright, so override atomically:
14308 install_override_mode=555
14309 ;;
14310
14311interix[3-9]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014312 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014313 need_lib_prefix=no
14314 need_version=no
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=no
14320 hardcode_into_libs=yes
14321 ;;
14322
14323irix5* | irix6* | nonstopux*)
14324 case $host_os in
14325 nonstopux*) version_type=nonstopux ;;
14326 *)
14327 if test "$lt_cv_prog_gnu_ld" = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014328 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014329 else
14330 version_type=irix
14331 fi ;;
14332 esac
14333 need_lib_prefix=no
14334 need_version=no
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14337 case $host_os in
14338 irix5* | nonstopux*)
14339 libsuff= shlibsuff=
14340 ;;
14341 *)
14342 case $LD in # libtool.m4 will add one of these switches to LD
14343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14344 libsuff= shlibsuff= libmagic=32-bit;;
14345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14346 libsuff=32 shlibsuff=N32 libmagic=N32;;
14347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14349 *) libsuff= shlibsuff= libmagic=never-match;;
14350 esac
14351 ;;
14352 esac
14353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14354 shlibpath_overrides_runpath=no
14355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14357 hardcode_into_libs=yes
14358 ;;
14359
14360# No shared lib support for Linux oldld, aout, or coff.
14361linux*oldld* | linux*aout* | linux*coff*)
14362 dynamic_linker=no
14363 ;;
14364
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014365# This must be glibc/ELF.
Emeric Vigier2f625822012-08-06 11:09:52 -040014366linux* | k*bsd*-gnu | kopensolaris*-gnu)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014367 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014368 need_lib_prefix=no
14369 need_version=no
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 soname_spec='${libname}${release}${shared_ext}$major'
14372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 shlibpath_overrides_runpath=no
14375
14376 # Some binutils ld are patched to set DT_RUNPATH
14377 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379else
14380 lt_cv_shlibpath_overrides_runpath=no
14381 save_LDFLAGS=$LDFLAGS
14382 save_libdir=$libdir
14383 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14384 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386/* end confdefs.h. */
14387
14388int
14389main ()
14390{
14391
14392 ;
14393 return 0;
14394}
14395_ACEOF
14396if ac_fn_cxx_try_link "$LINENO"; then :
14397 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14398 lt_cv_shlibpath_overrides_runpath=yes
14399fi
14400fi
14401rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403 LDFLAGS=$save_LDFLAGS
14404 libdir=$save_libdir
14405
14406fi
14407
14408 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14409
14410 # This implies no fast_install, which is unacceptable.
14411 # Some rework will be needed to allow for fast_install
14412 # before this can be enabled.
14413 hardcode_into_libs=yes
14414
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014415 # Add ABI-specific directories to the system library path.
14416 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14417
Emeric Vigier2f625822012-08-06 11:09:52 -040014418 # Append ld.so.conf contents to the search path
14419 if test -f /etc/ld.so.conf; then
14420 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' ' '`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014421 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14422
Emeric Vigier2f625822012-08-06 11:09:52 -040014423 fi
14424
14425 # We used to test for /lib/ld.so.1 and disable shared libraries on
14426 # powerpc, because MkLinux only supported shared libraries with the
14427 # GNU dynamic linker. Since this was broken with cross compilers,
14428 # most powerpc-linux boxes support dynamic linking these days and
14429 # people can always --disable-shared, the test was removed, and we
14430 # assume the GNU/Linux dynamic linker is in use.
14431 dynamic_linker='GNU/Linux ld.so'
14432 ;;
14433
Emeric Vigier2f625822012-08-06 11:09:52 -040014434netbsd*)
14435 version_type=sunos
14436 need_lib_prefix=no
14437 need_version=no
14438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14441 dynamic_linker='NetBSD (a.out) ld.so'
14442 else
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 dynamic_linker='NetBSD ld.elf_so'
14446 fi
14447 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=yes
14449 hardcode_into_libs=yes
14450 ;;
14451
14452newsos6)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014453 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=yes
14457 ;;
14458
14459*nto* | *qnx*)
14460 version_type=qnx
14461 need_lib_prefix=no
14462 need_version=no
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=no
14467 hardcode_into_libs=yes
14468 dynamic_linker='ldqnx.so'
14469 ;;
14470
14471openbsd*)
14472 version_type=sunos
14473 sys_lib_dlsearch_path_spec="/usr/lib"
14474 need_lib_prefix=no
14475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14476 case $host_os in
14477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14478 *) need_version=no ;;
14479 esac
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14484 case $host_os in
14485 openbsd2.[89] | openbsd2.[89].*)
14486 shlibpath_overrides_runpath=no
14487 ;;
14488 *)
14489 shlibpath_overrides_runpath=yes
14490 ;;
14491 esac
14492 else
14493 shlibpath_overrides_runpath=yes
14494 fi
14495 ;;
14496
14497os2*)
14498 libname_spec='$name'
14499 shrext_cmds=".dll"
14500 need_lib_prefix=no
14501 library_names_spec='$libname${shared_ext} $libname.a'
14502 dynamic_linker='OS/2 ld.exe'
14503 shlibpath_var=LIBPATH
14504 ;;
14505
14506osf3* | osf4* | osf5*)
14507 version_type=osf
14508 need_lib_prefix=no
14509 need_version=no
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14515 ;;
14516
14517rdos*)
14518 dynamic_linker=no
14519 ;;
14520
14521solaris*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014522 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014523 need_lib_prefix=no
14524 need_version=no
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 shlibpath_overrides_runpath=yes
14529 hardcode_into_libs=yes
14530 # ldd complains unless libraries are executable
14531 postinstall_cmds='chmod +x $lib'
14532 ;;
14533
14534sunos4*)
14535 version_type=sunos
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 shlibpath_overrides_runpath=yes
14540 if test "$with_gnu_ld" = yes; then
14541 need_lib_prefix=no
14542 fi
14543 need_version=yes
14544 ;;
14545
14546sysv4 | sysv4.3*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014547 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 case $host_vendor in
14552 sni)
14553 shlibpath_overrides_runpath=no
14554 need_lib_prefix=no
14555 runpath_var=LD_RUN_PATH
14556 ;;
14557 siemens)
14558 need_lib_prefix=no
14559 ;;
14560 motorola)
14561 need_lib_prefix=no
14562 need_version=no
14563 shlibpath_overrides_runpath=no
14564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14565 ;;
14566 esac
14567 ;;
14568
14569sysv4*MP*)
14570 if test -d /usr/nec ;then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014571 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14573 soname_spec='$libname${shared_ext}.$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 fi
14576 ;;
14577
14578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14579 version_type=freebsd-elf
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14587 if test "$with_gnu_ld" = yes; then
14588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14589 else
14590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14591 case $host_os in
14592 sco3.2v5*)
14593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14594 ;;
14595 esac
14596 fi
14597 sys_lib_dlsearch_path_spec='/usr/lib'
14598 ;;
14599
14600tpf*)
14601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014602 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014603 need_lib_prefix=no
14604 need_version=no
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=no
14608 hardcode_into_libs=yes
14609 ;;
14610
14611uts4*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014612 version_type=linux # correct to gnu/linux during the next big refactor
Emeric Vigier2f625822012-08-06 11:09:52 -040014613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 ;;
14617
14618*)
14619 dynamic_linker=no
14620 ;;
14621esac
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14623$as_echo "$dynamic_linker" >&6; }
14624test "$dynamic_linker" = no && can_build_shared=no
14625
14626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14627if test "$GCC" = yes; then
14628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14629fi
14630
14631if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14632 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14633fi
14634if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14635 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14636fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14676$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14677hardcode_action_CXX=
14678if test -n "$hardcode_libdir_flag_spec_CXX" ||
14679 test -n "$runpath_var_CXX" ||
14680 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14681
14682 # We can hardcode non-existent directories.
14683 if test "$hardcode_direct_CXX" != no &&
14684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14685 # have to relink, otherwise we might link with an installed library
14686 # when we should be linking with a yet-to-be-installed one
14687 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14688 test "$hardcode_minus_L_CXX" != no; then
14689 # Linking always hardcodes the temporary library directory.
14690 hardcode_action_CXX=relink
14691 else
14692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14693 hardcode_action_CXX=immediate
14694 fi
14695else
14696 # We cannot hardcode anything, or else we can only hardcode existing
14697 # directories.
14698 hardcode_action_CXX=unsupported
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14701$as_echo "$hardcode_action_CXX" >&6; }
14702
14703if test "$hardcode_action_CXX" = relink ||
14704 test "$inherit_rpath_CXX" = yes; then
14705 # Fast installation is not supported
14706 enable_fast_install=no
14707elif test "$shlibpath_overrides_runpath" = yes ||
14708 test "$enable_shared" = no; then
14709 # Fast installation is not necessary
14710 enable_fast_install=needless
14711fi
14712
14713
14714
14715
14716
14717
14718
14719 fi # test -n "$compiler"
14720
14721 CC=$lt_save_CC
14722 CFLAGS=$lt_save_CFLAGS
14723 LDCXX=$LD
14724 LD=$lt_save_LD
14725 GCC=$lt_save_GCC
14726 with_gnu_ld=$lt_save_with_gnu_ld
14727 lt_cv_path_LDCXX=$lt_cv_path_LD
14728 lt_cv_path_LD=$lt_save_path_LD
14729 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14730 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14731fi # test "$_lt_caught_CXX_error" != yes
14732
14733ac_ext=c
14734ac_cpp='$CPP $CPPFLAGS'
14735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737ac_compiler_gnu=$ac_cv_c_compiler_gnu
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014751
14752
Emeric Vigier2f625822012-08-06 11:09:52 -040014753 ac_config_commands="$ac_config_commands libtool"
14754
14755
14756
14757
14758# Only expand once:
14759
14760
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014761am__api_version='1.13'
Emeric Vigier2f625822012-08-06 11:09:52 -040014762
14763# Find a good install program. We prefer a C program (faster),
14764# so one script is as good as another. But avoid the broken or
14765# incompatible versions:
14766# SysV /etc/install, /usr/sbin/install
14767# SunOS /usr/etc/install
14768# IRIX /sbin/install
14769# AIX /bin/install
14770# AmigaOS /C/install, which installs bootblocks on floppy discs
14771# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14772# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14773# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14774# OS/2's system install, which has a completely different semantic
14775# ./install, which can be erroneously created by make from ./install.sh.
14776# Reject install programs that cannot install multiple files.
14777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14778$as_echo_n "checking for a BSD-compatible install... " >&6; }
14779if test -z "$INSTALL"; then
14780if ${ac_cv_path_install+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784for as_dir in $PATH
14785do
14786 IFS=$as_save_IFS
14787 test -z "$as_dir" && as_dir=.
14788 # Account for people who put trailing slashes in PATH elements.
14789case $as_dir/ in #((
14790 ./ | .// | /[cC]/* | \
14791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14792 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14793 /usr/ucb/* ) ;;
14794 *)
14795 # OSF1 and SCO ODT 3.0 have their own names for install.
14796 # Don't use installbsd from OSF since it installs stuff as root
14797 # by default.
14798 for ac_prog in ginstall scoinst install; do
14799 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014800 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040014801 if test $ac_prog = install &&
14802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14803 # AIX install. It has an incompatible calling convention.
14804 :
14805 elif test $ac_prog = install &&
14806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14807 # program-specific install script used by HP pwplus--don't use.
14808 :
14809 else
14810 rm -rf conftest.one conftest.two conftest.dir
14811 echo one > conftest.one
14812 echo two > conftest.two
14813 mkdir conftest.dir
14814 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14815 test -s conftest.one && test -s conftest.two &&
14816 test -s conftest.dir/conftest.one &&
14817 test -s conftest.dir/conftest.two
14818 then
14819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14820 break 3
14821 fi
14822 fi
14823 fi
14824 done
14825 done
14826 ;;
14827esac
14828
14829 done
14830IFS=$as_save_IFS
14831
14832rm -rf conftest.one conftest.two conftest.dir
14833
14834fi
14835 if test "${ac_cv_path_install+set}" = set; then
14836 INSTALL=$ac_cv_path_install
14837 else
14838 # As a last resort, use the slow shell script. Don't cache a
14839 # value for INSTALL within a source directory, because that will
14840 # break other packages using the cache if that directory is
14841 # removed, or if the value is a relative name.
14842 INSTALL=$ac_install_sh
14843 fi
14844fi
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14846$as_echo "$INSTALL" >&6; }
14847
14848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14849# It thinks the first close brace ends the variable substitution.
14850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14851
14852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14853
14854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14855
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14857$as_echo_n "checking whether build environment is sane... " >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040014858# Reject unsafe characters in $srcdir or the absolute working directory
14859# name. Accept space and tab only in the latter.
14860am_lf='
14861'
14862case `pwd` in
14863 *[\\\"\#\$\&\'\`$am_lf]*)
14864 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14865esac
14866case $srcdir in
14867 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014868 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Emeric Vigier2f625822012-08-06 11:09:52 -040014869esac
14870
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014871# Do 'set' in a subshell so we don't clobber the current shell's
Emeric Vigier2f625822012-08-06 11:09:52 -040014872# arguments. Must try -L first in case configure is actually a
14873# symlink; some systems play weird games with the mod time of symlinks
14874# (eg FreeBSD returns the mod time of the symlink's containing
14875# directory).
14876if (
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014877 am_has_slept=no
14878 for am_try in 1 2; do
14879 echo "timestamp, slept: $am_has_slept" > conftest.file
14880 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14881 if test "$*" = "X"; then
14882 # -L didn't work.
14883 set X `ls -t "$srcdir/configure" conftest.file`
14884 fi
14885 if test "$*" != "X $srcdir/configure conftest.file" \
14886 && test "$*" != "X conftest.file $srcdir/configure"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040014887
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014888 # If neither matched, then we have a broken ls. This can happen
14889 # if, for instance, CONFIG_SHELL is bash and it inherits a
14890 # broken ls alias from the environment. This has actually
14891 # happened. Such a system could not be considered "sane".
14892 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
14893 alias in your environment" "$LINENO" 5
14894 fi
14895 if test "$2" = conftest.file || test $am_try -eq 2; then
14896 break
14897 fi
14898 # Just in case.
14899 sleep 1
14900 am_has_slept=yes
14901 done
Emeric Vigier2f625822012-08-06 11:09:52 -040014902 test "$2" = conftest.file
14903 )
14904then
14905 # Ok.
14906 :
14907else
14908 as_fn_error $? "newly created file is older than distributed files!
14909Check your system clock" "$LINENO" 5
14910fi
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14912$as_echo "yes" >&6; }
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014913# If we didn't sleep, we still need to ensure time stamps of config.status and
14914# generated files are strictly newer.
14915am_sleep_pid=
14916if grep 'slept: no' conftest.file >/dev/null 2>&1; then
14917 ( sleep 1 ) &
14918 am_sleep_pid=$!
14919fi
14920
14921rm -f conftest.file
14922
Emeric Vigier2f625822012-08-06 11:09:52 -040014923test "$program_prefix" != NONE &&
14924 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14925# Use a double $ so make ignores it.
14926test "$program_suffix" != NONE &&
14927 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14928# Double any \ or $.
14929# By default was `s,x,x', remove it if useless.
14930ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14931program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14932
14933# expand $ac_aux_dir to an absolute path
14934am_aux_dir=`cd $ac_aux_dir && pwd`
14935
14936if test x"${MISSING+set}" != xset; then
14937 case $am_aux_dir in
14938 *\ * | *\ *)
14939 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14940 *)
14941 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14942 esac
14943fi
14944# Use eval to expand $SHELL
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014945if eval "$MISSING --is-lightweight"; then
14946 am_missing_run="$MISSING "
Emeric Vigier2f625822012-08-06 11:09:52 -040014947else
14948 am_missing_run=
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
14950$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Emeric Vigier2f625822012-08-06 11:09:52 -040014951fi
14952
14953if test x"${install_sh}" != xset; then
14954 case $am_aux_dir in
14955 *\ * | *\ *)
14956 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14957 *)
14958 install_sh="\${SHELL} $am_aux_dir/install-sh"
14959 esac
14960fi
14961
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014962# Installed binaries are usually stripped using 'strip' when the user
14963# run "make install-strip". However 'strip' might not be the right
Emeric Vigier2f625822012-08-06 11:09:52 -040014964# tool to use in cross-compilation environments, therefore Automake
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014965# will honor the 'STRIP' environment variable to overrule this program.
Emeric Vigier2f625822012-08-06 11:09:52 -040014966if test "$cross_compiling" != no; then
14967 if test -n "$ac_tool_prefix"; then
14968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14969set dummy ${ac_tool_prefix}strip; ac_word=$2
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14971$as_echo_n "checking for $ac_word... " >&6; }
14972if ${ac_cv_prog_STRIP+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974else
14975 if test -n "$STRIP"; then
14976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14977else
14978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979for as_dir in $PATH
14980do
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040014985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14987 break 2
14988 fi
14989done
14990 done
14991IFS=$as_save_IFS
14992
14993fi
14994fi
14995STRIP=$ac_cv_prog_STRIP
14996if test -n "$STRIP"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14998$as_echo "$STRIP" >&6; }
14999else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001$as_echo "no" >&6; }
15002fi
15003
15004
15005fi
15006if test -z "$ac_cv_prog_STRIP"; then
15007 ac_ct_STRIP=$STRIP
15008 # Extract the first word of "strip", so it can be a program name with args.
15009set dummy strip; ac_word=$2
15010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011$as_echo_n "checking for $ac_word... " >&6; }
15012if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014else
15015 if test -n "$ac_ct_STRIP"; then
15016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15017else
15018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019for as_dir in $PATH
15020do
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015025 ac_cv_prog_ac_ct_STRIP="strip"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15028 fi
15029done
15030 done
15031IFS=$as_save_IFS
15032
15033fi
15034fi
15035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15036if test -n "$ac_ct_STRIP"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15038$as_echo "$ac_ct_STRIP" >&6; }
15039else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041$as_echo "no" >&6; }
15042fi
15043
15044 if test "x$ac_ct_STRIP" = x; then
15045 STRIP=":"
15046 else
15047 case $cross_compiling:$ac_tool_warned in
15048yes:)
15049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15051ac_tool_warned=yes ;;
15052esac
15053 STRIP=$ac_ct_STRIP
15054 fi
15055else
15056 STRIP="$ac_cv_prog_STRIP"
15057fi
15058
15059fi
15060INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15061
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15063$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15064if test -z "$MKDIR_P"; then
15065 if ${ac_cv_path_mkdir+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067else
15068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15069for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15070do
15071 IFS=$as_save_IFS
15072 test -z "$as_dir" && as_dir=.
15073 for ac_prog in mkdir gmkdir; do
15074 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015075 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Emeric Vigier2f625822012-08-06 11:09:52 -040015076 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15077 'mkdir (GNU coreutils) '* | \
15078 'mkdir (coreutils) '* | \
15079 'mkdir (fileutils) '4.1*)
15080 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15081 break 3;;
15082 esac
15083 done
15084 done
15085 done
15086IFS=$as_save_IFS
15087
15088fi
15089
15090 test -d ./--version && rmdir ./--version
15091 if test "${ac_cv_path_mkdir+set}" = set; then
15092 MKDIR_P="$ac_cv_path_mkdir -p"
15093 else
15094 # As a last resort, use the slow shell script. Don't cache a
15095 # value for MKDIR_P within a source directory, because that will
15096 # break other packages using the cache if that directory is
15097 # removed, or if the value is a relative name.
15098 MKDIR_P="$ac_install_sh -d"
15099 fi
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15102$as_echo "$MKDIR_P" >&6; }
15103
Emeric Vigier2f625822012-08-06 11:09:52 -040015104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15106set x ${MAKE-make}
15107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15108if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110else
15111 cat >conftest.make <<\_ACEOF
15112SHELL = /bin/sh
15113all:
15114 @echo '@@@%%%=$(MAKE)=@@@%%%'
15115_ACEOF
15116# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15117case `${MAKE-make} -f conftest.make 2>/dev/null` in
15118 *@@@%%%=?*=@@@%%%*)
15119 eval ac_cv_prog_make_${ac_make}_set=yes;;
15120 *)
15121 eval ac_cv_prog_make_${ac_make}_set=no;;
15122esac
15123rm -f conftest.make
15124fi
15125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15127$as_echo "yes" >&6; }
15128 SET_MAKE=
15129else
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131$as_echo "no" >&6; }
15132 SET_MAKE="MAKE=${MAKE-make}"
15133fi
15134
15135rm -rf .tst 2>/dev/null
15136mkdir .tst 2>/dev/null
15137if test -d .tst; then
15138 am__leading_dot=.
15139else
15140 am__leading_dot=_
15141fi
15142rmdir .tst 2>/dev/null
15143
15144DEPDIR="${am__leading_dot}deps"
15145
15146ac_config_commands="$ac_config_commands depfiles"
15147
15148
15149am_make=${MAKE-make}
15150cat > confinc << 'END'
15151am__doit:
15152 @echo this is the am__doit target
15153.PHONY: am__doit
15154END
15155# If we don't find an include directive, just comment out the code.
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15157$as_echo_n "checking for style of include used by $am_make... " >&6; }
15158am__include="#"
15159am__quote=
15160_am_result=none
15161# First try GNU make style include.
15162echo "include confinc" > confmf
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015163# Ignore all kinds of additional output from 'make'.
Emeric Vigier2f625822012-08-06 11:09:52 -040015164case `$am_make -s -f confmf 2> /dev/null` in #(
15165*the\ am__doit\ target*)
15166 am__include=include
15167 am__quote=
15168 _am_result=GNU
15169 ;;
15170esac
15171# Now try BSD make style include.
15172if test "$am__include" = "#"; then
15173 echo '.include "confinc"' > confmf
15174 case `$am_make -s -f confmf 2> /dev/null` in #(
15175 *the\ am__doit\ target*)
15176 am__include=.include
15177 am__quote="\""
15178 _am_result=BSD
15179 ;;
15180 esac
15181fi
15182
15183
15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15185$as_echo "$_am_result" >&6; }
15186rm -f confinc confmf
15187
15188# Check whether --enable-dependency-tracking was given.
15189if test "${enable_dependency_tracking+set}" = set; then :
15190 enableval=$enable_dependency_tracking;
15191fi
15192
15193if test "x$enable_dependency_tracking" != xno; then
15194 am_depcomp="$ac_aux_dir/depcomp"
15195 AMDEPBACKSLASH='\'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015196 am__nodep='_no'
Emeric Vigier2f625822012-08-06 11:09:52 -040015197fi
15198 if test "x$enable_dependency_tracking" != xno; then
15199 AMDEP_TRUE=
15200 AMDEP_FALSE='#'
15201else
15202 AMDEP_TRUE='#'
15203 AMDEP_FALSE=
15204fi
15205
15206
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015207# Check whether --enable-silent-rules was given.
15208if test "${enable_silent_rules+set}" = set; then :
15209 enableval=$enable_silent_rules;
15210fi
15211
15212case $enable_silent_rules in # (((
15213 yes) AM_DEFAULT_VERBOSITY=0;;
15214 no) AM_DEFAULT_VERBOSITY=1;;
15215 *) AM_DEFAULT_VERBOSITY=1;;
15216esac
15217am_make=${MAKE-make}
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15219$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15220if ${am_cv_make_support_nested_variables+:} false; then :
15221 $as_echo_n "(cached) " >&6
15222else
15223 if $as_echo 'TRUE=$(BAR$(V))
15224BAR0=false
15225BAR1=true
15226V=1
15227am__doit:
15228 @$(TRUE)
15229.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15230 am_cv_make_support_nested_variables=yes
15231else
15232 am_cv_make_support_nested_variables=no
15233fi
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15236$as_echo "$am_cv_make_support_nested_variables" >&6; }
15237if test $am_cv_make_support_nested_variables = yes; then
15238 AM_V='$(V)'
15239 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15240else
15241 AM_V=$AM_DEFAULT_VERBOSITY
15242 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15243fi
15244AM_BACKSLASH='\'
15245
Emeric Vigier2f625822012-08-06 11:09:52 -040015246if test "`cd $srcdir && pwd`" != "`pwd`"; then
15247 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15248 # is not polluted with repeated "-I."
15249 am__isrc=' -I$(srcdir)'
15250 # test to see if srcdir already configured
15251 if test -f $srcdir/config.status; then
15252 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15253 fi
15254fi
15255
15256# test whether we have cygpath
15257if test -z "$CYGPATH_W"; then
15258 if (cygpath --version) >/dev/null 2>/dev/null; then
15259 CYGPATH_W='cygpath -w'
15260 else
15261 CYGPATH_W=echo
15262 fi
15263fi
15264
15265
15266# Define the identity of the package.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015267
Emeric Vigier2f625822012-08-06 11:09:52 -040015268 PACKAGE=ccrtp
15269 VERSION=$VERSION
15270
15271
15272cat >>confdefs.h <<_ACEOF
15273#define PACKAGE "$PACKAGE"
15274_ACEOF
15275
15276
15277cat >>confdefs.h <<_ACEOF
15278#define VERSION "$VERSION"
15279_ACEOF
15280
15281# Some tools Automake needs.
15282
15283ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15284
15285
15286AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15287
15288
15289AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15290
15291
15292AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15293
15294
15295MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15296
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015297# For better backward compatibility. To be removed once Automake 1.9.x
15298# dies out for good. For more background, see:
15299# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
15300# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
15301mkdir_p='$(MKDIR_P)'
15302
Emeric Vigier2f625822012-08-06 11:09:52 -040015303# We need awk for the "check" target. The system "awk" is bad on
15304# some platforms.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015305# Always define AMTAR for backward compatibility. Yes, it's still used
15306# in the wild :-( We should find a proper way to deprecate it ...
15307AMTAR='$${TAR-tar}'
Emeric Vigier2f625822012-08-06 11:09:52 -040015308
Emeric Vigier2f625822012-08-06 11:09:52 -040015309
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015310# We'll loop over all known methods to create a tar archive until one works.
15311_am_tools='gnutar pax cpio none'
15312
15313am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
15314
Emeric Vigier2f625822012-08-06 11:09:52 -040015315
15316
15317
15318
15319depcc="$CC" am_compiler_list=
15320
15321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15322$as_echo_n "checking dependency style of $depcc... " >&6; }
15323if ${am_cv_CC_dependencies_compiler_type+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325else
15326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15327 # We make a subdir and do the tests there. Otherwise we can end up
15328 # making bogus files that we don't know about and never remove. For
15329 # instance it was reported that on HP-UX the gcc test will end up
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015330 # making a dummy file named 'D' -- because '-MD' means "put the output
15331 # in D".
15332 rm -rf conftest.dir
Emeric Vigier2f625822012-08-06 11:09:52 -040015333 mkdir conftest.dir
15334 # Copy depcomp to subdir because otherwise we won't find it if we're
15335 # using a relative directory.
15336 cp "$am_depcomp" conftest.dir
15337 cd conftest.dir
15338 # We will build objects and dependencies in a subdirectory because
15339 # it helps to detect inapplicable dependency modes. For instance
15340 # both Tru64's cc and ICC support -MD to output dependencies as a
15341 # side effect of compilation, but ICC will put the dependencies in
15342 # the current directory while Tru64 will put them in the object
15343 # directory.
15344 mkdir sub
15345
15346 am_cv_CC_dependencies_compiler_type=none
15347 if test "$am_compiler_list" = ""; then
15348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15349 fi
15350 am__universal=false
15351 case " $depcc " in #(
15352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15353 esac
15354
15355 for depmode in $am_compiler_list; do
15356 # Setup a source with many dependencies, because some compilers
15357 # like to wrap large dependency lists on column 80 (with \), and
15358 # we should not choose a depcomp mode which is confused by this.
15359 #
15360 # We need to recreate these files for each test, as the compiler may
15361 # overwrite some of them when testing with obscure command lines.
15362 # This happens at least with the AIX C compiler.
15363 : > sub/conftest.c
15364 for i in 1 2 3 4 5 6; do
15365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15367 # Solaris 10 /bin/sh.
15368 echo '/* dummy */' > sub/conftst$i.h
Emeric Vigier2f625822012-08-06 11:09:52 -040015369 done
15370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15371
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015372 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Emeric Vigier2f625822012-08-06 11:09:52 -040015373 # mode. It turns out that the SunPro C++ compiler does not properly
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015374 # handle '-M -o', and we need to detect this. Also, some Intel
15375 # versions had trouble with output in subdirs.
Emeric Vigier2f625822012-08-06 11:09:52 -040015376 am__obj=sub/conftest.${OBJEXT-o}
15377 am__minus_obj="-o $am__obj"
15378 case $depmode in
15379 gcc)
15380 # This depmode causes a compiler race in universal mode.
15381 test "$am__universal" = false || continue
15382 ;;
15383 nosideeffect)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015384 # After this tag, mechanisms are not by side-effect, so they'll
15385 # only be used when explicitly requested.
Emeric Vigier2f625822012-08-06 11:09:52 -040015386 if test "x$enable_dependency_tracking" = xyes; then
15387 continue
15388 else
15389 break
15390 fi
15391 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015392 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15393 # This compiler won't grok '-c -o', but also, the minuso test has
Emeric Vigier2f625822012-08-06 11:09:52 -040015394 # not run yet. These depmodes are late enough in the game, and
15395 # so weak that their functioning should not be impacted.
15396 am__obj=conftest.${OBJEXT-o}
15397 am__minus_obj=
15398 ;;
15399 none) break ;;
15400 esac
15401 if depmode=$depmode \
15402 source=sub/conftest.c object=$am__obj \
15403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15405 >/dev/null 2>conftest.err &&
15406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15410 # icc doesn't choke on unknown options, it will just issue warnings
15411 # or remarks (even with -Werror). So we grep stderr for any message
15412 # that says an option was ignored or not supported.
15413 # When given -MP, icc 7.0 and 7.1 complain thusly:
15414 # icc: Command line warning: ignoring option '-M'; no argument required
15415 # The diagnosis changed in icc 8.0:
15416 # icc: Command line remark: option '-MP' not supported
15417 if (grep 'ignoring option' conftest.err ||
15418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15419 am_cv_CC_dependencies_compiler_type=$depmode
15420 break
15421 fi
15422 fi
15423 done
15424
15425 cd ..
15426 rm -rf conftest.dir
15427else
15428 am_cv_CC_dependencies_compiler_type=none
15429fi
15430
15431fi
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15433$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15435
15436 if
15437 test "x$enable_dependency_tracking" != xno \
15438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15439 am__fastdepCC_TRUE=
15440 am__fastdepCC_FALSE='#'
15441else
15442 am__fastdepCC_TRUE='#'
15443 am__fastdepCC_FALSE=
15444fi
15445
15446
15447depcc="$CXX" am_compiler_list=
15448
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15450$as_echo_n "checking dependency style of $depcc... " >&6; }
15451if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15452 $as_echo_n "(cached) " >&6
15453else
15454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15455 # We make a subdir and do the tests there. Otherwise we can end up
15456 # making bogus files that we don't know about and never remove. For
15457 # instance it was reported that on HP-UX the gcc test will end up
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015458 # making a dummy file named 'D' -- because '-MD' means "put the output
15459 # in D".
15460 rm -rf conftest.dir
Emeric Vigier2f625822012-08-06 11:09:52 -040015461 mkdir conftest.dir
15462 # Copy depcomp to subdir because otherwise we won't find it if we're
15463 # using a relative directory.
15464 cp "$am_depcomp" conftest.dir
15465 cd conftest.dir
15466 # We will build objects and dependencies in a subdirectory because
15467 # it helps to detect inapplicable dependency modes. For instance
15468 # both Tru64's cc and ICC support -MD to output dependencies as a
15469 # side effect of compilation, but ICC will put the dependencies in
15470 # the current directory while Tru64 will put them in the object
15471 # directory.
15472 mkdir sub
15473
15474 am_cv_CXX_dependencies_compiler_type=none
15475 if test "$am_compiler_list" = ""; then
15476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15477 fi
15478 am__universal=false
15479 case " $depcc " in #(
15480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15481 esac
15482
15483 for depmode in $am_compiler_list; do
15484 # Setup a source with many dependencies, because some compilers
15485 # like to wrap large dependency lists on column 80 (with \), and
15486 # we should not choose a depcomp mode which is confused by this.
15487 #
15488 # We need to recreate these files for each test, as the compiler may
15489 # overwrite some of them when testing with obscure command lines.
15490 # This happens at least with the AIX C compiler.
15491 : > sub/conftest.c
15492 for i in 1 2 3 4 5 6; do
15493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015494 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15495 # Solaris 10 /bin/sh.
15496 echo '/* dummy */' > sub/conftst$i.h
Emeric Vigier2f625822012-08-06 11:09:52 -040015497 done
15498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15499
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015500 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Emeric Vigier2f625822012-08-06 11:09:52 -040015501 # mode. It turns out that the SunPro C++ compiler does not properly
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015502 # handle '-M -o', and we need to detect this. Also, some Intel
15503 # versions had trouble with output in subdirs.
Emeric Vigier2f625822012-08-06 11:09:52 -040015504 am__obj=sub/conftest.${OBJEXT-o}
15505 am__minus_obj="-o $am__obj"
15506 case $depmode in
15507 gcc)
15508 # This depmode causes a compiler race in universal mode.
15509 test "$am__universal" = false || continue
15510 ;;
15511 nosideeffect)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015512 # After this tag, mechanisms are not by side-effect, so they'll
15513 # only be used when explicitly requested.
Emeric Vigier2f625822012-08-06 11:09:52 -040015514 if test "x$enable_dependency_tracking" = xyes; then
15515 continue
15516 else
15517 break
15518 fi
15519 ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015520 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15521 # This compiler won't grok '-c -o', but also, the minuso test has
Emeric Vigier2f625822012-08-06 11:09:52 -040015522 # not run yet. These depmodes are late enough in the game, and
15523 # so weak that their functioning should not be impacted.
15524 am__obj=conftest.${OBJEXT-o}
15525 am__minus_obj=
15526 ;;
15527 none) break ;;
15528 esac
15529 if depmode=$depmode \
15530 source=sub/conftest.c object=$am__obj \
15531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15533 >/dev/null 2>conftest.err &&
15534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15538 # icc doesn't choke on unknown options, it will just issue warnings
15539 # or remarks (even with -Werror). So we grep stderr for any message
15540 # that says an option was ignored or not supported.
15541 # When given -MP, icc 7.0 and 7.1 complain thusly:
15542 # icc: Command line warning: ignoring option '-M'; no argument required
15543 # The diagnosis changed in icc 8.0:
15544 # icc: Command line remark: option '-MP' not supported
15545 if (grep 'ignoring option' conftest.err ||
15546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15547 am_cv_CXX_dependencies_compiler_type=$depmode
15548 break
15549 fi
15550 fi
15551 done
15552
15553 cd ..
15554 rm -rf conftest.dir
15555else
15556 am_cv_CXX_dependencies_compiler_type=none
15557fi
15558
15559fi
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15561$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15562CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15563
15564 if
15565 test "x$enable_dependency_tracking" != xno \
15566 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15567 am__fastdepCXX_TRUE=
15568 am__fastdepCXX_FALSE='#'
15569else
15570 am__fastdepCXX_TRUE='#'
15571 am__fastdepCXX_FALSE=
15572fi
15573
15574
15575
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015576ac_config_headers="$ac_config_headers ccrtp-config.h"
Emeric Vigier2f625822012-08-06 11:09:52 -040015577
15578
15579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15580$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15581if ${ac_cv_c_restrict+:} false; then :
15582 $as_echo_n "(cached) " >&6
15583else
15584 ac_cv_c_restrict=no
15585 # The order here caters to the fact that C++ does not require restrict.
15586 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588/* end confdefs.h. */
15589typedef int * int_ptr;
15590 int foo (int_ptr $ac_kw ip) {
15591 return ip[0];
15592 }
15593int
15594main ()
15595{
15596int s[1];
15597 int * $ac_kw t = s;
15598 t[0] = 0;
15599 return foo(t)
15600 ;
15601 return 0;
15602}
15603_ACEOF
15604if ac_fn_c_try_compile "$LINENO"; then :
15605 ac_cv_c_restrict=$ac_kw
15606fi
15607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 test "$ac_cv_c_restrict" != no && break
15609 done
15610
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15613$as_echo "$ac_cv_c_restrict" >&6; }
15614
15615 case $ac_cv_c_restrict in
15616 restrict) ;;
15617 no) $as_echo "#define restrict /**/" >>confdefs.h
15618 ;;
15619 *) cat >>confdefs.h <<_ACEOF
15620#define restrict $ac_cv_c_restrict
15621_ACEOF
15622 ;;
15623 esac
15624
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15626$as_echo_n "checking for working volatile... " >&6; }
15627if ${ac_cv_c_volatile+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629else
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631/* end confdefs.h. */
15632
15633int
15634main ()
15635{
15636
15637volatile int x;
15638int * volatile y = (int *) 0;
15639return !x && !y;
15640 ;
15641 return 0;
15642}
15643_ACEOF
15644if ac_fn_c_try_compile "$LINENO"; then :
15645 ac_cv_c_volatile=yes
15646else
15647 ac_cv_c_volatile=no
15648fi
15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15652$as_echo "$ac_cv_c_volatile" >&6; }
15653if test $ac_cv_c_volatile = no; then
15654
15655$as_echo "#define volatile /**/" >>confdefs.h
15656
15657fi
15658
15659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15660$as_echo_n "checking for inline... " >&6; }
15661if ${ac_cv_c_inline+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663else
15664 ac_cv_c_inline=no
15665for ac_kw in inline __inline__ __inline; do
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667/* end confdefs.h. */
15668#ifndef __cplusplus
15669typedef int foo_t;
15670static $ac_kw foo_t static_foo () {return 0; }
15671$ac_kw foo_t foo () {return 0; }
15672#endif
15673
15674_ACEOF
15675if ac_fn_c_try_compile "$LINENO"; then :
15676 ac_cv_c_inline=$ac_kw
15677fi
15678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 test "$ac_cv_c_inline" != no && break
15680done
15681
15682fi
15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15684$as_echo "$ac_cv_c_inline" >&6; }
15685
15686case $ac_cv_c_inline in
15687 inline | yes) ;;
15688 *)
15689 case $ac_cv_c_inline in
15690 no) ac_val=;;
15691 *) ac_val=$ac_cv_c_inline;;
15692 esac
15693 cat >>confdefs.h <<_ACEOF
15694#ifndef __cplusplus
15695#define inline $ac_val
15696#endif
15697_ACEOF
15698 ;;
15699esac
15700
15701
15702if test -z "$PKG_CONFIG_PATH" ; then
15703 PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
15704fi
15705
15706if test "$prefix" != "NONE" ; then
15707 PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
15708fi
15709
15710export PKG_CONFIG_PATH
15711
15712# use "-no-undefined" on Cygwin to force (trigger) libtool to create
15713# the shared lib. If this is not set this library
15714# is not created. Be sure that the LIBS variable above contains _all_
15715# libraries necessary to build ours, Cygwin does not allow undefined
15716# symbols.
15717case $host in
15718# *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15719 *-*-cygwin*)
15720 LDFLAGS="$LDFLAGS -no-undefined"
15721 ;;
15722 *)
15723 ;;
15724esac
15725
15726# SRTP support
15727# Check whether --enable-srtp was given.
15728if test "${enable_srtp+set}" = set; then :
15729 enableval=$enable_srtp;
15730fi
15731
15732if test -z "$enable_srtp"; then
15733 enable_srtp="yes"
15734
15735$as_echo "#define SRTP_SUPPORT /**/" >>confdefs.h
15736
15737fi
15738
Emeric Vigier2f625822012-08-06 11:09:52 -040015739# availability of gcrypt or openSSL crypto library if SRTP support is enabled
15740if test "${enable_srtp}" = "yes"
15741then
15742 openssl="false"
15743 gcrypt="false"
15744
15745# Check whether --with-libgcrypt-prefix was given.
15746if test "${with_libgcrypt_prefix+set}" = set; then :
15747 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
15748else
15749 libgcrypt_config_prefix=""
15750fi
15751
15752 if test x$libgcrypt_config_prefix != x ; then
15753 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
15754 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
15755 fi
15756 fi
15757
15758 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
15759set dummy libgcrypt-config; ac_word=$2
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15761$as_echo_n "checking for $ac_word... " >&6; }
15762if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
15763 $as_echo_n "(cached) " >&6
15764else
15765 case $LIBGCRYPT_CONFIG in
15766 [\\/]* | ?:[\\/]*)
15767 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15768 ;;
15769 *)
15770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15771for as_dir in $PATH
15772do
15773 IFS=$as_save_IFS
15774 test -z "$as_dir" && as_dir=.
15775 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040015777 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15779 break 2
15780 fi
15781done
15782 done
15783IFS=$as_save_IFS
15784
15785 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
15786 ;;
15787esac
15788fi
15789LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
15790if test -n "$LIBGCRYPT_CONFIG"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
15792$as_echo "$LIBGCRYPT_CONFIG" >&6; }
15793else
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795$as_echo "no" >&6; }
15796fi
15797
15798
15799 tmp=1:1.2.3
15800 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
15801 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
15802 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
15803 else
15804 req_libgcrypt_api=0
15805 min_libgcrypt_version="$tmp"
15806 fi
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
15809$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
15810 ok=no
15811 if test "$LIBGCRYPT_CONFIG" != "no" ; then
15812 req_major=`echo $min_libgcrypt_version | \
15813 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
15814 req_minor=`echo $min_libgcrypt_version | \
15815 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
15816 req_micro=`echo $min_libgcrypt_version | \
15817 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
15818 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
15819 major=`echo $libgcrypt_config_version | \
15820 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
15821 minor=`echo $libgcrypt_config_version | \
15822 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
15823 micro=`echo $libgcrypt_config_version | \
15824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
15825 if test "$major" -gt "$req_major"; then
15826 ok=yes
15827 else
15828 if test "$major" -eq "$req_major"; then
15829 if test "$minor" -gt "$req_minor"; then
15830 ok=yes
15831 else
15832 if test "$minor" -eq "$req_minor"; then
15833 if test "$micro" -ge "$req_micro"; then
15834 ok=yes
15835 fi
15836 fi
15837 fi
15838 fi
15839 fi
15840 fi
15841 if test $ok = yes; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
15843$as_echo "yes ($libgcrypt_config_version)" >&6; }
15844 else
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846$as_echo "no" >&6; }
15847 fi
15848 if test $ok = yes; then
15849 # If we have a recent libgcrypt, we should also check that the
15850 # API is compatible
15851 if test "$req_libgcrypt_api" -gt 0 ; then
15852 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
15853 if test "$tmp" -gt 0 ; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
15855$as_echo_n "checking LIBGCRYPT API version... " >&6; }
15856 if test "$req_libgcrypt_api" -eq "$tmp" ; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
15858$as_echo "okay" >&6; }
15859 else
15860 ok=no
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
15862$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
15863 fi
15864 fi
15865 fi
15866 fi
15867 if test $ok = yes; then
15868 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
15869 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
15870 for ac_header in gcrypt.h
15871do :
15872 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
15873if test "x$ac_cv_header_gcrypt_h" = xyes; then :
15874 cat >>confdefs.h <<_ACEOF
15875#define HAVE_GCRYPT_H 1
15876_ACEOF
15877
15878else
15879 as_fn_error $? "libgcrypt headers not found." "$LINENO" 5
15880fi
15881
15882done
15883
15884 LIBS="$LIBGCRYPT_LIBS $LIBS"
15885 gcrypt="true"
15886
15887 else
15888 LIBGCRYPT_CFLAGS=""
15889 LIBGCRYPT_LIBS=""
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5
15891$as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; }
15892if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894else
15895 ac_check_lib_save_LIBS=$LIBS
15896LIBS="-lcrypto $LIBS"
15897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898/* end confdefs.h. */
15899
15900/* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
15903#ifdef __cplusplus
15904extern "C"
15905#endif
15906char EVP_CipherInit_ex ();
15907int
15908main ()
15909{
15910return EVP_CipherInit_ex ();
15911 ;
15912 return 0;
15913}
15914_ACEOF
15915if ac_fn_c_try_link "$LINENO"; then :
15916 ac_cv_lib_crypto_EVP_CipherInit_ex=yes
15917else
15918 ac_cv_lib_crypto_EVP_CipherInit_ex=no
15919fi
15920rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922LIBS=$ac_check_lib_save_LIBS
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5
15925$as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; }
15926if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then :
15927 for ac_header in openssl/bn.h openssl/aes.h openssl/sha.h
15928do :
15929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15932 cat >>confdefs.h <<_ACEOF
15933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15934_ACEOF
15935
15936else
15937 as_fn_error $? "OpenSSL headers not found." "$LINENO" 5
15938fi
15939
15940done
15941
15942 LIBS="-lcrypto $LIBS"
15943 openssl="true"
15944
15945else
15946 as_fn_error $? "Cannot find libgcrypt or OpenSSL crypto library." "$LINENO" 5
15947
15948fi
15949
15950
15951
15952 fi
15953
15954
15955
15956 if test "$openssl" = "true"; then
15957 SRTP_OPENSSL_TRUE=
15958 SRTP_OPENSSL_FALSE='#'
15959else
15960 SRTP_OPENSSL_TRUE='#'
15961 SRTP_OPENSSL_FALSE=
15962fi
15963
15964 if test "$gcrypt" = "true"; then
15965 SRTP_GCRYPT_TRUE=
15966 SRTP_GCRYPT_FALSE='#'
15967else
15968 SRTP_GCRYPT_TRUE='#'
15969 SRTP_GCRYPT_FALSE=
15970fi
15971
15972
15973fi
15974
15975
15976
15977
15978
15979
15980 LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`"
15981 LT_MINOR="`echo $LT_VERSION | sed s/.*://`"
15982 LT_SUBVER="$LT_MAJOR.$LT_MINOR"
15983
15984
15985
15986
15987
15988if test -n "$ac_tool_prefix"; then
15989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15990set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15992$as_echo_n "checking for $ac_word... " >&6; }
15993if ${ac_cv_prog_RANLIB+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995else
15996 if test -n "$RANLIB"; then
15997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15998else
15999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16000for as_dir in $PATH
16001do
16002 IFS=$as_save_IFS
16003 test -z "$as_dir" && as_dir=.
16004 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16008 break 2
16009 fi
16010done
16011 done
16012IFS=$as_save_IFS
16013
16014fi
16015fi
16016RANLIB=$ac_cv_prog_RANLIB
16017if test -n "$RANLIB"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16019$as_echo "$RANLIB" >&6; }
16020else
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022$as_echo "no" >&6; }
16023fi
16024
16025
16026fi
16027if test -z "$ac_cv_prog_RANLIB"; then
16028 ac_ct_RANLIB=$RANLIB
16029 # Extract the first word of "ranlib", so it can be a program name with args.
16030set dummy ranlib; ac_word=$2
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16032$as_echo_n "checking for $ac_word... " >&6; }
16033if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16034 $as_echo_n "(cached) " >&6
16035else
16036 if test -n "$ac_ct_RANLIB"; then
16037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16038else
16039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16040for as_dir in $PATH
16041do
16042 IFS=$as_save_IFS
16043 test -z "$as_dir" && as_dir=.
16044 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016046 ac_cv_prog_ac_ct_RANLIB="ranlib"
16047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16048 break 2
16049 fi
16050done
16051 done
16052IFS=$as_save_IFS
16053
16054fi
16055fi
16056ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16057if test -n "$ac_ct_RANLIB"; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16059$as_echo "$ac_ct_RANLIB" >&6; }
16060else
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16062$as_echo "no" >&6; }
16063fi
16064
16065 if test "x$ac_ct_RANLIB" = x; then
16066 RANLIB=":"
16067 else
16068 case $cross_compiling:$ac_tool_warned in
16069yes:)
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16072ac_tool_warned=yes ;;
16073esac
16074 RANLIB=$ac_ct_RANLIB
16075 fi
16076else
16077 RANLIB="$ac_cv_prog_RANLIB"
16078fi
16079
16080
16081
16082
16083 if test ! -z "$LT_VERSION" ; then
16084 LT_CCXX_VERSION="-version-info $LT_VERSION"
16085
16086 fi
16087
16088
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genorated automake files" >&5
16090$as_echo_n "checking for genorated automake files... " >&6; }
16091 if test -z "" ; then
16092 ost_AUTOMAKE_TEST=Makefile.in
16093 else
16094 ost_AUTOMAKE_TEST=
16095 fi
16096 if test ! -f $ost_AUTOMAKE_TEST ; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
16098$as_echo "missing" >&6; }
16099 automake -a
16100 else
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16102$as_echo "found" >&6; }
16103 fi
16104
16105
16106
16107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16108$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16109 # Check whether --enable-maintainer-mode was given.
16110if test "${enable_maintainer_mode+set}" = set; then :
16111 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16112else
16113 USE_MAINTAINER_MODE=no
16114fi
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16117$as_echo "$USE_MAINTAINER_MODE" >&6; }
16118 if test $USE_MAINTAINER_MODE = yes; then
16119 MAINTAINER_MODE_TRUE=
16120 MAINTAINER_MODE_FALSE='#'
16121else
16122 MAINTAINER_MODE_TRUE='#'
16123 MAINTAINER_MODE_FALSE=
16124fi
16125
16126 MAINT=$MAINTAINER_MODE_TRUE
16127
16128
16129 if test -z "$MAINT" ; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maintainer ftp distribution directory" >&5
16131$as_echo_n "checking for maintainer ftp distribution directory... " >&6; }
16132 if test -d ~ftp/pub ; then
16133 FTPDIR=~ftp/pub
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16135$as_echo "found" >&6; }
16136 else
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
16138$as_echo "missing" >&6; }
16139 fi
16140 fi
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16151 if test -n "$ac_tool_prefix"; then
16152 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16153set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16155$as_echo_n "checking for $ac_word... " >&6; }
16156if ${ac_cv_path_PKG_CONFIG+:} false; then :
16157 $as_echo_n "(cached) " >&6
16158else
16159 case $PKG_CONFIG in
16160 [\\/]* | ?:[\\/]*)
16161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16162 ;;
16163 *)
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165for as_dir in $PATH
16166do
16167 IFS=$as_save_IFS
16168 test -z "$as_dir" && as_dir=.
16169 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16173 break 2
16174 fi
16175done
16176 done
16177IFS=$as_save_IFS
16178
16179 ;;
16180esac
16181fi
16182PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16183if test -n "$PKG_CONFIG"; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16185$as_echo "$PKG_CONFIG" >&6; }
16186else
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16188$as_echo "no" >&6; }
16189fi
16190
16191
16192fi
16193if test -z "$ac_cv_path_PKG_CONFIG"; then
16194 ac_pt_PKG_CONFIG=$PKG_CONFIG
16195 # Extract the first word of "pkg-config", so it can be a program name with args.
16196set dummy pkg-config; ac_word=$2
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198$as_echo_n "checking for $ac_word... " >&6; }
16199if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201else
16202 case $ac_pt_PKG_CONFIG in
16203 [\\/]* | ?:[\\/]*)
16204 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16205 ;;
16206 *)
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208for as_dir in $PATH
16209do
16210 IFS=$as_save_IFS
16211 test -z "$as_dir" && as_dir=.
16212 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016214 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16216 break 2
16217 fi
16218done
16219 done
16220IFS=$as_save_IFS
16221
16222 ;;
16223esac
16224fi
16225ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16226if test -n "$ac_pt_PKG_CONFIG"; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16228$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16229else
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231$as_echo "no" >&6; }
16232fi
16233
16234 if test "x$ac_pt_PKG_CONFIG" = x; then
16235 PKG_CONFIG=""
16236 else
16237 case $cross_compiling:$ac_tool_warned in
16238yes:)
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16241ac_tool_warned=yes ;;
16242esac
16243 PKG_CONFIG=$ac_pt_PKG_CONFIG
16244 fi
16245else
16246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16247fi
16248
16249fi
16250if test -n "$PKG_CONFIG"; then
16251 _pkg_min_version=0.9.0
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16253$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16256$as_echo "yes" >&6; }
16257 else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259$as_echo "no" >&6; }
16260 PKG_CONFIG=""
16261 fi
16262fi
16263
16264pkg_failed=no
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMMONCPP" >&5
16266$as_echo_n "checking for COMMONCPP... " >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040016267
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016268if test -n "$COMMONCPP_CFLAGS"; then
16269 pkg_cv_COMMONCPP_CFLAGS="$COMMONCPP_CFLAGS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016270 elif test -n "$PKG_CONFIG"; then
16271 if test -n "$PKG_CONFIG" && \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \$REQUIRES\""; } >&5
16273 ($PKG_CONFIG --exists --print-errors "commoncpp >= $REQUIRES") 2>&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016274 ac_status=$?
16275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16276 test $ac_status = 0; }; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016277 pkg_cv_COMMONCPP_CFLAGS=`$PKG_CONFIG --cflags "commoncpp >= $REQUIRES" 2>/dev/null`
Emeric Vigier2f625822012-08-06 11:09:52 -040016278 test "x$?" != "x0" && pkg_failed=yes
16279else
16280 pkg_failed=yes
16281fi
16282 else
16283 pkg_failed=untried
16284fi
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016285if test -n "$COMMONCPP_LIBS"; then
16286 pkg_cv_COMMONCPP_LIBS="$COMMONCPP_LIBS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016287 elif test -n "$PKG_CONFIG"; then
16288 if test -n "$PKG_CONFIG" && \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"commoncpp >= \$REQUIRES\""; } >&5
16290 ($PKG_CONFIG --exists --print-errors "commoncpp >= $REQUIRES") 2>&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016291 ac_status=$?
16292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 test $ac_status = 0; }; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016294 pkg_cv_COMMONCPP_LIBS=`$PKG_CONFIG --libs "commoncpp >= $REQUIRES" 2>/dev/null`
Emeric Vigier2f625822012-08-06 11:09:52 -040016295 test "x$?" != "x0" && pkg_failed=yes
16296else
16297 pkg_failed=yes
16298fi
16299 else
16300 pkg_failed=untried
16301fi
16302
16303
16304
16305if test $pkg_failed = yes; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307$as_echo "no" >&6; }
16308
16309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16310 _pkg_short_errors_supported=yes
16311else
16312 _pkg_short_errors_supported=no
16313fi
16314 if test $_pkg_short_errors_supported = yes; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016315 COMMONCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "commoncpp >= $REQUIRES" 2>&1`
Emeric Vigier2f625822012-08-06 11:09:52 -040016316 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016317 COMMONCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "commoncpp >= $REQUIRES" 2>&1`
Emeric Vigier2f625822012-08-06 11:09:52 -040016318 fi
16319 # Put the nasty error message in config.log where it belongs
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016320 echo "$COMMONCPP_PKG_ERRORS" >&5
Emeric Vigier2f625822012-08-06 11:09:52 -040016321
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016322 as_fn_error $? "Package requirements (commoncpp >= $REQUIRES) were not met:
Emeric Vigier2f625822012-08-06 11:09:52 -040016323
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016324$COMMONCPP_PKG_ERRORS
Emeric Vigier2f625822012-08-06 11:09:52 -040016325
16326Consider adjusting the PKG_CONFIG_PATH environment variable if you
16327installed software in a non-standard prefix.
16328
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016329Alternatively, you may set the environment variables COMMONCPP_CFLAGS
16330and COMMONCPP_LIBS to avoid the need to call pkg-config.
Emeric Vigier2f625822012-08-06 11:09:52 -040016331See the pkg-config man page for more details." "$LINENO" 5
16332elif test $pkg_failed = untried; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334$as_echo "no" >&6; }
16335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16337as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16338is in your PATH or set the PKG_CONFIG environment variable to the full
16339path to pkg-config.
16340
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016341Alternatively, you may set the environment variables COMMONCPP_CFLAGS
16342and COMMONCPP_LIBS to avoid the need to call pkg-config.
Emeric Vigier2f625822012-08-06 11:09:52 -040016343See the pkg-config man page for more details.
16344
16345To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16346See \`config.log' for more details" "$LINENO" 5; }
16347else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016348 COMMONCPP_CFLAGS=$pkg_cv_COMMONCPP_CFLAGS
16349 COMMONCPP_LIBS=$pkg_cv_COMMONCPP_LIBS
Emeric Vigier2f625822012-08-06 11:09:52 -040016350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16351$as_echo "yes" >&6; }
16352
16353fi
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016354CXXFLAGS="$CXXFLAGS $COMMONCPP_CFLAGS"
16355GNULIBS="$COMMONCPP_LIBS $LIBS"
Emeric Vigier2f625822012-08-06 11:09:52 -040016356
16357# OST_CC_ENDIAN - now in Common C++
16358# Are we using the GNU compiler?
16359if test $GCC = yes ; then
16360 WARN_FLAGS="-fno-strict-aliasing -Wall -ansi -pedantic"
16361else
16362 WARN_FLAGS=""
16363fi
16364
16365
16366
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
16368$as_echo_n "checking for debugging... " >&6; }
16369 # Check whether --enable-debug was given.
16370if test "${enable_debug+set}" = set; then :
16371 enableval=$enable_debug;
16372fi
16373
16374 if test -z "$enable_debug" ; then
16375 enable_debug="no"
16376 elif test $enable_debug = "yes" ; then
16377 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16378# CXXFLAGS=`echo $CFLAGS | sed 's/-O.//'`
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16381$as_echo "$enable_debug" >&6; }
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
16383$as_echo_n "checking for profiling... " >&6; }
16384 # Check whether --enable-profiling was given.
16385if test "${enable_profiling+set}" = set; then :
16386 enableval=$enable_profiling;
16387fi
16388
16389 if test -z "$enable_profiling" ; then
16390 enable_profiling="no"
16391 elif test "$enable_profiling" = "yes" ; then
16392 CXXFLAGS="${CXXFLAGS} -p"
16393 fi
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
16395$as_echo "$enable_profiling" >&6; }
16396
16397
16398
16399# Check whether --with-nana was given.
16400if test "${with_nana+set}" = set; then :
16401 withval=$with_nana;
16402 ac_fn_c_check_header_mongrel "$LINENO" "nana.h" "ac_cv_header_nana_h" "$ac_includes_default"
16403if test "x$ac_cv_header_nana_h" = xyes; then :
16404
16405 for ac_header in DL.h
16406do :
16407 ac_fn_c_check_header_mongrel "$LINENO" "DL.h" "ac_cv_header_DL_h" "$ac_includes_default"
16408if test "x$ac_cv_header_DL_h" = xyes; then :
16409 cat >>confdefs.h <<_ACEOF
16410#define HAVE_DL_H 1
16411_ACEOF
16412
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnana" >&5
16414$as_echo_n "checking for main in -lnana... " >&6; }
16415if ${ac_cv_lib_nana_main+:} false; then :
16416 $as_echo_n "(cached) " >&6
16417else
16418 ac_check_lib_save_LIBS=$LIBS
16419LIBS="-lnana $LIBS"
16420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h. */
16422
16423
16424int
16425main ()
16426{
16427return main ();
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432if ac_fn_c_try_link "$LINENO"; then :
16433 ac_cv_lib_nana_main=yes
16434else
16435 ac_cv_lib_nana_main=no
16436fi
16437rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439LIBS=$ac_check_lib_save_LIBS
16440fi
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nana_main" >&5
16442$as_echo "$ac_cv_lib_nana_main" >&6; }
16443if test "x$ac_cv_lib_nana_main" = xyes; then :
16444 cat >>confdefs.h <<_ACEOF
16445#define HAVE_LIBNANA 1
16446_ACEOF
16447
16448 LIBS="-lnana $LIBS"
16449
16450fi
16451
16452
16453fi
16454
16455done
16456
16457
16458fi
16459
16460
16461
16462fi
16463
16464
16465KDOC_DIR="\$(top_srcdir)/doc"
16466
16467
16468
16469# Extract the first word of "doxygen", so it can be a program name with args.
16470set dummy doxygen; ac_word=$2
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472$as_echo_n "checking for $ac_word... " >&6; }
16473if ${ac_cv_path_DOXYGEN+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475else
16476 case $DOXYGEN in
16477 [\\/]* | ?:[\\/]*)
16478 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16479 ;;
16480 *)
16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482for as_dir in $PATH
16483do
16484 IFS=$as_save_IFS
16485 test -z "$as_dir" && as_dir=.
16486 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Emeric Vigier2f625822012-08-06 11:09:52 -040016488 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16490 break 2
16491 fi
16492done
16493 done
16494IFS=$as_save_IFS
16495
16496 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
16497 ;;
16498esac
16499fi
16500DOXYGEN=$ac_cv_path_DOXYGEN
16501if test -n "$DOXYGEN"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16503$as_echo "$DOXYGEN" >&6; }
16504else
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506$as_echo "no" >&6; }
16507fi
16508
16509
16510
16511 if test "$DOXYGEN" != "no"; then
16512 DOXY_TRUE=
16513 DOXY_FALSE='#'
16514else
16515 DOXY_TRUE='#'
16516 DOXY_FALSE=
16517fi
16518
16519
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016520ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/ccrtp/Makefile doc/Makefile demo/Makefile phone/Makefile w32/Makefile ccrtp.spec libccrtp.spec ccrtp.list libccrtp.pc src/ccrtp/crypto/Makefile"
Emeric Vigier2f625822012-08-06 11:09:52 -040016521
16522cat >confcache <<\_ACEOF
16523# This file is a shell script that caches the results of configure
16524# tests run on this system so they can be shared between configure
16525# scripts and configure runs, see configure's option --config-cache.
16526# It is not useful on other systems. If it contains results you don't
16527# want to keep, you may remove or edit it.
16528#
16529# config.status only pays attention to the cache file if you give it
16530# the --recheck option to rerun configure.
16531#
16532# `ac_cv_env_foo' variables (set or unset) will be overridden when
16533# loading this file, other *unset* `ac_cv_foo' will be assigned the
16534# following values.
16535
16536_ACEOF
16537
16538# The following way of writing the cache mishandles newlines in values,
16539# but we know of no workaround that is simple, portable, and efficient.
16540# So, we kill variables containing newlines.
16541# Ultrix sh set writes to stderr and can't be redirected directly,
16542# and sets the high bit in the cache file unless we assign to the vars.
16543(
16544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16545 eval ac_val=\$$ac_var
16546 case $ac_val in #(
16547 *${as_nl}*)
16548 case $ac_var in #(
16549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16550$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16551 esac
16552 case $ac_var in #(
16553 _ | IFS | as_nl) ;; #(
16554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16555 *) { eval $ac_var=; unset $ac_var;} ;;
16556 esac ;;
16557 esac
16558 done
16559
16560 (set) 2>&1 |
16561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16562 *${as_nl}ac_space=\ *)
16563 # `set' does not quote correctly, so add quotes: double-quote
16564 # substitution turns \\\\ into \\, and sed turns \\ into \.
16565 sed -n \
16566 "s/'/'\\\\''/g;
16567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16568 ;; #(
16569 *)
16570 # `set' quotes correctly as required by POSIX, so do not add quotes.
16571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16572 ;;
16573 esac |
16574 sort
16575) |
16576 sed '
16577 /^ac_cv_env_/b end
16578 t clear
16579 :clear
16580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16581 t end
16582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16583 :end' >>confcache
16584if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16585 if test -w "$cache_file"; then
16586 if test "x$cache_file" != "x/dev/null"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16588$as_echo "$as_me: updating cache $cache_file" >&6;}
16589 if test ! -f "$cache_file" || test -h "$cache_file"; then
16590 cat confcache >"$cache_file"
16591 else
16592 case $cache_file in #(
16593 */* | ?:*)
16594 mv -f confcache "$cache_file"$$ &&
16595 mv -f "$cache_file"$$ "$cache_file" ;; #(
16596 *)
16597 mv -f confcache "$cache_file" ;;
16598 esac
16599 fi
16600 fi
16601 else
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16603$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16604 fi
16605fi
16606rm -f confcache
16607
16608test "x$prefix" = xNONE && prefix=$ac_default_prefix
16609# Let make expand exec_prefix.
16610test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16611
16612DEFS=-DHAVE_CONFIG_H
16613
16614ac_libobjs=
16615ac_ltlibobjs=
Emeric Vigier2f625822012-08-06 11:09:52 -040016616for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16617 # 1. Remove the extension, and $U if already installed.
16618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16621 # will be set to the directory where LIBOBJS objects are built.
16622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16624done
16625LIBOBJS=$ac_libobjs
16626
16627LTLIBOBJS=$ac_ltlibobjs
16628
16629
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16631$as_echo_n "checking that generated files are newer than configure... " >&6; }
16632 if test -n "$am_sleep_pid"; then
16633 # Hide warnings about reused PIDs.
16634 wait $am_sleep_pid 2>/dev/null
16635 fi
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16637$as_echo "done" >&6; }
Emeric Vigier2f625822012-08-06 11:09:52 -040016638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16639 as_fn_error $? "conditional \"AMDEP\" was never defined.
16640Usually this means the macro was only invoked conditionally." "$LINENO" 5
16641fi
16642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16643 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16644Usually this means the macro was only invoked conditionally." "$LINENO" 5
16645fi
16646if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16647 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16648Usually this means the macro was only invoked conditionally." "$LINENO" 5
16649fi
16650 if test -n "$EXEEXT"; then
16651 am__EXEEXT_TRUE=
16652 am__EXEEXT_FALSE='#'
16653else
16654 am__EXEEXT_TRUE='#'
16655 am__EXEEXT_FALSE=
16656fi
16657
16658if test -z "${SRTP_OPENSSL_TRUE}" && test -z "${SRTP_OPENSSL_FALSE}"; then
16659 as_fn_error $? "conditional \"SRTP_OPENSSL\" was never defined.
16660Usually this means the macro was only invoked conditionally." "$LINENO" 5
16661fi
16662if test -z "${SRTP_GCRYPT_TRUE}" && test -z "${SRTP_GCRYPT_FALSE}"; then
16663 as_fn_error $? "conditional \"SRTP_GCRYPT\" was never defined.
16664Usually this means the macro was only invoked conditionally." "$LINENO" 5
16665fi
Emeric Vigier2f625822012-08-06 11:09:52 -040016666if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16667 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16668Usually this means the macro was only invoked conditionally." "$LINENO" 5
16669fi
16670if test -z "${DOXY_TRUE}" && test -z "${DOXY_FALSE}"; then
16671 as_fn_error $? "conditional \"DOXY\" was never defined.
16672Usually this means the macro was only invoked conditionally." "$LINENO" 5
16673fi
16674
16675: "${CONFIG_STATUS=./config.status}"
16676ac_write_fail=0
16677ac_clean_files_save=$ac_clean_files
16678ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16679{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16680$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16681as_write_fail=0
16682cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16683#! $SHELL
16684# Generated by $as_me.
16685# Run this file to recreate the current configuration.
16686# Compiler output produced by configure, useful for debugging
16687# configure, is in config.log if it exists.
16688
16689debug=false
16690ac_cs_recheck=false
16691ac_cs_silent=false
16692
16693SHELL=\${CONFIG_SHELL-$SHELL}
16694export SHELL
16695_ASEOF
16696cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16697## -------------------- ##
16698## M4sh Initialization. ##
16699## -------------------- ##
16700
16701# Be more Bourne compatible
16702DUALCASE=1; export DUALCASE # for MKS sh
16703if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16704 emulate sh
16705 NULLCMD=:
16706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16707 # is contrary to our usage. Disable this feature.
16708 alias -g '${1+"$@"}'='"$@"'
16709 setopt NO_GLOB_SUBST
16710else
16711 case `(set -o) 2>/dev/null` in #(
16712 *posix*) :
16713 set -o posix ;; #(
16714 *) :
16715 ;;
16716esac
16717fi
16718
16719
16720as_nl='
16721'
16722export as_nl
16723# Printing a long string crashes Solaris 7 /usr/bin/printf.
16724as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16726as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16727# Prefer a ksh shell builtin over an external printf program on Solaris,
16728# but without wasting forks for bash or zsh.
16729if test -z "$BASH_VERSION$ZSH_VERSION" \
16730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16731 as_echo='print -r --'
16732 as_echo_n='print -rn --'
16733elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16734 as_echo='printf %s\n'
16735 as_echo_n='printf %s'
16736else
16737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16739 as_echo_n='/usr/ucb/echo -n'
16740 else
16741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16742 as_echo_n_body='eval
16743 arg=$1;
16744 case $arg in #(
16745 *"$as_nl"*)
16746 expr "X$arg" : "X\\(.*\\)$as_nl";
16747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16748 esac;
16749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16750 '
16751 export as_echo_n_body
16752 as_echo_n='sh -c $as_echo_n_body as_echo'
16753 fi
16754 export as_echo_body
16755 as_echo='sh -c $as_echo_body as_echo'
16756fi
16757
16758# The user is always right.
16759if test "${PATH_SEPARATOR+set}" != set; then
16760 PATH_SEPARATOR=:
16761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16763 PATH_SEPARATOR=';'
16764 }
16765fi
16766
16767
16768# IFS
16769# We need space, tab and new line, in precisely that order. Quoting is
16770# there to prevent editors from complaining about space-tab.
16771# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16772# splitting by setting IFS to empty value.)
16773IFS=" "" $as_nl"
16774
16775# Find who we are. Look in the path if we contain no directory separator.
16776as_myself=
16777case $0 in #((
16778 *[\\/]* ) as_myself=$0 ;;
16779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780for as_dir in $PATH
16781do
16782 IFS=$as_save_IFS
16783 test -z "$as_dir" && as_dir=.
16784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16785 done
16786IFS=$as_save_IFS
16787
16788 ;;
16789esac
16790# We did not find ourselves, most probably we were run as `sh COMMAND'
16791# in which case we are not to be found in the path.
16792if test "x$as_myself" = x; then
16793 as_myself=$0
16794fi
16795if test ! -f "$as_myself"; then
16796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16797 exit 1
16798fi
16799
16800# Unset variables that we do not need and which cause bugs (e.g. in
16801# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16802# suppresses any "Segmentation fault" message there. '((' could
16803# trigger a bug in pdksh 5.2.14.
16804for as_var in BASH_ENV ENV MAIL MAILPATH
16805do eval test x\${$as_var+set} = xset \
16806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16807done
16808PS1='$ '
16809PS2='> '
16810PS4='+ '
16811
16812# NLS nuisances.
16813LC_ALL=C
16814export LC_ALL
16815LANGUAGE=C
16816export LANGUAGE
16817
16818# CDPATH.
16819(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16820
16821
16822# as_fn_error STATUS ERROR [LINENO LOG_FD]
16823# ----------------------------------------
16824# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16825# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16826# script with STATUS, using 1 if that was 0.
16827as_fn_error ()
16828{
16829 as_status=$1; test $as_status -eq 0 && as_status=1
16830 if test "$4"; then
16831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16833 fi
16834 $as_echo "$as_me: error: $2" >&2
16835 as_fn_exit $as_status
16836} # as_fn_error
16837
16838
16839# as_fn_set_status STATUS
16840# -----------------------
16841# Set $? to STATUS, without forking.
16842as_fn_set_status ()
16843{
16844 return $1
16845} # as_fn_set_status
16846
16847# as_fn_exit STATUS
16848# -----------------
16849# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16850as_fn_exit ()
16851{
16852 set +e
16853 as_fn_set_status $1
16854 exit $1
16855} # as_fn_exit
16856
16857# as_fn_unset VAR
16858# ---------------
16859# Portably unset VAR.
16860as_fn_unset ()
16861{
16862 { eval $1=; unset $1;}
16863}
16864as_unset=as_fn_unset
16865# as_fn_append VAR VALUE
16866# ----------------------
16867# Append the text in VALUE to the end of the definition contained in VAR. Take
16868# advantage of any shell optimizations that allow amortized linear growth over
16869# repeated appends, instead of the typical quadratic growth present in naive
16870# implementations.
16871if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16872 eval 'as_fn_append ()
16873 {
16874 eval $1+=\$2
16875 }'
16876else
16877 as_fn_append ()
16878 {
16879 eval $1=\$$1\$2
16880 }
16881fi # as_fn_append
16882
16883# as_fn_arith ARG...
16884# ------------------
16885# Perform arithmetic evaluation on the ARGs, and store the result in the
16886# global $as_val. Take advantage of shells that can avoid forks. The arguments
16887# must be portable across $(()) and expr.
16888if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16889 eval 'as_fn_arith ()
16890 {
16891 as_val=$(( $* ))
16892 }'
16893else
16894 as_fn_arith ()
16895 {
16896 as_val=`expr "$@" || test $? -eq 1`
16897 }
16898fi # as_fn_arith
16899
16900
16901if expr a : '\(a\)' >/dev/null 2>&1 &&
16902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16903 as_expr=expr
16904else
16905 as_expr=false
16906fi
16907
16908if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16909 as_basename=basename
16910else
16911 as_basename=false
16912fi
16913
16914if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16915 as_dirname=dirname
16916else
16917 as_dirname=false
16918fi
16919
16920as_me=`$as_basename -- "$0" ||
16921$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16922 X"$0" : 'X\(//\)$' \| \
16923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16924$as_echo X/"$0" |
16925 sed '/^.*\/\([^/][^/]*\)\/*$/{
16926 s//\1/
16927 q
16928 }
16929 /^X\/\(\/\/\)$/{
16930 s//\1/
16931 q
16932 }
16933 /^X\/\(\/\).*/{
16934 s//\1/
16935 q
16936 }
16937 s/.*/./; q'`
16938
16939# Avoid depending upon Character Ranges.
16940as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16941as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16942as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16943as_cr_digits='0123456789'
16944as_cr_alnum=$as_cr_Letters$as_cr_digits
16945
16946ECHO_C= ECHO_N= ECHO_T=
16947case `echo -n x` in #(((((
16948-n*)
16949 case `echo 'xy\c'` in
16950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16951 xy) ECHO_C='\c';;
16952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16953 ECHO_T=' ';;
16954 esac;;
16955*)
16956 ECHO_N='-n';;
16957esac
16958
16959rm -f conf$$ conf$$.exe conf$$.file
16960if test -d conf$$.dir; then
16961 rm -f conf$$.dir/conf$$.file
16962else
16963 rm -f conf$$.dir
16964 mkdir conf$$.dir 2>/dev/null
16965fi
16966if (echo >conf$$.file) 2>/dev/null; then
16967 if ln -s conf$$.file conf$$ 2>/dev/null; then
16968 as_ln_s='ln -s'
16969 # ... but there are two gotchas:
16970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016972 # In both cases, we have to default to `cp -pR'.
Emeric Vigier2f625822012-08-06 11:09:52 -040016973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016974 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040016975 elif ln conf$$.file conf$$ 2>/dev/null; then
16976 as_ln_s=ln
16977 else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016978 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040016979 fi
16980else
Alexandre Lisionddd731e2014-01-31 11:50:08 -050016981 as_ln_s='cp -pR'
Emeric Vigier2f625822012-08-06 11:09:52 -040016982fi
16983rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16984rmdir conf$$.dir 2>/dev/null
16985
16986
16987# as_fn_mkdir_p
16988# -------------
16989# Create "$as_dir" as a directory, including parents if necessary.
16990as_fn_mkdir_p ()
16991{
16992
16993 case $as_dir in #(
16994 -*) as_dir=./$as_dir;;
16995 esac
16996 test -d "$as_dir" || eval $as_mkdir_p || {
16997 as_dirs=
16998 while :; do
16999 case $as_dir in #(
17000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17001 *) as_qdir=$as_dir;;
17002 esac
17003 as_dirs="'$as_qdir' $as_dirs"
17004 as_dir=`$as_dirname -- "$as_dir" ||
17005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17006 X"$as_dir" : 'X\(//\)[^/]' \| \
17007 X"$as_dir" : 'X\(//\)$' \| \
17008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17009$as_echo X"$as_dir" |
17010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17011 s//\1/
17012 q
17013 }
17014 /^X\(\/\/\)[^/].*/{
17015 s//\1/
17016 q
17017 }
17018 /^X\(\/\/\)$/{
17019 s//\1/
17020 q
17021 }
17022 /^X\(\/\).*/{
17023 s//\1/
17024 q
17025 }
17026 s/.*/./; q'`
17027 test -d "$as_dir" && break
17028 done
17029 test -z "$as_dirs" || eval "mkdir $as_dirs"
17030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17031
17032
17033} # as_fn_mkdir_p
17034if mkdir -p . 2>/dev/null; then
17035 as_mkdir_p='mkdir -p "$as_dir"'
17036else
17037 test -d ./-p && rmdir ./-p
17038 as_mkdir_p=false
17039fi
17040
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017041
17042# as_fn_executable_p FILE
17043# -----------------------
17044# Test if FILE is an executable regular file.
17045as_fn_executable_p ()
17046{
17047 test -f "$1" && test -x "$1"
17048} # as_fn_executable_p
17049as_test_x='test -x'
17050as_executable_p=as_fn_executable_p
Emeric Vigier2f625822012-08-06 11:09:52 -040017051
17052# Sed expression to map a string onto a valid CPP name.
17053as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17054
17055# Sed expression to map a string onto a valid variable name.
17056as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17057
17058
17059exec 6>&1
17060## ----------------------------------- ##
17061## Main body of $CONFIG_STATUS script. ##
17062## ----------------------------------- ##
17063_ASEOF
17064test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17065
17066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17067# Save the log message, to keep $0 and so on meaningful, and to
17068# report actual input values of CONFIG_FILES etc. instead of their
17069# values after options handling.
17070ac_log="
17071This file was extended by $as_me, which was
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017072generated by GNU Autoconf 2.69. Invocation command line was
Emeric Vigier2f625822012-08-06 11:09:52 -040017073
17074 CONFIG_FILES = $CONFIG_FILES
17075 CONFIG_HEADERS = $CONFIG_HEADERS
17076 CONFIG_LINKS = $CONFIG_LINKS
17077 CONFIG_COMMANDS = $CONFIG_COMMANDS
17078 $ $0 $@
17079
17080on `(hostname || uname -n) 2>/dev/null | sed 1q`
17081"
17082
17083_ACEOF
17084
17085case $ac_config_files in *"
17086"*) set x $ac_config_files; shift; ac_config_files=$*;;
17087esac
17088
17089case $ac_config_headers in *"
17090"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17091esac
17092
17093
17094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095# Files that config.status was made for.
17096config_files="$ac_config_files"
17097config_headers="$ac_config_headers"
17098config_commands="$ac_config_commands"
17099
17100_ACEOF
17101
17102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103ac_cs_usage="\
17104\`$as_me' instantiates files and other configuration actions
17105from templates according to the current configuration. Unless the files
17106and actions are specified as TAGs, all are instantiated by default.
17107
17108Usage: $0 [OPTION]... [TAG]...
17109
17110 -h, --help print this help, then exit
17111 -V, --version print version number and configuration settings, then exit
17112 --config print configuration, then exit
17113 -q, --quiet, --silent
17114 do not print progress messages
17115 -d, --debug don't remove temporary files
17116 --recheck update $as_me by reconfiguring in the same conditions
17117 --file=FILE[:TEMPLATE]
17118 instantiate the configuration file FILE
17119 --header=FILE[:TEMPLATE]
17120 instantiate the configuration header FILE
17121
17122Configuration files:
17123$config_files
17124
17125Configuration headers:
17126$config_headers
17127
17128Configuration commands:
17129$config_commands
17130
17131Report bugs to the package provider."
17132
17133_ACEOF
17134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17135ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17136ac_cs_version="\\
17137config.status
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017138configured by $0, generated by GNU Autoconf 2.69,
Emeric Vigier2f625822012-08-06 11:09:52 -040017139 with options \\"\$ac_cs_config\\"
17140
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017141Copyright (C) 2012 Free Software Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -040017142This config.status script is free software; the Free Software Foundation
17143gives unlimited permission to copy, distribute and modify it."
17144
17145ac_pwd='$ac_pwd'
17146srcdir='$srcdir'
17147INSTALL='$INSTALL'
17148MKDIR_P='$MKDIR_P'
17149AWK='$AWK'
17150test -n "\$AWK" || AWK=awk
17151_ACEOF
17152
17153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17154# The default lists apply if the user does not specify any file.
17155ac_need_defaults=:
17156while test $# != 0
17157do
17158 case $1 in
17159 --*=?*)
17160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17162 ac_shift=:
17163 ;;
17164 --*=)
17165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17166 ac_optarg=
17167 ac_shift=:
17168 ;;
17169 *)
17170 ac_option=$1
17171 ac_optarg=$2
17172 ac_shift=shift
17173 ;;
17174 esac
17175
17176 case $ac_option in
17177 # Handling of the options.
17178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17179 ac_cs_recheck=: ;;
17180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17181 $as_echo "$ac_cs_version"; exit ;;
17182 --config | --confi | --conf | --con | --co | --c )
17183 $as_echo "$ac_cs_config"; exit ;;
17184 --debug | --debu | --deb | --de | --d | -d )
17185 debug=: ;;
17186 --file | --fil | --fi | --f )
17187 $ac_shift
17188 case $ac_optarg in
17189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17190 '') as_fn_error $? "missing file argument" ;;
17191 esac
17192 as_fn_append CONFIG_FILES " '$ac_optarg'"
17193 ac_need_defaults=false;;
17194 --header | --heade | --head | --hea )
17195 $ac_shift
17196 case $ac_optarg in
17197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17198 esac
17199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17200 ac_need_defaults=false;;
17201 --he | --h)
17202 # Conflict between --help and --header
17203 as_fn_error $? "ambiguous option: \`$1'
17204Try \`$0 --help' for more information.";;
17205 --help | --hel | -h )
17206 $as_echo "$ac_cs_usage"; exit ;;
17207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17209 ac_cs_silent=: ;;
17210
17211 # This is an error.
17212 -*) as_fn_error $? "unrecognized option: \`$1'
17213Try \`$0 --help' for more information." ;;
17214
17215 *) as_fn_append ac_config_targets " $1"
17216 ac_need_defaults=false ;;
17217
17218 esac
17219 shift
17220done
17221
17222ac_configure_extra_args=
17223
17224if $ac_cs_silent; then
17225 exec 6>/dev/null
17226 ac_configure_extra_args="$ac_configure_extra_args --silent"
17227fi
17228
17229_ACEOF
17230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17231if \$ac_cs_recheck; then
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017232 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Emeric Vigier2f625822012-08-06 11:09:52 -040017233 shift
17234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17235 CONFIG_SHELL='$SHELL'
17236 export CONFIG_SHELL
17237 exec "\$@"
17238fi
17239
17240_ACEOF
17241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17242exec 5>>config.log
17243{
17244 echo
17245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17246## Running $as_me. ##
17247_ASBOX
17248 $as_echo "$ac_log"
17249} >&5
17250
17251_ACEOF
17252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17253#
17254# INIT-COMMANDS
17255#
17256
17257
17258# The HP-UX ksh and POSIX shell print the target directory to stdout
17259# if CDPATH is set.
17260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17261
17262sed_quote_subst='$sed_quote_subst'
17263double_quote_subst='$double_quote_subst'
17264delay_variable_subst='$delay_variable_subst'
17265macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17266macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17267enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17268enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17269pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17270enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17271SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17272ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017273PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017274host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17275host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17276host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17277build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17278build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17279build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17280SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17281Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17282GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17283EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17284FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17285LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17286NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17287LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17288max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17289ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17290exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17291lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17292lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17293lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17294lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17295lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17296reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17297reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17298OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17299deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17300file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17301file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17302want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17303DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17304sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17305AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17306AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17307archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17308STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17309RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17310old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17311old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17312old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17313lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17314CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17315CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17316compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17317GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17318lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17319lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17320lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17321lt_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"`'
17322nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17323lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17324objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17325MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17326lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17327lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17328lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17329lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17330lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17331need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17332MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17333DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17334NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17335LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17336OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17337OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17338libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17339shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17340extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17341archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17342enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17343export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17344whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17345compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17346old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17347old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17348archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17349archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17350module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17351module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17352with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17353allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17354no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17355hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017356hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17357hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17358hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17359hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17360hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17361hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17362inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17363link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17364always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17365export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17366exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17367include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17368prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17369postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17370file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17371variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17372need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17373need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17374version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17375runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17376shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17377shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17378libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17379library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17380soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17381install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17382postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17383postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17384finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17385finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17386hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17387sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17388sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17389hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17390enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17391enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17392enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17393old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17394striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17395compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17396predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17397postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17398predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17399postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17400compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17401LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17402reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17403reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17404old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17405compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17406GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17407lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17408lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17409lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17410lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17411lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17412archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17413enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17414export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17415whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17416compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17417old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17418old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17419archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17420archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17421module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17422module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17423with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17424allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17425no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17426hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
Emeric Vigier2f625822012-08-06 11:09:52 -040017427hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17428hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17429hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17430hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17431hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17432hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17433inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17434link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17435always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17436export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17437exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17438include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17439prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17440postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17441file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17442hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17443compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17444predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17445postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17446predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17447postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17448compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17449
17450LTCC='$LTCC'
17451LTCFLAGS='$LTCFLAGS'
17452compiler='$compiler_DEFAULT'
17453
17454# A function that is used when there is no print builtin or printf.
17455func_fallback_echo ()
17456{
17457 eval 'cat <<_LTECHO_EOF
17458\$1
17459_LTECHO_EOF'
17460}
17461
17462# Quote evaled strings.
17463for var in SHELL \
17464ECHO \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017465PATH_SEPARATOR \
Emeric Vigier2f625822012-08-06 11:09:52 -040017466SED \
17467GREP \
17468EGREP \
17469FGREP \
17470LD \
17471NM \
17472LN_S \
17473lt_SP2NL \
17474lt_NL2SP \
17475reload_flag \
17476OBJDUMP \
17477deplibs_check_method \
17478file_magic_cmd \
17479file_magic_glob \
17480want_nocaseglob \
17481DLLTOOL \
17482sharedlib_from_linklib_cmd \
17483AR \
17484AR_FLAGS \
17485archiver_list_spec \
17486STRIP \
17487RANLIB \
17488CC \
17489CFLAGS \
17490compiler \
17491lt_cv_sys_global_symbol_pipe \
17492lt_cv_sys_global_symbol_to_cdecl \
17493lt_cv_sys_global_symbol_to_c_name_address \
17494lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17495nm_file_list_spec \
17496lt_prog_compiler_no_builtin_flag \
17497lt_prog_compiler_pic \
17498lt_prog_compiler_wl \
17499lt_prog_compiler_static \
17500lt_cv_prog_compiler_c_o \
17501need_locks \
17502MANIFEST_TOOL \
17503DSYMUTIL \
17504NMEDIT \
17505LIPO \
17506OTOOL \
17507OTOOL64 \
17508shrext_cmds \
17509export_dynamic_flag_spec \
17510whole_archive_flag_spec \
17511compiler_needs_object \
17512with_gnu_ld \
17513allow_undefined_flag \
17514no_undefined_flag \
17515hardcode_libdir_flag_spec \
Emeric Vigier2f625822012-08-06 11:09:52 -040017516hardcode_libdir_separator \
17517exclude_expsyms \
17518include_expsyms \
17519file_list_spec \
17520variables_saved_for_relink \
17521libname_spec \
17522library_names_spec \
17523soname_spec \
17524install_override_mode \
17525finish_eval \
17526old_striplib \
17527striplib \
17528compiler_lib_search_dirs \
17529predep_objects \
17530postdep_objects \
17531predeps \
17532postdeps \
17533compiler_lib_search_path \
17534LD_CXX \
17535reload_flag_CXX \
17536compiler_CXX \
17537lt_prog_compiler_no_builtin_flag_CXX \
17538lt_prog_compiler_pic_CXX \
17539lt_prog_compiler_wl_CXX \
17540lt_prog_compiler_static_CXX \
17541lt_cv_prog_compiler_c_o_CXX \
17542export_dynamic_flag_spec_CXX \
17543whole_archive_flag_spec_CXX \
17544compiler_needs_object_CXX \
17545with_gnu_ld_CXX \
17546allow_undefined_flag_CXX \
17547no_undefined_flag_CXX \
17548hardcode_libdir_flag_spec_CXX \
Emeric Vigier2f625822012-08-06 11:09:52 -040017549hardcode_libdir_separator_CXX \
17550exclude_expsyms_CXX \
17551include_expsyms_CXX \
17552file_list_spec_CXX \
17553compiler_lib_search_dirs_CXX \
17554predep_objects_CXX \
17555postdep_objects_CXX \
17556predeps_CXX \
17557postdeps_CXX \
17558compiler_lib_search_path_CXX; do
17559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17560 *[\\\\\\\`\\"\\\$]*)
17561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17562 ;;
17563 *)
17564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17565 ;;
17566 esac
17567done
17568
17569# Double-quote double-evaled strings.
17570for var in reload_cmds \
17571old_postinstall_cmds \
17572old_postuninstall_cmds \
17573old_archive_cmds \
17574extract_expsyms_cmds \
17575old_archive_from_new_cmds \
17576old_archive_from_expsyms_cmds \
17577archive_cmds \
17578archive_expsym_cmds \
17579module_cmds \
17580module_expsym_cmds \
17581export_symbols_cmds \
17582prelink_cmds \
17583postlink_cmds \
17584postinstall_cmds \
17585postuninstall_cmds \
17586finish_cmds \
17587sys_lib_search_path_spec \
17588sys_lib_dlsearch_path_spec \
17589reload_cmds_CXX \
17590old_archive_cmds_CXX \
17591old_archive_from_new_cmds_CXX \
17592old_archive_from_expsyms_cmds_CXX \
17593archive_cmds_CXX \
17594archive_expsym_cmds_CXX \
17595module_cmds_CXX \
17596module_expsym_cmds_CXX \
17597export_symbols_cmds_CXX \
17598prelink_cmds_CXX \
17599postlink_cmds_CXX; do
17600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17601 *[\\\\\\\`\\"\\\$]*)
17602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17603 ;;
17604 *)
17605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17606 ;;
17607 esac
17608done
17609
17610ac_aux_dir='$ac_aux_dir'
17611xsi_shell='$xsi_shell'
17612lt_shell_append='$lt_shell_append'
17613
17614# See if we are running on zsh, and set the options which allow our
17615# commands through without removal of \ escapes INIT.
17616if test -n "\${ZSH_VERSION+set}" ; then
17617 setopt NO_GLOB_SUBST
17618fi
17619
17620
17621 PACKAGE='$PACKAGE'
17622 VERSION='$VERSION'
17623 TIMESTAMP='$TIMESTAMP'
17624 RM='$RM'
17625 ofile='$ofile'
17626
17627
17628
17629
17630
17631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17632
17633_ACEOF
17634
17635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17636
17637# Handling of arguments.
17638for ac_config_target in $ac_config_targets
17639do
17640 case $ac_config_target in
17641 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017643 "ccrtp-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ccrtp-config.h" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040017644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17645 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17646 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17647 "src/ccrtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/Makefile" ;;
17648 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17649 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
17650 "phone/Makefile") CONFIG_FILES="$CONFIG_FILES phone/Makefile" ;;
17651 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
17652 "ccrtp.spec") CONFIG_FILES="$CONFIG_FILES ccrtp.spec" ;;
17653 "libccrtp.spec") CONFIG_FILES="$CONFIG_FILES libccrtp.spec" ;;
17654 "ccrtp.list") CONFIG_FILES="$CONFIG_FILES ccrtp.list" ;;
Alexandre Lisionddd731e2014-01-31 11:50:08 -050017655 "libccrtp.pc") CONFIG_FILES="$CONFIG_FILES libccrtp.pc" ;;
Emeric Vigier2f625822012-08-06 11:09:52 -040017656 "src/ccrtp/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/crypto/Makefile" ;;
17657
17658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17659 esac
17660done
17661
17662
17663# If the user did not use the arguments to specify the items to instantiate,
17664# then the envvar interface is used. Set only those that are not.
17665# We use the long form for the default assignment because of an extremely
17666# bizarre bug on SunOS 4.1.3.
17667if $ac_need_defaults; then
17668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17671fi
17672
17673# Have a temporary directory for convenience. Make it in the build tree
17674# simply because there is no reason against having it here, and in addition,
17675# creating and moving files from /tmp can sometimes cause problems.
17676# Hook for its removal unless debugging.
17677# Note that there is a small window in which the directory will not be cleaned:
17678# after its creation but before its name has been assigned to `$tmp'.
17679$debug ||
17680{
17681 tmp= ac_tmp=
17682 trap 'exit_status=$?
17683 : "${ac_tmp:=$tmp}"
17684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17685' 0
17686 trap 'as_fn_exit 1' 1 2 13 15
17687}
17688# Create a (secure) tmp directory for tmp files.
17689
17690{
17691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17692 test -d "$tmp"
17693} ||
17694{
17695 tmp=./conf$$-$RANDOM
17696 (umask 077 && mkdir "$tmp")
17697} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17698ac_tmp=$tmp
17699
17700# Set up the scripts for CONFIG_FILES section.
17701# No need to generate them if there are no CONFIG_FILES.
17702# This happens for instance with `./config.status config.h'.
17703if test -n "$CONFIG_FILES"; then
17704
17705
17706ac_cr=`echo X | tr X '\015'`
17707# On cygwin, bash can eat \r inside `` if the user requested igncr.
17708# But we know of no other shell where ac_cr would be empty at this
17709# point, so we can use a bashism as a fallback.
17710if test "x$ac_cr" = x; then
17711 eval ac_cr=\$\'\\r\'
17712fi
17713ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17714if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17715 ac_cs_awk_cr='\\r'
17716else
17717 ac_cs_awk_cr=$ac_cr
17718fi
17719
17720echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17721_ACEOF
17722
17723
17724{
17725 echo "cat >conf$$subs.awk <<_ACEOF" &&
17726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17727 echo "_ACEOF"
17728} >conf$$subs.sh ||
17729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17730ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17731ac_delim='%!_!# '
17732for ac_last_try in false false false false false :; do
17733 . ./conf$$subs.sh ||
17734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17735
17736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17737 if test $ac_delim_n = $ac_delim_num; then
17738 break
17739 elif $ac_last_try; then
17740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17741 else
17742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17743 fi
17744done
17745rm -f conf$$subs.sh
17746
17747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17749_ACEOF
17750sed -n '
17751h
17752s/^/S["/; s/!.*/"]=/
17753p
17754g
17755s/^[^!]*!//
17756:repl
17757t repl
17758s/'"$ac_delim"'$//
17759t delim
17760:nl
17761h
17762s/\(.\{148\}\)..*/\1/
17763t more1
17764s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17765p
17766n
17767b repl
17768:more1
17769s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17770p
17771g
17772s/.\{148\}//
17773t nl
17774:delim
17775h
17776s/\(.\{148\}\)..*/\1/
17777t more2
17778s/["\\]/\\&/g; s/^/"/; s/$/"/
17779p
17780b
17781:more2
17782s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17783p
17784g
17785s/.\{148\}//
17786t delim
17787' <conf$$subs.awk | sed '
17788/^[^""]/{
17789 N
17790 s/\n//
17791}
17792' >>$CONFIG_STATUS || ac_write_fail=1
17793rm -f conf$$subs.awk
17794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17795_ACAWK
17796cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17797 for (key in S) S_is_set[key] = 1
17798 FS = ""
17799
17800}
17801{
17802 line = $ 0
17803 nfields = split(line, field, "@")
17804 substed = 0
17805 len = length(field[1])
17806 for (i = 2; i < nfields; i++) {
17807 key = field[i]
17808 keylen = length(key)
17809 if (S_is_set[key]) {
17810 value = S[key]
17811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17812 len += length(value) + length(field[++i])
17813 substed = 1
17814 } else
17815 len += 1 + keylen
17816 }
17817
17818 print line
17819}
17820
17821_ACAWK
17822_ACEOF
17823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17824if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17826else
17827 cat
17828fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17830_ACEOF
17831
17832# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17833# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17834# trailing colons and then remove the whole line if VPATH becomes empty
17835# (actually we leave an empty line to preserve line numbers).
17836if test "x$srcdir" = x.; then
17837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17838h
17839s///
17840s/^/:/
17841s/[ ]*$/:/
17842s/:\$(srcdir):/:/g
17843s/:\${srcdir}:/:/g
17844s/:@srcdir@:/:/g
17845s/^:*//
17846s/:*$//
17847x
17848s/\(=[ ]*\).*/\1/
17849G
17850s/\n//
17851s/^[^=]*=[ ]*$//
17852}'
17853fi
17854
17855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17856fi # test -n "$CONFIG_FILES"
17857
17858# Set up the scripts for CONFIG_HEADERS section.
17859# No need to generate them if there are no CONFIG_HEADERS.
17860# This happens for instance with `./config.status Makefile'.
17861if test -n "$CONFIG_HEADERS"; then
17862cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17863BEGIN {
17864_ACEOF
17865
17866# Transform confdefs.h into an awk script `defines.awk', embedded as
17867# here-document in config.status, that substitutes the proper values into
17868# config.h.in to produce config.h.
17869
17870# Create a delimiter string that does not exist in confdefs.h, to ease
17871# handling of long lines.
17872ac_delim='%!_!# '
17873for ac_last_try in false false :; do
17874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17875 if test -z "$ac_tt"; then
17876 break
17877 elif $ac_last_try; then
17878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17879 else
17880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17881 fi
17882done
17883
17884# For the awk script, D is an array of macro values keyed by name,
17885# likewise P contains macro parameters if any. Preserve backslash
17886# newline sequences.
17887
17888ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17889sed -n '
17890s/.\{148\}/&'"$ac_delim"'/g
17891t rset
17892:rset
17893s/^[ ]*#[ ]*define[ ][ ]*/ /
17894t def
17895d
17896:def
17897s/\\$//
17898t bsnl
17899s/["\\]/\\&/g
17900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17901D["\1"]=" \3"/p
17902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17903d
17904:bsnl
17905s/["\\]/\\&/g
17906s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17907D["\1"]=" \3\\\\\\n"\\/p
17908t cont
17909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17910t cont
17911d
17912:cont
17913n
17914s/.\{148\}/&'"$ac_delim"'/g
17915t clear
17916:clear
17917s/\\$//
17918t bsnlc
17919s/["\\]/\\&/g; s/^/"/; s/$/"/p
17920d
17921:bsnlc
17922s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17923b cont
17924' <confdefs.h | sed '
17925s/'"$ac_delim"'/"\\\
17926"/g' >>$CONFIG_STATUS || ac_write_fail=1
17927
17928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17929 for (key in D) D_is_set[key] = 1
17930 FS = ""
17931}
17932/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17933 line = \$ 0
17934 split(line, arg, " ")
17935 if (arg[1] == "#") {
17936 defundef = arg[2]
17937 mac1 = arg[3]
17938 } else {
17939 defundef = substr(arg[1], 2)
17940 mac1 = arg[2]
17941 }
17942 split(mac1, mac2, "(") #)
17943 macro = mac2[1]
17944 prefix = substr(line, 1, index(line, defundef) - 1)
17945 if (D_is_set[macro]) {
17946 # Preserve the white space surrounding the "#".
17947 print prefix "define", macro P[macro] D[macro]
17948 next
17949 } else {
17950 # Replace #undef with comments. This is necessary, for example,
17951 # in the case of _POSIX_SOURCE, which is predefined and required
17952 # on some systems where configure will not decide to define it.
17953 if (defundef == "undef") {
17954 print "/*", prefix defundef, macro, "*/"
17955 next
17956 }
17957 }
17958}
17959{ print }
17960_ACAWK
17961_ACEOF
17962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17964fi # test -n "$CONFIG_HEADERS"
17965
17966
17967eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17968shift
17969for ac_tag
17970do
17971 case $ac_tag in
17972 :[FHLC]) ac_mode=$ac_tag; continue;;
17973 esac
17974 case $ac_mode$ac_tag in
17975 :[FHL]*:*);;
17976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17977 :[FH]-) ac_tag=-:-;;
17978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17979 esac
17980 ac_save_IFS=$IFS
17981 IFS=:
17982 set x $ac_tag
17983 IFS=$ac_save_IFS
17984 shift
17985 ac_file=$1
17986 shift
17987
17988 case $ac_mode in
17989 :L) ac_source=$1;;
17990 :[FH])
17991 ac_file_inputs=
17992 for ac_f
17993 do
17994 case $ac_f in
17995 -) ac_f="$ac_tmp/stdin";;
17996 *) # Look for the file first in the build tree, then in the source tree
17997 # (if the path is not absolute). The absolute path cannot be DOS-style,
17998 # because $ac_f cannot contain `:'.
17999 test -f "$ac_f" ||
18000 case $ac_f in
18001 [\\/$]*) false;;
18002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18003 esac ||
18004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18005 esac
18006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18007 as_fn_append ac_file_inputs " '$ac_f'"
18008 done
18009
18010 # Let's still pretend it is `configure' which instantiates (i.e., don't
18011 # use $as_me), people would be surprised to read:
18012 # /* config.h. Generated by config.status. */
18013 configure_input='Generated from '`
18014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18015 `' by configure.'
18016 if test x"$ac_file" != x-; then
18017 configure_input="$ac_file. $configure_input"
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18019$as_echo "$as_me: creating $ac_file" >&6;}
18020 fi
18021 # Neutralize special characters interpreted by sed in replacement strings.
18022 case $configure_input in #(
18023 *\&* | *\|* | *\\* )
18024 ac_sed_conf_input=`$as_echo "$configure_input" |
18025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18026 *) ac_sed_conf_input=$configure_input;;
18027 esac
18028
18029 case $ac_tag in
18030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18032 esac
18033 ;;
18034 esac
18035
18036 ac_dir=`$as_dirname -- "$ac_file" ||
18037$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18038 X"$ac_file" : 'X\(//\)[^/]' \| \
18039 X"$ac_file" : 'X\(//\)$' \| \
18040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18041$as_echo X"$ac_file" |
18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18043 s//\1/
18044 q
18045 }
18046 /^X\(\/\/\)[^/].*/{
18047 s//\1/
18048 q
18049 }
18050 /^X\(\/\/\)$/{
18051 s//\1/
18052 q
18053 }
18054 /^X\(\/\).*/{
18055 s//\1/
18056 q
18057 }
18058 s/.*/./; q'`
18059 as_dir="$ac_dir"; as_fn_mkdir_p
18060 ac_builddir=.
18061
18062case "$ac_dir" in
18063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18064*)
18065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18066 # A ".." for each directory in $ac_dir_suffix.
18067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18068 case $ac_top_builddir_sub in
18069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18071 esac ;;
18072esac
18073ac_abs_top_builddir=$ac_pwd
18074ac_abs_builddir=$ac_pwd$ac_dir_suffix
18075# for backward compatibility:
18076ac_top_builddir=$ac_top_build_prefix
18077
18078case $srcdir in
18079 .) # We are building in place.
18080 ac_srcdir=.
18081 ac_top_srcdir=$ac_top_builddir_sub
18082 ac_abs_top_srcdir=$ac_pwd ;;
18083 [\\/]* | ?:[\\/]* ) # Absolute name.
18084 ac_srcdir=$srcdir$ac_dir_suffix;
18085 ac_top_srcdir=$srcdir
18086 ac_abs_top_srcdir=$srcdir ;;
18087 *) # Relative name.
18088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18089 ac_top_srcdir=$ac_top_build_prefix$srcdir
18090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18091esac
18092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18093
18094
18095 case $ac_mode in
18096 :F)
18097 #
18098 # CONFIG_FILE
18099 #
18100
18101 case $INSTALL in
18102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18104 esac
18105 ac_MKDIR_P=$MKDIR_P
18106 case $MKDIR_P in
18107 [\\/$]* | ?:[\\/]* ) ;;
18108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18109 esac
18110_ACEOF
18111
18112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18113# If the template does not know about datarootdir, expand it.
18114# FIXME: This hack should be removed a few years after 2.60.
18115ac_datarootdir_hack=; ac_datarootdir_seen=
18116ac_sed_dataroot='
18117/datarootdir/ {
18118 p
18119 q
18120}
18121/@datadir@/p
18122/@docdir@/p
18123/@infodir@/p
18124/@localedir@/p
18125/@mandir@/p'
18126case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18127*datarootdir*) ac_datarootdir_seen=yes;;
18128*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18130$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18131_ACEOF
18132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133 ac_datarootdir_hack='
18134 s&@datadir@&$datadir&g
18135 s&@docdir@&$docdir&g
18136 s&@infodir@&$infodir&g
18137 s&@localedir@&$localedir&g
18138 s&@mandir@&$mandir&g
18139 s&\\\${datarootdir}&$datarootdir&g' ;;
18140esac
18141_ACEOF
18142
18143# Neutralize VPATH when `$srcdir' = `.'.
18144# Shell code in configure.ac might set extrasub.
18145# FIXME: do we really want to maintain this feature?
18146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18147ac_sed_extra="$ac_vpsub
18148$extrasub
18149_ACEOF
18150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151:t
18152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18153s|@configure_input@|$ac_sed_conf_input|;t t
18154s&@top_builddir@&$ac_top_builddir_sub&;t t
18155s&@top_build_prefix@&$ac_top_build_prefix&;t t
18156s&@srcdir@&$ac_srcdir&;t t
18157s&@abs_srcdir@&$ac_abs_srcdir&;t t
18158s&@top_srcdir@&$ac_top_srcdir&;t t
18159s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18160s&@builddir@&$ac_builddir&;t t
18161s&@abs_builddir@&$ac_abs_builddir&;t t
18162s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18163s&@INSTALL@&$ac_INSTALL&;t t
18164s&@MKDIR_P@&$ac_MKDIR_P&;t t
18165$ac_datarootdir_hack
18166"
18167eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18168 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18169
18170test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18171 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18173 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18175which seems to be undefined. Please make sure it is defined" >&5
18176$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18177which seems to be undefined. Please make sure it is defined" >&2;}
18178
18179 rm -f "$ac_tmp/stdin"
18180 case $ac_file in
18181 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18182 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18183 esac \
18184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18185 ;;
18186 :H)
18187 #
18188 # CONFIG_HEADER
18189 #
18190 if test x"$ac_file" != x-; then
18191 {
18192 $as_echo "/* $configure_input */" \
18193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18194 } >"$ac_tmp/config.h" \
18195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18196 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18198$as_echo "$as_me: $ac_file is unchanged" >&6;}
18199 else
18200 rm -f "$ac_file"
18201 mv "$ac_tmp/config.h" "$ac_file" \
18202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18203 fi
18204 else
18205 $as_echo "/* $configure_input */" \
18206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18207 || as_fn_error $? "could not create -" "$LINENO" 5
18208 fi
18209# Compute "$ac_file"'s index in $config_headers.
18210_am_arg="$ac_file"
18211_am_stamp_count=1
18212for _am_header in $config_headers :; do
18213 case $_am_header in
18214 $_am_arg | $_am_arg:* )
18215 break ;;
18216 * )
18217 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18218 esac
18219done
18220echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18221$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18222 X"$_am_arg" : 'X\(//\)[^/]' \| \
18223 X"$_am_arg" : 'X\(//\)$' \| \
18224 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18225$as_echo X"$_am_arg" |
18226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18227 s//\1/
18228 q
18229 }
18230 /^X\(\/\/\)[^/].*/{
18231 s//\1/
18232 q
18233 }
18234 /^X\(\/\/\)$/{
18235 s//\1/
18236 q
18237 }
18238 /^X\(\/\).*/{
18239 s//\1/
18240 q
18241 }
18242 s/.*/./; q'`/stamp-h$_am_stamp_count
18243 ;;
18244
18245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18246$as_echo "$as_me: executing $ac_file commands" >&6;}
18247 ;;
18248 esac
18249
18250
18251 case $ac_file$ac_mode in
18252 "libtool":C)
18253
18254 # See if we are running on zsh, and set the options which allow our
18255 # commands through without removal of \ escapes.
18256 if test -n "${ZSH_VERSION+set}" ; then
18257 setopt NO_GLOB_SUBST
18258 fi
18259
18260 cfgfile="${ofile}T"
18261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18262 $RM "$cfgfile"
18263
18264 cat <<_LT_EOF >> "$cfgfile"
18265#! $SHELL
18266
18267# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18268# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18270# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18271#
18272# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Alexandre Lisionddd731e2014-01-31 11:50:08 -050018273# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18274# Foundation, Inc.
Emeric Vigier2f625822012-08-06 11:09:52 -040018275# Written by Gordon Matzigkeit, 1996
18276#
18277# This file is part of GNU Libtool.
18278#
18279# GNU Libtool is free software; you can redistribute it and/or
18280# modify it under the terms of the GNU General Public License as
18281# published by the Free Software Foundation; either version 2 of
18282# the License, or (at your option) any later version.
18283#
18284# As a special exception to the GNU General Public License,
18285# if you distribute this file as part of a program or library that
18286# is built using GNU Libtool, you may include this file under the
18287# same distribution terms that you use for the rest of that program.
18288#
18289# GNU Libtool is distributed in the hope that it will be useful,
18290# but WITHOUT ANY WARRANTY; without even the implied warranty of
18291# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18292# GNU General Public License for more details.
18293#
18294# You should have received a copy of the GNU General Public License
18295# along with GNU Libtool; see the file COPYING. If not, a copy
18296# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18297# obtained by writing to the Free Software Foundation, Inc.,
18298# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18299
18300
18301# The names of the tagged configurations supported by this script.
18302available_tags="CXX "
18303
18304# ### BEGIN LIBTOOL CONFIG
18305
18306# Which release of libtool.m4 was used?
18307macro_version=$macro_version
18308macro_revision=$macro_revision
18309
18310# Whether or not to build shared libraries.
18311build_libtool_libs=$enable_shared
18312
18313# Whether or not to build static libraries.
18314build_old_libs=$enable_static
18315
18316# What type of objects to build.
18317pic_mode=$pic_mode
18318
18319# Whether or not to optimize for fast installation.
18320fast_install=$enable_fast_install
18321
18322# Shell to use when invoking shell scripts.
18323SHELL=$lt_SHELL
18324
18325# An echo program that protects backslashes.
18326ECHO=$lt_ECHO
18327
Alexandre Lisionddd731e2014-01-31 11:50:08 -050018328# The PATH separator for the build system.
18329PATH_SEPARATOR=$lt_PATH_SEPARATOR
18330
Emeric Vigier2f625822012-08-06 11:09:52 -040018331# The host system.
18332host_alias=$host_alias
18333host=$host
18334host_os=$host_os
18335
18336# The build system.
18337build_alias=$build_alias
18338build=$build
18339build_os=$build_os
18340
18341# A sed program that does not truncate output.
18342SED=$lt_SED
18343
18344# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18345Xsed="\$SED -e 1s/^X//"
18346
18347# A grep program that handles long lines.
18348GREP=$lt_GREP
18349
18350# An ERE matcher.
18351EGREP=$lt_EGREP
18352
18353# A literal string matcher.
18354FGREP=$lt_FGREP
18355
18356# A BSD- or MS-compatible name lister.
18357NM=$lt_NM
18358
18359# Whether we need soft or hard links.
18360LN_S=$lt_LN_S
18361
18362# What is the maximum length of a command?
18363max_cmd_len=$max_cmd_len
18364
18365# Object file suffix (normally "o").
18366objext=$ac_objext
18367
18368# Executable file suffix (normally "").
18369exeext=$exeext
18370
18371# whether the shell understands "unset".
18372lt_unset=$lt_unset
18373
18374# turn spaces into newlines.
18375SP2NL=$lt_lt_SP2NL
18376
18377# turn newlines into spaces.
18378NL2SP=$lt_lt_NL2SP
18379
18380# convert \$build file names to \$host format.
18381to_host_file_cmd=$lt_cv_to_host_file_cmd
18382
18383# convert \$build files to toolchain format.
18384to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18385
18386# An object symbol dumper.
18387OBJDUMP=$lt_OBJDUMP
18388
18389# Method to check whether dependent libraries are shared objects.
18390deplibs_check_method=$lt_deplibs_check_method
18391
18392# Command to use when deplibs_check_method = "file_magic".
18393file_magic_cmd=$lt_file_magic_cmd
18394
18395# How to find potential files when deplibs_check_method = "file_magic".
18396file_magic_glob=$lt_file_magic_glob
18397
18398# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18399want_nocaseglob=$lt_want_nocaseglob
18400
18401# DLL creation program.
18402DLLTOOL=$lt_DLLTOOL
18403
18404# Command to associate shared and link libraries.
18405sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18406
18407# The archiver.
18408AR=$lt_AR
18409
18410# Flags to create an archive.
18411AR_FLAGS=$lt_AR_FLAGS
18412
18413# How to feed a file listing to the archiver.
18414archiver_list_spec=$lt_archiver_list_spec
18415
18416# A symbol stripping program.
18417STRIP=$lt_STRIP
18418
18419# Commands used to install an old-style archive.
18420RANLIB=$lt_RANLIB
18421old_postinstall_cmds=$lt_old_postinstall_cmds
18422old_postuninstall_cmds=$lt_old_postuninstall_cmds
18423
18424# Whether to use a lock for old archive extraction.
18425lock_old_archive_extraction=$lock_old_archive_extraction
18426
18427# A C compiler.
18428LTCC=$lt_CC
18429
18430# LTCC compiler flags.
18431LTCFLAGS=$lt_CFLAGS
18432
18433# Take the output of nm and produce a listing of raw symbols and C names.
18434global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18435
18436# Transform the output of nm in a proper C declaration.
18437global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18438
18439# Transform the output of nm in a C name address pair.
18440global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18441
18442# Transform the output of nm in a C name address pair when lib prefix is needed.
18443global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18444
18445# Specify filename containing input files for \$NM.
18446nm_file_list_spec=$lt_nm_file_list_spec
18447
18448# The root where to search for dependent libraries,and in which our libraries should be installed.
18449lt_sysroot=$lt_sysroot
18450
18451# The name of the directory that contains temporary libtool files.
18452objdir=$objdir
18453
18454# Used to examine libraries when file_magic_cmd begins with "file".
18455MAGIC_CMD=$MAGIC_CMD
18456
18457# Must we lock files when doing compilation?
18458need_locks=$lt_need_locks
18459
18460# Manifest tool.
18461MANIFEST_TOOL=$lt_MANIFEST_TOOL
18462
18463# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18464DSYMUTIL=$lt_DSYMUTIL
18465
18466# Tool to change global to local symbols on Mac OS X.
18467NMEDIT=$lt_NMEDIT
18468
18469# Tool to manipulate fat objects and archives on Mac OS X.
18470LIPO=$lt_LIPO
18471
18472# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18473OTOOL=$lt_OTOOL
18474
18475# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18476OTOOL64=$lt_OTOOL64
18477
18478# Old archive suffix (normally "a").
18479libext=$libext
18480
18481# Shared library suffix (normally ".so").
18482shrext_cmds=$lt_shrext_cmds
18483
18484# The commands to extract the exported symbol list from a shared archive.
18485extract_expsyms_cmds=$lt_extract_expsyms_cmds
18486
18487# Variables whose values should be saved in libtool wrapper scripts and
18488# restored at link time.
18489variables_saved_for_relink=$lt_variables_saved_for_relink
18490
18491# Do we need the "lib" prefix for modules?
18492need_lib_prefix=$need_lib_prefix
18493
18494# Do we need a version for libraries?
18495need_version=$need_version
18496
18497# Library versioning type.
18498version_type=$version_type
18499
18500# Shared library runtime path variable.
18501runpath_var=$runpath_var
18502
18503# Shared library path variable.
18504shlibpath_var=$shlibpath_var
18505
18506# Is shlibpath searched before the hard-coded library search path?
18507shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18508
18509# Format of library name prefix.
18510libname_spec=$lt_libname_spec
18511
18512# List of archive names. First name is the real one, the rest are links.
18513# The last name is the one that the linker finds with -lNAME
18514library_names_spec=$lt_library_names_spec
18515
18516# The coded name of the library, if different from the real name.
18517soname_spec=$lt_soname_spec
18518
18519# Permission mode override for installation of shared libraries.
18520install_override_mode=$lt_install_override_mode
18521
18522# Command to use after installation of a shared archive.
18523postinstall_cmds=$lt_postinstall_cmds
18524
18525# Command to use after uninstallation of a shared archive.
18526postuninstall_cmds=$lt_postuninstall_cmds
18527
18528# Commands used to finish a libtool library installation in a directory.
18529finish_cmds=$lt_finish_cmds
18530
18531# As "finish_cmds", except a single script fragment to be evaled but
18532# not shown.
18533finish_eval=$lt_finish_eval
18534
18535# Whether we should hardcode library paths into libraries.
18536hardcode_into_libs=$hardcode_into_libs
18537
18538# Compile-time system search path for libraries.
18539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18540
18541# Run-time system search path for libraries.
18542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18543
18544# Whether dlopen is supported.
18545dlopen_support=$enable_dlopen
18546
18547# Whether dlopen of programs is supported.
18548dlopen_self=$enable_dlopen_self
18549
18550# Whether dlopen of statically linked programs is supported.
18551dlopen_self_static=$enable_dlopen_self_static
18552
18553# Commands to strip libraries.
18554old_striplib=$lt_old_striplib
18555striplib=$lt_striplib
18556
18557
18558# The linker used to build libraries.
18559LD=$lt_LD
18560
18561# How to create reloadable object files.
18562reload_flag=$lt_reload_flag
18563reload_cmds=$lt_reload_cmds
18564
18565# Commands used to build an old-style archive.
18566old_archive_cmds=$lt_old_archive_cmds
18567
18568# A language specific compiler.
18569CC=$lt_compiler
18570
18571# Is the compiler the GNU compiler?
18572with_gcc=$GCC
18573
18574# Compiler flag to turn off builtin functions.
18575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18576
18577# Additional compiler flags for building library objects.
18578pic_flag=$lt_lt_prog_compiler_pic
18579
18580# How to pass a linker flag through the compiler.
18581wl=$lt_lt_prog_compiler_wl
18582
18583# Compiler flag to prevent dynamic linking.
18584link_static_flag=$lt_lt_prog_compiler_static
18585
18586# Does compiler simultaneously support -c and -o options?
18587compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18588
18589# Whether or not to add -lc for building shared libraries.
18590build_libtool_need_lc=$archive_cmds_need_lc
18591
18592# Whether or not to disallow shared libs when runtime libs are static.
18593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18594
18595# Compiler flag to allow reflexive dlopens.
18596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18597
18598# Compiler flag to generate shared objects directly from archives.
18599whole_archive_flag_spec=$lt_whole_archive_flag_spec
18600
18601# Whether the compiler copes with passing no objects directly.
18602compiler_needs_object=$lt_compiler_needs_object
18603
18604# Create an old-style archive from a shared archive.
18605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18606
18607# Create a temporary old-style archive to link instead of a shared archive.
18608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18609
18610# Commands used to build a shared archive.
18611archive_cmds=$lt_archive_cmds
18612archive_expsym_cmds=$lt_archive_expsym_cmds
18613
18614# Commands used to build a loadable module if different from building
18615# a shared archive.
18616module_cmds=$lt_module_cmds
18617module_expsym_cmds=$lt_module_expsym_cmds
18618
18619# Whether we are building with GNU ld or not.
18620with_gnu_ld=$lt_with_gnu_ld
18621
18622# Flag that allows shared libraries with undefined symbols to be built.
18623allow_undefined_flag=$lt_allow_undefined_flag
18624
18625# Flag that enforces no undefined symbols.
18626no_undefined_flag=$lt_no_undefined_flag
18627
18628# Flag to hardcode \$libdir into a binary during linking.
18629# This must work even if \$libdir does not exist
18630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18631
Emeric Vigier2f625822012-08-06 11:09:52 -040018632# Whether we need a single "-rpath" flag with a separated argument.
18633hardcode_libdir_separator=$lt_hardcode_libdir_separator
18634
18635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18636# DIR into the resulting binary.
18637hardcode_direct=$hardcode_direct
18638
18639# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18640# DIR into the resulting binary and the resulting library dependency is
18641# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18642# library is relocated.
18643hardcode_direct_absolute=$hardcode_direct_absolute
18644
18645# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18646# into the resulting binary.
18647hardcode_minus_L=$hardcode_minus_L
18648
18649# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18650# into the resulting binary.
18651hardcode_shlibpath_var=$hardcode_shlibpath_var
18652
18653# Set to "yes" if building a shared library automatically hardcodes DIR
18654# into the library and all subsequent libraries and executables linked
18655# against it.
18656hardcode_automatic=$hardcode_automatic
18657
18658# Set to yes if linker adds runtime paths of dependent libraries
18659# to runtime path list.
18660inherit_rpath=$inherit_rpath
18661
18662# Whether libtool must link a program against all its dependency libraries.
18663link_all_deplibs=$link_all_deplibs
18664
18665# Set to "yes" if exported symbols are required.
18666always_export_symbols=$always_export_symbols
18667
18668# The commands to list exported symbols.
18669export_symbols_cmds=$lt_export_symbols_cmds
18670
18671# Symbols that should not be listed in the preloaded symbols.
18672exclude_expsyms=$lt_exclude_expsyms
18673
18674# Symbols that must always be exported.
18675include_expsyms=$lt_include_expsyms
18676
18677# Commands necessary for linking programs (against libraries) with templates.
18678prelink_cmds=$lt_prelink_cmds
18679
18680# Commands necessary for finishing linking programs.
18681postlink_cmds=$lt_postlink_cmds
18682
18683# Specify filename containing input files.
18684file_list_spec=$lt_file_list_spec
18685
18686# How to hardcode a shared library path into an executable.
18687hardcode_action=$hardcode_action
18688
18689# The directories searched by this compiler when creating a shared library.
18690compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18691
18692# Dependencies to place before and after the objects being linked to
18693# create a shared library.
18694predep_objects=$lt_predep_objects
18695postdep_objects=$lt_postdep_objects
18696predeps=$lt_predeps
18697postdeps=$lt_postdeps
18698
18699# The library search path used internally by the compiler when linking
18700# a shared library.
18701compiler_lib_search_path=$lt_compiler_lib_search_path
18702
18703# ### END LIBTOOL CONFIG
18704
18705_LT_EOF
18706
18707 case $host_os in
18708 aix3*)
18709 cat <<\_LT_EOF >> "$cfgfile"
18710# AIX sometimes has problems with the GCC collect2 program. For some
18711# reason, if we set the COLLECT_NAMES environment variable, the problems
18712# vanish in a puff of smoke.
18713if test "X${COLLECT_NAMES+set}" != Xset; then
18714 COLLECT_NAMES=
18715 export COLLECT_NAMES
18716fi
18717_LT_EOF
18718 ;;
18719 esac
18720
18721
18722ltmain="$ac_aux_dir/ltmain.sh"
18723
18724
18725 # We use sed instead of cat because bash on DJGPP gets confused if
18726 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18727 # text mode, it properly converts lines to CR/LF. This bash problem
18728 # is reportedly fixed, but why not run on old versions too?
18729 sed '$q' "$ltmain" >> "$cfgfile" \
18730 || (rm -f "$cfgfile"; exit 1)
18731
18732 if test x"$xsi_shell" = xyes; then
18733 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18734func_dirname ()\
18735{\
18736\ case ${1} in\
18737\ */*) func_dirname_result="${1%/*}${2}" ;;\
18738\ * ) func_dirname_result="${3}" ;;\
18739\ esac\
18740} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18741 && mv -f "$cfgfile.tmp" "$cfgfile" \
18742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18743test 0 -eq $? || _lt_function_replace_fail=:
18744
18745
18746 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18747func_basename ()\
18748{\
18749\ func_basename_result="${1##*/}"\
18750} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18751 && mv -f "$cfgfile.tmp" "$cfgfile" \
18752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18753test 0 -eq $? || _lt_function_replace_fail=:
18754
18755
18756 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18757func_dirname_and_basename ()\
18758{\
18759\ case ${1} in\
18760\ */*) func_dirname_result="${1%/*}${2}" ;;\
18761\ * ) func_dirname_result="${3}" ;;\
18762\ esac\
18763\ func_basename_result="${1##*/}"\
18764} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18765 && mv -f "$cfgfile.tmp" "$cfgfile" \
18766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18767test 0 -eq $? || _lt_function_replace_fail=:
18768
18769
18770 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18771func_stripname ()\
18772{\
18773\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18774\ # positional parameters, so assign one to ordinary parameter first.\
18775\ func_stripname_result=${3}\
18776\ func_stripname_result=${func_stripname_result#"${1}"}\
18777\ func_stripname_result=${func_stripname_result%"${2}"}\
18778} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18779 && mv -f "$cfgfile.tmp" "$cfgfile" \
18780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18781test 0 -eq $? || _lt_function_replace_fail=:
18782
18783
18784 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18785func_split_long_opt ()\
18786{\
18787\ func_split_long_opt_name=${1%%=*}\
18788\ func_split_long_opt_arg=${1#*=}\
18789} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18790 && mv -f "$cfgfile.tmp" "$cfgfile" \
18791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18792test 0 -eq $? || _lt_function_replace_fail=:
18793
18794
18795 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18796func_split_short_opt ()\
18797{\
18798\ func_split_short_opt_arg=${1#??}\
18799\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18800} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18801 && mv -f "$cfgfile.tmp" "$cfgfile" \
18802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18803test 0 -eq $? || _lt_function_replace_fail=:
18804
18805
18806 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18807func_lo2o ()\
18808{\
18809\ case ${1} in\
18810\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18811\ *) func_lo2o_result=${1} ;;\
18812\ esac\
18813} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18814 && mv -f "$cfgfile.tmp" "$cfgfile" \
18815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18816test 0 -eq $? || _lt_function_replace_fail=:
18817
18818
18819 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18820func_xform ()\
18821{\
18822 func_xform_result=${1%.*}.lo\
18823} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18824 && mv -f "$cfgfile.tmp" "$cfgfile" \
18825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18826test 0 -eq $? || _lt_function_replace_fail=:
18827
18828
18829 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18830func_arith ()\
18831{\
18832 func_arith_result=$(( $* ))\
18833} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18834 && mv -f "$cfgfile.tmp" "$cfgfile" \
18835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836test 0 -eq $? || _lt_function_replace_fail=:
18837
18838
18839 sed -e '/^func_len ()$/,/^} # func_len /c\
18840func_len ()\
18841{\
18842 func_len_result=${#1}\
18843} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18844 && mv -f "$cfgfile.tmp" "$cfgfile" \
18845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18846test 0 -eq $? || _lt_function_replace_fail=:
18847
18848fi
18849
18850if test x"$lt_shell_append" = xyes; then
18851 sed -e '/^func_append ()$/,/^} # func_append /c\
18852func_append ()\
18853{\
18854 eval "${1}+=\\${2}"\
18855} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18856 && mv -f "$cfgfile.tmp" "$cfgfile" \
18857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18858test 0 -eq $? || _lt_function_replace_fail=:
18859
18860
18861 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18862func_append_quoted ()\
18863{\
18864\ func_quote_for_eval "${2}"\
18865\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18866} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18867 && mv -f "$cfgfile.tmp" "$cfgfile" \
18868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18869test 0 -eq $? || _lt_function_replace_fail=:
18870
18871
18872 # Save a `func_append' function call where possible by direct use of '+='
18873 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18874 && mv -f "$cfgfile.tmp" "$cfgfile" \
18875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18876 test 0 -eq $? || _lt_function_replace_fail=:
18877else
18878 # Save a `func_append' function call even when '+=' is not available
18879 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18880 && mv -f "$cfgfile.tmp" "$cfgfile" \
18881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18882 test 0 -eq $? || _lt_function_replace_fail=:
18883fi
18884
18885if test x"$_lt_function_replace_fail" = x":"; then
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18887$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18888fi
18889
18890
18891 mv -f "$cfgfile" "$ofile" ||
18892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18893 chmod +x "$ofile"
18894
18895
18896 cat <<_LT_EOF >> "$ofile"
18897
18898# ### BEGIN LIBTOOL TAG CONFIG: CXX
18899
18900# The linker used to build libraries.
18901LD=$lt_LD_CXX
18902
18903# How to create reloadable object files.
18904reload_flag=$lt_reload_flag_CXX
18905reload_cmds=$lt_reload_cmds_CXX
18906
18907# Commands used to build an old-style archive.
18908old_archive_cmds=$lt_old_archive_cmds_CXX
18909
18910# A language specific compiler.
18911CC=$lt_compiler_CXX
18912
18913# Is the compiler the GNU compiler?
18914with_gcc=$GCC_CXX
18915
18916# Compiler flag to turn off builtin functions.
18917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18918
18919# Additional compiler flags for building library objects.
18920pic_flag=$lt_lt_prog_compiler_pic_CXX
18921
18922# How to pass a linker flag through the compiler.
18923wl=$lt_lt_prog_compiler_wl_CXX
18924
18925# Compiler flag to prevent dynamic linking.
18926link_static_flag=$lt_lt_prog_compiler_static_CXX
18927
18928# Does compiler simultaneously support -c and -o options?
18929compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18930
18931# Whether or not to add -lc for building shared libraries.
18932build_libtool_need_lc=$archive_cmds_need_lc_CXX
18933
18934# Whether or not to disallow shared libs when runtime libs are static.
18935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18936
18937# Compiler flag to allow reflexive dlopens.
18938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18939
18940# Compiler flag to generate shared objects directly from archives.
18941whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18942
18943# Whether the compiler copes with passing no objects directly.
18944compiler_needs_object=$lt_compiler_needs_object_CXX
18945
18946# Create an old-style archive from a shared archive.
18947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18948
18949# Create a temporary old-style archive to link instead of a shared archive.
18950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18951
18952# Commands used to build a shared archive.
18953archive_cmds=$lt_archive_cmds_CXX
18954archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18955
18956# Commands used to build a loadable module if different from building
18957# a shared archive.
18958module_cmds=$lt_module_cmds_CXX
18959module_expsym_cmds=$lt_module_expsym_cmds_CXX
18960
18961# Whether we are building with GNU ld or not.
18962with_gnu_ld=$lt_with_gnu_ld_CXX
18963
18964# Flag that allows shared libraries with undefined symbols to be built.
18965allow_undefined_flag=$lt_allow_undefined_flag_CXX
18966
18967# Flag that enforces no undefined symbols.
18968no_undefined_flag=$lt_no_undefined_flag_CXX
18969
18970# Flag to hardcode \$libdir into a binary during linking.
18971# This must work even if \$libdir does not exist
18972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18973
Emeric Vigier2f625822012-08-06 11:09:52 -040018974# Whether we need a single "-rpath" flag with a separated argument.
18975hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18976
18977# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18978# DIR into the resulting binary.
18979hardcode_direct=$hardcode_direct_CXX
18980
18981# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18982# DIR into the resulting binary and the resulting library dependency is
18983# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18984# library is relocated.
18985hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18986
18987# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18988# into the resulting binary.
18989hardcode_minus_L=$hardcode_minus_L_CXX
18990
18991# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18992# into the resulting binary.
18993hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18994
18995# Set to "yes" if building a shared library automatically hardcodes DIR
18996# into the library and all subsequent libraries and executables linked
18997# against it.
18998hardcode_automatic=$hardcode_automatic_CXX
18999
19000# Set to yes if linker adds runtime paths of dependent libraries
19001# to runtime path list.
19002inherit_rpath=$inherit_rpath_CXX
19003
19004# Whether libtool must link a program against all its dependency libraries.
19005link_all_deplibs=$link_all_deplibs_CXX
19006
19007# Set to "yes" if exported symbols are required.
19008always_export_symbols=$always_export_symbols_CXX
19009
19010# The commands to list exported symbols.
19011export_symbols_cmds=$lt_export_symbols_cmds_CXX
19012
19013# Symbols that should not be listed in the preloaded symbols.
19014exclude_expsyms=$lt_exclude_expsyms_CXX
19015
19016# Symbols that must always be exported.
19017include_expsyms=$lt_include_expsyms_CXX
19018
19019# Commands necessary for linking programs (against libraries) with templates.
19020prelink_cmds=$lt_prelink_cmds_CXX
19021
19022# Commands necessary for finishing linking programs.
19023postlink_cmds=$lt_postlink_cmds_CXX
19024
19025# Specify filename containing input files.
19026file_list_spec=$lt_file_list_spec_CXX
19027
19028# How to hardcode a shared library path into an executable.
19029hardcode_action=$hardcode_action_CXX
19030
19031# The directories searched by this compiler when creating a shared library.
19032compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19033
19034# Dependencies to place before and after the objects being linked to
19035# create a shared library.
19036predep_objects=$lt_predep_objects_CXX
19037postdep_objects=$lt_postdep_objects_CXX
19038predeps=$lt_predeps_CXX
19039postdeps=$lt_postdeps_CXX
19040
19041# The library search path used internally by the compiler when linking
19042# a shared library.
19043compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19044
19045# ### END LIBTOOL TAG CONFIG: CXX
19046_LT_EOF
19047
19048 ;;
19049 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019050 # Older Autoconf quotes --file arguments for eval, but not when files
Emeric Vigier2f625822012-08-06 11:09:52 -040019051 # are listed without --file. Let's play safe and only enable the eval
19052 # if we detect the quoting.
19053 case $CONFIG_FILES in
19054 *\'*) eval set x "$CONFIG_FILES" ;;
19055 *) set x $CONFIG_FILES ;;
19056 esac
19057 shift
19058 for mf
19059 do
19060 # Strip MF so we end up with the name of the file.
19061 mf=`echo "$mf" | sed -e 's/:.*$//'`
19062 # Check whether this is an Automake generated Makefile or not.
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019063 # We used to match only the files named 'Makefile.in', but
Emeric Vigier2f625822012-08-06 11:09:52 -040019064 # some people rename them; so instead we look at the file content.
19065 # Grep'ing the first line is not enough: some people post-process
19066 # each Makefile.in and add a new line on top of each file to say so.
19067 # Grep'ing the whole file is not good either: AIX grep has a line
19068 # limit of 2048, but all sed's we know have understand at least 4000.
19069 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19070 dirpart=`$as_dirname -- "$mf" ||
19071$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19072 X"$mf" : 'X\(//\)[^/]' \| \
19073 X"$mf" : 'X\(//\)$' \| \
19074 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19075$as_echo X"$mf" |
19076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19077 s//\1/
19078 q
19079 }
19080 /^X\(\/\/\)[^/].*/{
19081 s//\1/
19082 q
19083 }
19084 /^X\(\/\/\)$/{
19085 s//\1/
19086 q
19087 }
19088 /^X\(\/\).*/{
19089 s//\1/
19090 q
19091 }
19092 s/.*/./; q'`
19093 else
19094 continue
19095 fi
19096 # Extract the definition of DEPDIR, am__include, and am__quote
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019097 # from the Makefile without running 'make'.
Emeric Vigier2f625822012-08-06 11:09:52 -040019098 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19099 test -z "$DEPDIR" && continue
19100 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019101 test -z "$am__include" && continue
Emeric Vigier2f625822012-08-06 11:09:52 -040019102 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Emeric Vigier2f625822012-08-06 11:09:52 -040019103 # Find all dependency output files, they are included files with
19104 # $(DEPDIR) in their names. We invoke sed twice because it is the
19105 # simplest approach to changing $(DEPDIR) to its actual value in the
19106 # expansion.
19107 for file in `sed -n "
19108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Alexandre Lisionddd731e2014-01-31 11:50:08 -050019109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Emeric Vigier2f625822012-08-06 11:09:52 -040019110 # Make sure the directory exists.
19111 test -f "$dirpart/$file" && continue
19112 fdir=`$as_dirname -- "$file" ||
19113$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19114 X"$file" : 'X\(//\)[^/]' \| \
19115 X"$file" : 'X\(//\)$' \| \
19116 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19117$as_echo X"$file" |
19118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19119 s//\1/
19120 q
19121 }
19122 /^X\(\/\/\)[^/].*/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\/\)$/{
19127 s//\1/
19128 q
19129 }
19130 /^X\(\/\).*/{
19131 s//\1/
19132 q
19133 }
19134 s/.*/./; q'`
19135 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19136 # echo "creating $dirpart/$file"
19137 echo '# dummy' > "$dirpart/$file"
19138 done
19139 done
19140}
19141 ;;
19142
19143 esac
19144done # for ac_tag
19145
19146
19147as_fn_exit 0
19148_ACEOF
19149ac_clean_files=$ac_clean_files_save
19150
19151test $ac_write_fail = 0 ||
19152 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19153
19154
19155# configure is writing to config.log, and then calls config.status.
19156# config.status does its own redirection, appending to config.log.
19157# Unfortunately, on DOS this fails, as config.log is still kept open
19158# by configure, so config.status won't be able to write to it; its
19159# output is simply discarded. So we exec the FD to /dev/null,
19160# effectively closing config.log, so it can be properly (re)opened and
19161# appended to by config.status. When coming back to configure, we
19162# need to make the FD available again.
19163if test "$no_create" != yes; then
19164 ac_cs_success=:
19165 ac_config_status_args=
19166 test "$silent" = yes &&
19167 ac_config_status_args="$ac_config_status_args --quiet"
19168 exec 5>/dev/null
19169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19170 exec 5>>config.log
19171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19172 # would make configure fail if this is the last instruction.
19173 $ac_cs_success || as_fn_exit 1
19174fi
19175if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19177$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19178fi
19179